Linux Commands

Updating on Debian
sudo apt-get && sudo apt-get upgrade

help <command>

Commond Linux Commands
pwd
hostname
whoami
id <username>
date
time
who
rwho -a
finger <username>
last
history | more
uptime
ps
ps aux | more
top
dmesg | less

Basic Operations
ls
ls -la
cd <directory>
cp <source> <destination>
mv <source <destination>
ln <source> <destination>
ln -s <source> <destination>
rm <files>
mkdir <directory>
rmdir <directory>
rm -r <files>
cat <filename> | more
less <filename>
find / -name "filename"
./programm
touch <filename>

File Decompression

tar -zxvf filename.tar.gz
tar -xvf filename.tar
gunzip filename.gz
bunzip2 filename.bz2
unzip filename.zip

Editing Files
nano <filename>
pico <filename>
vi <filename>

Memory Usage
free

Disk Usage/Info
du / -bh
df -h

Hardware Information
lshw
lscpu
lspci
lsusb

Network
ifconfig
ping <address>
dig <domain>

netstat -l

 

openssl enc -e base64
openssl enc -d base64
openssl rsautl -encrypt -inkey $peerKeyFile -pubin