Linux in 15 Steps

January 8, 2017 | Views: 15657

Begin Learning Cyber Security for FREE Now!

FREE REGISTRATIONAlready a Member Login Here

STEP 1: Getting the date

command: date


STEP 2: Finding who you are

command: whoami


STEP 3: Clearing the terminal

command: clear

STEP 4: Adding a user

command: adduser username


STEP 5: switching the users

command: su username


STEP 6: Fun with directories

command 1 (list out directories): dir

command 2 (create directories): mkdir directory name

command 3 (remove directory): rmdir directoryname


STEP 7: Moving in directories and deletion

command 1 (changing the directory): cd directory_path OR cd .. (moves up one directory)

command 2 (recursive deletion of diectories): rm -r directory_name



STEP 8: Creating a file

command 1 (creating a file): touch filename

command 2 (editing file): nano filename



STEP 9: Playing with files

command 1 (create a file): touch filename

command 2 (display file contents): cat filename

command 3 (move a file): mv source_file destination_file

command 4 (copying a file): cp source_file destination_file

command 5 (deleting a file): rm filename


STEP 10: what  we did till now

command (what all commands we have run): history


STEP 11: Listing down contents

command 1 (listing the contents): ls

command 2 (long listing): ls -l

command 3 (finding all the contents, even the hidden ones): ls -a


STEP 12: Find me

command (to pick a particular piece in the file): cat filename  | grep searchword


STEP 13: man at rescue

command (command help): man command_name


STEP 14: what’s my address?

command (finding the mac and IP): ifconfig


STEP 15: Time to sleep

command (shutdown): init 0

Share with Friends
Use Cybytes and
Tip the Author!
Share with Friends
Ready to share your knowledge and expertise?
  1. Thanks so much for this info

  2. Thank you! 😀

  3. You forgot(IMHO) the MOST helpful command for a beginner which is “apropos” very useful if you don’t know the name of the command that you want to look up with the man pages.

    “apropos” allows you to search for commands by keyword. usage “apropos (keyword)” for example how do you enable DHCP? you could try “Apropos DHCP” and it will list all commands that have DHCP either in the command name, or in the summary of the command itself….Very very useful when setting up a new box that doesn’t have Google at the ready.

Page 4 of 4«1234
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.

Support Cybrary

Donate Here to Get This Month's Donor Badge


We recommend always using caution when following any link

Are you sure you want to continue?