Unix Shell: The Art of I/O Redirection

One of the primary tricks in my sysadmin bag-o-tricks is Input/Output Redirection; I have found that while many people use Shell I/O Redirection throughout their day not everyone fully understands why and how it works. The Input and Output In the Unix environment there is always 3 streams open stdin, stdout, & stderr; these special streams are used for interacting with the user input and program output within the Unix/Linux shell environment....

 · 4 min · Benjamin Cane

Find files created today

I figured I would start a new category for command line quickies. Here is one that I have found very useful. # find ./ -type f -daystart -ctime -1 This is a very nice way of finding files created today. Now this command differs from the command below. # find ./ -type f -ctime -1 The -daystart flag will tell find to use the beginning of the day when searching for files created today....

 · 1 min · Benjamin Cane