Linux in 15 Steps

January 8, 2017 | Views: 15245

Begin Learning Cyber Security for FREE Now!

FREE REGISTRATIONAlready a Member Login Here

STEP 1: Getting the date

command: date

1

STEP 2: Finding who you are

command: whoami

2

STEP 3: Clearing the terminal

command: clear

STEP 4: Adding a user

command: adduser username

3

STEP 5: switching the users

command: su username

4

STEP 6: Fun with directories

command 1 (list out directories): dir

command 2 (create directories): mkdir directory name

command 3 (remove directory): rmdir directoryname

5

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

6

7

STEP 8: Creating a file

command 1 (creating a file): touch filename

command 2 (editing file): nano filename

8

9

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

10

STEP 10: what  we did till now

command (what all commands we have run): history

11

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

12

STEP 12: Find me

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

13

STEP 13: man at rescue

command (command help): man command_name

14

STEP 14: what’s my address?

command (finding the mac and IP): ifconfig

15

STEP 15: Time to sleep

command (shutdown): init 0

Share with Friends
FacebookTwitterLinkedInEmail
Use Cybytes and
Tip the Author!
Join
Share with Friends
FacebookTwitterLinkedInEmail
Ready to share your knowledge and expertise?
25 Comments
  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.

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