| passwd |
assign or change user password |
| useradd or adduser |
add a new user, can also use linuxconf |
| su or sudo |
issue commands as root, requires pswd |
| date -s |
to set system date/time |
| ln |
a program linker |
| gunzip -c filename*.tar.gz | tar -xfv - |
file compressor/decompressor |
| tar -xf or -xvzf filename |
file compressor/decompressor |
| grep |
text search |
| man |
help file reader |
| mount, umount |
devices access, eg. mount /cdrom |
| mkdir |
to make a directory |
| cd |
to change directory |
| df -k |
disk info & volumes |
| dd command |
A very powerful command to perform backups and disk cloning,
see man dd for further information |
| ls -l |
to list directory |
| ln -s /dir/filename shortcut_name |
creates a symbolic link to a file as a shortcut in another directory |
| touch filename |
to manually create a 0 byte file |
| cp - i |
copy |
| mv |
rename or move files/directories |
| rm - i |
to delete |
| chmod +x filename |
changes file to batch, only embed shell commands |
| chmod +/-rwx filename |
changes permissions of files |
| chown owner group |
change owner and/or group of file system areas |
| set |
displays o/s parameters like path in dos |
| top |
system activity info |
| vmstat |
to check CPU usage |
| nice |
to check PROCess priority |
| renice |
to change process priority |
| ps ax |
view progs running in memory |
| ps -x |
displays processes |
| history |
keyboard history |
| cat /proc/cpuinfo |
for various system information |
| /proc/pci |
" |
| /proc/dma |
" |
| /proc/interrupts |
" |
| procinfo |
" |
| free |
memory info & usage |
| pstree |
to produce a process list |
| which program_name |
displays info about program directories |
| topcx filename |
converts file to pcx |
| tr -d '\015' |
convert dos batch to unix by removing "returns" CR |
| tail -n 400 /var/log/messages | less -N |
read the last 400 messages in sys log |
| updatedb |
update file locate index table |
| if an error is produced, try |
touch /var/lib/slocate/slocate.db and then updatedb again. |
| locate file/dir "phrase" |
search for files |
| find file/dir |
search for files & directories |
| w |
displays all logged in users on local system |
| who |
displays virtual console users |
| whoami |
need I say… |
| chkconfig - - list |
to see the run levels of the system process |
| kbdconfig |
use to configure keyboard |
| setserial -h |
to check or set serial port parameters |