Tutorial by Examples

$> pwd /home/myUserHome $> cd .. $> pwd /home will print the current path to the console.
$ pwd /home/bob/somedir1/somedir2/somedir3 $ pushd /home/bob/otherdir1/otherdir2 /home/bob/otherdir1/otherdir2 /home/bob/somedir1/somedir2/somedir3 $ popd /home/bob/somedir1/somedir2/somedir3 $ pushd /usr /usr /home/bob/somedir1/somedir2/somedir3 $ pushd /var /var /usr /home/bob/som...
List of commands that will be introduced here: ls #view contents of a directory touch #create new file mkdir #create new directory cp #copy contents of one file to another mv #move file from one location to another rm #delete a file or directory ls examples jennifer@my_co...
michael@who-cares:~$ The symbol ~ after the who-cares: is the current directory. ~ actually means the person's home directory. In this case, that's /home/michael. michael@who-cares:~$ cd Downloads michael@who-cares:~/Downloads$ Looks for Downloads in the current directory, then makes that th...
To determine where on your system an executable in your path exists, use the which command: $ which python $ If there is no response, that executable does not exist in your path. The system will simply return you a new prompt without an error message. If the executable does exist on your path, ...
$pwd Displays the present working directory. $who Displays all the users logged in. $who am i Shows the username of the current user. $date Displays the current system date $which <command> Shows the path of the specified command. For example "$which pwd" will sho...

Page 1 of 1