UNIX commands

First posted on the 9th January, 2013 – IT
Last modified on the 7th April, 2016, at 8:58 pm

A short list of my most used shell commands:

Manual
man
man cd
man ls
man man
echo

Fileing
ls
cd
ls a*
ls -a
ls -al
ls -hlog
cp
mv
ln
ln -s
touch

Ownership & permissions
ls -l
chown
sudo chown
chmod
chmod 777
chmod 755

Reading & Editing files
cat
head
head -n 100
tail
tail -n 100
tail -f
wc
wc -l
nano

Redirection
echo hello > test
echo hello >> test

File manipulation
wc -l
ls -c1 | wc -l
sort
cut
find
grep
grep -i
sed s/old/new/g
awk
paste
comm

System
whoami
top
ps
ps -u
du
du -h
df
uptime
su
sudo
crontab

Networking
hostname
dig
ping
ssh
scp
sftp
nohup

Other
xargs
find . -name "string*" -print0 | xargs -0 rm -f
find . -name "string*" -print0 | xargs -0 -J % mv % newdir
make
watch
fail

Background
&
jobs -l