« Older Home
Loading Newer »

Archive for the 'Shell' Category

15 Practical Linux Find Command Examples

Apart from the basic operation of looking for files under a directory structure, you can also perform several practical operations using find command that will make your command line journey easy.In this article, let us review 15 practical examples of Linux find command that will be very useful to both newbies and experts.

Iptables String Matching

When it comes to any server or network connected to the internet, security from malicious files and hack attempts is a big concern for any administrator. Linux provides its own firewall from the early releases itself. The current iptables firewall maintained by the netfilter team is advancing to more powerful security and network management tool [...]

How to keep files safe from accidental overwriting?

This happens many times. You accidentally use redirecting output using > operator.or example you type a command:
ls -l *.c > output.txt
If file output.txt exists and is a regular file it will be overwritten. Just imagine as root user, typing somecommand > /etc/passwd instead of somecommand < /etc/passwd. Or you used > when they meant [...]

“screen” simple yet powerful!

Screen is a full-screen window manager that multiplexes a physical terminal between several processes (typically interactive shells). Check out some of the example to use simple but powerful tools screen in your linux.

SHFS — “Mount ANY dir from ANY host in a SECURE way”

# shfs is a very nice way to circumvent the insecurities of nfs. It can mount a remote directory on your local machine, just as one would do with nfs (shfsmount and shfsumount understand the same syntax as the normal nfs mount and umount commands, but in stead of sending the files in the clear, [...]

grep tips..!

grep is powerful tools in Linux. It searches the named input FILEs (or standard input if no files are named, or if a single hyphen-minus (-) is given as file name) for lines containing a match to the given PATTERN. By default, grep prints the matching lines. Here are some of [...]