August 2014
M T W T F S S
 123
45678910
11121314151617
18192021222324
25262728293031

Categories

August 2014
M T W T F S S
 123
45678910
11121314151617
18192021222324
25262728293031

find shell

Find files larger than 100MB…

find . -size +100000000c -ls Old Files Find files last modified over 30days ago…

find . -type f -mtime 30 -ls Find files last modified over 365days ago…

find . -type f -mtime 365 -ls Find files last accessed over 30days ago…

find . -type f -atime 30 -ls Find […]

Shell good reference

The Bourne shell (/bin/sh) is present on all Unix installations and scripts written in this language are (quite) portable; man 1 sh is a good reference. Basics

Variables and arguments

Assign with variable=value and get content with $variable MESSAGE=”Hello World” # Assign a string PI=3.1415 # Assign a decimal number N=8 TWON=`expr $N * 2` […]