Skip to content

Useful Linux Commands

Warm up commands

man

man

history

history

who

  1. who: display who is logged in
  2. who -b:
  3. who -q:
  4. who -r:
  5. who -u:
  6. who am i:

whoami

whoami: displays effective username

id

  1. id:
  2. id -u:
  3. id -un:
  4. id -p:

echo

echo "Hello, World!

Files and directories

ls

  1. ls
  2. ls -la
  3. ls -lrt
  4. ls -lrth

pwd

cd

cp

mv

find

grep

sed

awk

sort

uniq

Back to top