Since I am on a mission to learn Linux and I am clearly a late comer to this operating system I wanted to document commands that I have begun to learn or in the process of learning. This post really is self serving and if you find value in it then I am clad to have helped. I also intend to update this post over time with the hopes of gathering a fairly comprehensive list of commands.
This may seem basic to some, but again the intent is to start with basics and build up, therefore if you have any tips please feel free to leave a comment.
System Information
- date: displays the current date and time
- uptime: displays uptime since last reboot
- whoami: displays the current logged in user
- df: display disk usage
- du: display directory usage
- free: display RAM and swap use
Networking
- ethtool eth0: display status of ethernet interface eth0
- iwconfig eth1: display status of wireless interface eth1
- iwlist scan: display wireless networks in range
- ip link show: display network interfaces
- ip addr show: display addresses for interfaces
- ip route show: display routing table
File Commands
- ls:list directories
- ls -al: listing with hidden files
- cd dir: change to a given directory
- cd: switch to home
- pwd: display current directory
- mkdir bigdata: create a new directory named “bigdata”
- rm filename: delete a file
- rm -r bigdata: delete an empty directory named “bigdata”
- rm -rf bigdata: delete an entire directory with files named “bigdata”
- cp file1 file2: copy file1 to file2
- mv file1 file2: move or rename a file
- more file: output the content of the file