Extended Linux Commands With Examples
Extended Linux Commands With Examples
Examples
1. File and Directory Commands
ls: Lists detailed contents of /home directory
Usage: ls -l /home
Usage: cd /var/log
Usage: pwd
Usage: df -h
du: Displays size of files/folders in current dir
Usage: du -sh *
Usage: lsblk
Usage: blkid
3. Network Commands
ping: Sends 4 ping packets to google.com
Usage: ss -tulwn
Usage: hostname
Usage: top
Usage: htop
Usage: reboot
Usage: uptime
whoami: Displays the current user
Usage: whoami
Usage: id user
Usage: free -h
Usage: vmstat 1
Usage: uname -a
6. User Management
adduser: Creates a user john
8. Miscellaneous Tools
alias: Creates a shortcut command for listing
Usage: uptime