Radical Development

Basic Linux Commands

Amazon ImageSince 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

Author: Steven Swafford

Highly motivated information technology professional with 16+ years of experience. Working as a software engineer Steven develops and maintains web based software solutions. As a skilled professional he is focused on the design and creation of software. Because communication skills are extremely important Steven continues to expand his knowledge in order to communicate clearly with all facets of business. Recently Steven has been leading efforts to standardize software development tools and technology, plans and coordinates web accessibility as applied to IT Solutions, and he is tackling application security in terms of best practices and implementation of the Security Development Life-cycle.

Comments are closed.