|
|
(You can see a larger picture by clicking here: click here )
The (white) window in the center of the desktop is a Terminal application
This is a UNIX "shell" program that allow you to interact with the computer through command lines typed from the keyboard
|
Graphically:
(You can see a larger picture by clicking here: click here )
|
and hit the ENTER key
Graphically:
|
|
|
(There is a need to identify things stored inside a computer uniquely.
Just like using Social Security Numbers to identify people uniquely)
|
|
We will now explain the absolute directory path and discuss the relative path later.
|
Example 1:
The directory path for the highlighted directory is:
|
Note:
|
Example 2:
The directory path for the highlighted directory is:
|
Example 3:
The directory path for the highlighted directory is:
|
|
|
The outputs of the commands are the content of each directory (i.e., what's inside that "directory folder")
|
Examples:
|
|
|
Now it's time to learn how to use (i.e. run) some of these applications to become a skillful computer operator
(You need to become a skillful computer operator before you can become a skillful computer programmer)
|
|
(That's because Prof. Cheung has developed this course material)
Caveat:
|
This is what you would see when you browse the /home/cheung/cs170 directory:
|
Files in a computer systems are stored in some directory
|
|
ls DIRECTORY-PATH |
(ls is an abbreviation of the word list)
The ls command (application) will list the names of the files and the directories stored in the specified directory in alpha-numerical order
Note:
|
Example 1: " ls /" --- give the list of directory and files stored in the root directory /
Output of the ls command | Browsing the directory with a File Explorer |
---|---|
Example 2: " ls /etc" --- give the list of directory and files stored in the directory /etc
Output of the ls command | Browsing the directory with a File Explorer |
---|---|
|
|
Now you should understand what is going on. If not, please ask questions !!!
He would execute this command: ls /home/cheung/cs170
Example:
Output of the ls command | Browsing the directory with a File Explorer |
---|---|
|
Example:
|
Actual execution: