Linux Survival
Search
Primary Menu
Skip to content
Home
Blog
Testimonials
Linux Links
Command List
Contact
Search for:
Linux Survival
Now that we know everything is as it should be, let's go back up one level to the "animals" directory to do some more organizing. To change to your previous directory (also known as the "parent" directory), you need to use a special "argument" to the "cd" command. You would type cd .. Wherever you see "..", it refers to the directory above your current directory. In computer terms, the word "argument" does not refer to a disagreement, it refers to the "thing" which a command acts upon. In the example above, ".." is the argument to the "cd" command. In this case, the "thing" is a directory. You have actually been using arguments in most of the commands you have used so far. For example, in the "more cobras" command, "cobras" is the argument to the "more" command. The "thing" in this case is a file. Note that you always have to put a space between a command and its argument. Windows Command Prompt users might find this irritating, since Windows does not have this requirement. So, for example, Windows allows you to enter "cd..". Linux would give you an error message. Click the right arrow.
Page 11
Where learning Linux is easy
Module 1 Introduction
Directory Structure
List Directory
View File Contents
Create Directory
Move and Rename File
Change Directory
Get Current Location
Quiz 1
End of Module 1
Module 2 Introduction
Pathnames
Copy File
Remove File
Remove Directory
File Security
Change File Permissions
Wildcards
Groups Memberships
Quiz 2
End of Module 2
Module 3 Introduction
Home Directories
Manual Pages
User Information
Find File
Concatenate Files
Redirect Output
Print
Print Job Status
Cancel Print Job
Quiz 3
End of Module 3
Module 4 Introduction
Copy Tree
Disk Space
Remove Tree
Process Status
Pipe Output
Pattern Matching
Kill Process
Quiz 4
Conclusion