Preview

Jm Pwd File

Good Essays
Open Document
Open Document
506 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Jm Pwd File
1. pwd: The pwd command will allow you to know in which directory you're located (pwd stands for "print working directory"). Example: "pwd"in the Desktop directory will show "~/Desktop". Note that the Gnome Terminal also displays this information in the title bar of its window. A useful gnemonic is "present working directory."

1. ls: The ls command will show you ('list') the files in your current directory. Used with certain options, you can see sizes of files, when files were made, and permissions of files. Example: "ls ~" will show you the files that are in your home directory.

That’s where the list command – ‘ls’ – comes in. * ‘ls’ lists all of the items (bar hidden files) in the current folder * ‘ls -al’ lists all items in a folder, including hidden files and directories

1. cd: The cd command will allow you to change directories. When you open a terminal you will be in your home directory. To move around the file system you will use cd. Examples: 1. To navigate into the root directory, use "cd /" 2. To navigate to your home directory, use "cd" or "cd ~" 3. To navigate up one directory level, use "cd .." 4. To navigate to the previous directory (or back), use "cd -" 5. To navigate through multiple levels of directory at once, specify the full directory path that you want to go to. For example, use, "cd /var/www" to go directly to the /www subdirectory of /var/. As another example, "cd ~/Desktop" will move you to the Desktop subdirectory inside your home directory.

1. mkdir: The mkdir command will allow you to create directories. Example: "mkdir music" will create a directory called "music".

1. rm: Use this command to remove or delete a file in your directory.

1. cp: The cp command will make a copy of a file for you. Example: "cp file foo" will make an exact copy of "file" and name it "foo", but the file "file" will still be there. If you are copying a directory, you must use "cp -r

You May Also Find These Documents Helpful

Related Topics