find . -mindepth 1 -maxdepth 1 -exec du -sx '{}' \; | sort -rn
USERS |
history | history of previous commands |
!x | x = history line number |
ctrl + R | search previous commands |
Alt Cntl Esc | kill window |
Cntl Esc | task manager (kill process) |
ps -A | process |
ifconfig | ip settings |
crontab -l | cron settings |
du | disk usage, directory size |
du -d1 | du directory level 1 |
df -h | disk free,
available hard disk |
free -h | memory usage |
ctrl + c | copy |
ctrl + shift + c | copy from terminal |
ctrl + v | paste |
ctrl + shift + v | paste to terminal |
up arrow | previous command |
chmod | change permissions |
vi | text editor for telnet |
ls | list files, (dir) |
pwd | print working directory |
cd dir | change directory into dir |
cd .. | move up directory tree 1 level |
cp | copy file |
mv | move file |
rm | remove file |
mkdir | make directory |
rmdir | remove directory |
* | wild card |
cat | display files |
| | pipe |
more | display files | more |
less | display files | less |
alt/cntrl F7 | Gui virtual terminal |
Control-alt-del | reboot/logout |
Control-alt-backspace | logout/restart graphics |
Control-C | terminate a running program |
Alt F2 xkill | run command --
app kill |
cgi-bin | /usr/lib/cgi-bin/ |
dmesg | boot messages |
lspci | chipset info, audio, video, motherboard |
lsb_release -a | ubuntu version |
env | environment |
eject | eject CD tray |
find | find files |
grep | search for string |
host | DNS lookup |
hostname | this host |
info | help |
jobs | current jobs |
kwrite filename | start AdvanceEditor |
kedit filename | start kedit |
last | users info, when / from |
ln | make link --- ln -s path/file |
locate | find files |
ls | list |
lsb_release -a | distribution information |
man | help |
| non breaking space |
ntpdate | ntp set time |
netstat -anp | displays network traffic |
passwd | change password |
script | starts documentation to
"typescript" |
exit | exit script |
scp | copy between computers |
sensors | cpu temperature |
su | super user |
sudo | super user |
ssh | secure shell between computers |
tree | dir tree |
top | free & ps, in real time |
users | current users |
which | which program |
gzip -d | decompress .gz file |
ROOT USER |
pwrstat | CyberPower UPS |
shutdown now | -r reboot -h power off |
lshw | list hard ware |
lshw-gtk | list hard ware gui |
lscpu | list cpu hard ware |
cat /proc/cpuinfo | list cpu hard ware |
/usr/local | Locally installed software.
Debian won't update/touch. |
apache2 -k restart | restart apache server |
service apache2 | apache start stop restart |
apachectl | apache start stop restart |
apt-get clean | |
apt-get install | "package name" |
apt-get remove | "package name" |
apt-get update | |
apt-get upgrade | |
base-config | configuration of base system |
chgrp | change file group |
chkrootkit | check for root kits |
rkhunter | check for root kits |
chown | change file ownership |
debconf | |
debconf samba | configure samba, NETBEUI |
debfoster | |
deborphan | |
deluser | |
dpkg | install package |
dpkg-reconfigure | |
dpkg-www | |
dselect | install debian packages complex |
halt -p | shut down, power off |
ifconfig | network configuration |
lsof | list open files --- if ps &
netstat compromised |
reboot | |
smbpasswd | set samba password |
sync | write all ram to disk |
tasksel | install debian packages simple |
tiger | security check |
updatedb | locate db |
userdel | |
vigr | change group file |
vipw | change password file |
|