Linux Cheatsheet

January 7, 2018 | Views: 6010

Begin Learning Cyber Security for FREE Now!

FREE REGISTRATIONAlready a Member Login Here

1.  System Information

  •  uptime = Show how long the system has been running.
  • hostname = Shows system host name.
  • hostname -I = Shows IP address of the host.
  • date = Show current date and time.
  • whoami = Who you are logged in as.
  • cal = Shows this months Calender.
  • w= Display who is online.

2.  File and Directory commands

  • ls =List all files in current directory.
  • pwd= Dispaly the present working directory
  • mkdir dirname= Make directory
  • rmdir dirname= Remove directory
  • rm =Remove fiile
  • cp file1 file2= Copy file1 to file2
  • mv file1 file2= Move file1 to file2
  • cat file=View the contents of file
  • head file=Displays first 10 lines of file
  • tail file=Displays last 10 lines of file

3. Networking

  • ifconfig= Displays IP address and all network interfaces
  • ping host=Sends ICMP ping requests to host
  • whois domain=Displays whois information of domain
  • dig domain=Displays DNS information of domain
  • wget http://domain.com/file=Download the specified file
  • netstat -nutlp=Displays all listening UDP and TCP ports corresponding programs

*Note:All commands are Case sensitive

Share with Friends
FacebookTwitterGoogle+LinkedInEmail
Use Cybytes and
Tip the Author!
Join
Share with Friends
FacebookTwitterGoogle+LinkedInEmail
Ready to share your knowledge and expertise?
5 Comments
  1. Thanks learned new things

  2. Thanks for this commands is very helpful for this OS

  3. Thanks for the share

Comment on This

You must be logged in to post a comment.

Our Revolution

We believe Cyber Security training should be free, for everyone, FOREVER. Everyone, everywhere, deserves the OPPORTUNITY to learn, begin and grow a career in this fascinating field. Therefore, Cybrary is a free community where people, companies and training come together to give everyone the ability to collaborate in an open source way that is revolutionizing the cyber security educational experience.

Cybrary On The Go

Get the Cybrary app for Android for online and offline viewing of our lessons.

Get it on Google Play
 

Support Cybrary

Donate Here to Get This Month's Donor Badge

 
Skip to toolbar

We recommend always using caution when following any link

Are you sure you want to continue?

Continue
Cancel