du utility. Lists the size of du [options] -a all cat /home/userid disk a directory and all its [directories] -h human-readable 22 ./public_html subdirectories (in 1 KB blocks) 2228 ./public Command Explanation Format Options Example df usage df [options][name] -a all (empty fs) df display filesystems information (currently mounted). -h human readable device, total size, used, Amount of free disk space -i free, used, percent-used available, use%, mount available on each of the mounted nodes point filesystems. finger Display data about one or more finger [options] users -l long format finger userid “user” users -s format mail Text-based command-line e-mail mail [options][users] mail to write a mail userid user client to read/send mail from/to message to user other users rm file* Delete one or more files (need rm [options] files -i interactive rm file* –i –i write permission for directory) -r recursive mkdir Create one or more directories mkdir [options] -m mode (777 default) mkdir 755 stuff –m (need write permissions in parent directories directory) ls -c List contents of directories ls [options][names] -c list by status change ls etc –l time (create/modify) if no name, then present -l one entry per line of working directory output `who | wc List logged into the system| wc [options] [files] -l line who | wc -1 –l` count the users logged in (word -h heading count) cp Copy file1 to file2 cp [options] file1 file2 -u update cp report.doc Copy one or more files to the cp [options] -I interactive overwrite report_backup.doc same names under directory. directory prompt
du disk utility. Lists the size of a directory and all its subdirectories (in 1 KB blocks) du [options] [directories] -a all -h human-readable cat /home/userid 22 ./public_html 2228 ./public Command Explanation Format Options Example df display filesystems usage information (currently mounted). Amount of free disk space available on each of the mounted filesystems. df [options][name] -a all (empty fs) -h human readable -i free, used, percent-used nodes df device, total size, used, available, use%, mount point finger “user” Display data about one or more users finger [options] users -l long format -s format finger userid mail Text-based command-line e-mail client to read/send mail from/to other users mail [options][users] mail user to write a message to user mail userid rm –i file* Delete one or more files (need write permission for directory) rm [options] files -i interactive -r recursive rm –i file* mkdir Create one or more directories (need write permissions in parent directory) mkdir [options] directories -m mode (777 default) mkdir –m 755 stuff ls -c List contents of directories ls [options][names] -c list by status change time (create/modify) -l one entry per line of output ls –l etc if no name, then present working directory `who | wc –l` List logged into the system| count the users logged in (word count) wc [options] [files] -l line -h heading who | wc -1 cp Copy file1 to file2 Copy one or more files to the same names under directory. cp [options] file1 file2 cp [options] directory -u update -I interactive overwrite prompt cp report.doc report_backup.doc