Diving Into Bash

From HackRVA
Revision as of 21:14, 9 March 2016 by Dfire (talk | contribs) (Created page with " == Where am I? == pwd == Make a directory== mkdir myNewDirectory == See contents of that Directory == ls The ls command will ''list'' the contents of a directory....")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


Where am I?

 pwd


Make a directory

 mkdir myNewDirectory


See contents of that Directory

 ls

The ls command will list the contents of a directory.

Change Directory

 cd myNewDirectory
 cd ..
 cd /
 cd /home/linux101
 ls -l

Notice that we've added more to the end of the ls command. This is a parameter. You can learn more parameters by prefacing your command with man. i.e. man ls will output the man page of ls

 cd /
 cd ~
 pwd
 ls -l
 chmod 777 myNewDirectory
 ls -l
 rmdir myNewDirectory