| Command |
Description |
|
# cal 2007 |
show the timetable of 2007 [man] |
|
# cat /proc/cpuinfo |
show information CPU info [man] |
|
# cat /proc/interrupts |
show interrupts [man] |
|
# cat /proc/meminfo |
verify memory use [man] |
|
# cat /proc/swaps |
show file(s) swap [man] |
|
# cat /proc/version |
show version of the kernel [man] |
|
# cat /proc/net/dev |
show network adpters and statistics [man] |
|
# cat /proc/mounts |
show mounted file system(s) [man] |
|
# cat file1 |
view the contents of a file starting from the first row [man] |
|
# cat -n file1 |
number row of a file [man] |
|
# cd /home |
enter to directory '/ home' [man] |
|
# cd .. |
go back one level [man] |
|
# cd ../.. |
go back two levels [man] |
|
# cd |
go to home directory [man] |
|
# cd ~user1 |
go to home directory [man] |
|
# cd - |
go to previous directory [man] |
|
# cd-paranoia -B |
rip audio tracks from a CD to wav files [man] |
|
# cd-paranoia -- |
rip first three audio tracks from a CD to wav files [man] |
|
# cdrecord -v gracetime=2 dev=/dev/cdrom -eject blank=fast -force |
clean a rewritable cdrom [man] |
|
# cdrecord -v dev=/dev/cdrom cd.iso |
burn an ISO image [man] |
|
# gzip -dc cd_iso.gz | cdrecord dev=/dev/cdrom - |
burn a compressed ISO image [man] |
|
# cdrecord --scanbus |
scan bus to identify the channel scsi [man] |
|
# chage -E 2005-12-31 user1 |
set deadline for user password [man] |
|
# chattr +a file1 |
allows write opening of a file only append mode [man] |
|
# chattr +c file1 |
allows that a file is compressed / decompressed automatically by the kernel [man] |
|
# chattr +d file1 |
makes sure that the program ignores Dump the files during backup [man] |
|
# chattr +i file1 |
makes it an immutable file, which can not be removed, altered, renamed or linked [man] |
|
# chattr +s file1 |
allows a file to be deleted safely [man] |
|
# chattr +S file1 |
makes sure that if a file is modified changes are written in synchronous mode as with sync [man] |
|
# chattr +u file1 |
allows you to recover the contents of a file even if it is canceled [man] |
|
# chgrp group1 file1 |
change group of files [man] |
|
# chmod ugo+rwx directory1 |
set permissions reading (r), write (w) and (x) access to users owner (u) group (g) and others (o) [man] |
|
# chmod go-rwx directory1 |
remove permits reading (r), write (w) and (x) access to users group (g) and others (or [man] |
|
# chmod u+s /bin/file1 |
set SUID bit on a binary file - the user that running that file gets same privileges as owner [man] |
|
# chmod u-s /bin/file1 |
disable SUID bit on a binary file [man] |
|
# chmod g+s /home/public |
set SGID bit on a directory - similar to SUID but for directory [man] |
|
# chmod g-s /home/public |
disable SGID bit on a directory [man] |
|
# chmod o+t /home/public |
set STIKY bit on a directory - allows files deletion only to legitimate owners [man] |
|
# chmod o-t /home/public |
disable STIKY bit on a directory [man] |
|
# chown user1 file1 |
change owner of a file [man] |
|
# chown -R user1 directory1 |
change user owner of a directory and all the files and directories contained inside [man] |
|
# chown user1:group1 file1 |
change user and group ownership of a file [man] |
|
# chsh |
change shell command [man] |
|
# chsh --list-shells |
nice command to know if you have to remote into another box [man] |
|
# clock -w |
save date changes on BIOS [man] |
|
# comm -1 file1 file2 |
compare contents of two files by deleting only unique lines from 'file1' [man] |
|
# comm -2 file1 file2 |
compare contents of two files by deleting only unique lines from 'file2' [man] |
|
# comm -3 file1 file2 |
compare contents of two files by deleting only the lines that appear on both files [man] |
|
# cp file1 file2 |
copying a file [man] |
|
# cp dir/* . |
copy all files of a directory within the current work directory [man] |
|
# cp -a /tmp/dir1 . |
copy a directory within the current work directory [man] |
|
# cp -a dir1 dir2 |
copy a directory [man] |
|
# find /home/user1 -name '*.txt' | xargs cp -av --target-directory=/home/backup/ --parents |
find and copy all files with '.txt' extention from a directory to another [man] |