To change to a directory, you can use its absolute or relative pathname.Īssuming that the directory Downloads exists in the directory from which you run the command, you can navigate to it by using the relative path to the directory: When used without any argument, cd will take you to your home directory: cd (“change directory”) command is used to change the current working directory in Linux and other Unix-like operating systems. The command displays the path of your current working directory: /home/linuxize Each time you interact with your command prompt, you are working within a directory.Ĭommand to find out what directory you are currently in: pwd The current working directory is the directory in which the user is currently working. Current Working Directory ( pwd command) # The absolute or full path starts from the system root /, and the relative path starts from your current directory. When navigating the file system on operating on files, you can use either the absolute or the relative path to the resource. The root directory is referred to by a single leading slash /. In Linux, every file and directory is under the root directory, the first or top-most directory in the directory tree. You can also press the Enter key to move one line at a time, the Space bar to move to the next screen, and the b key to go one screen back. To navigate the man pages, use the Arrow, Page Up, and Page Down keys.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |