![]() ![]() “cd” command related information can be obtained with “–help”. Done, now you’ve already changed the directory.Example change a directory in simple relative path.Īssuming “Documents” is inside your home directory.Example navigate to previous directory.Example navigate directory two level up.Suppose you are currently in the “/user/Documents/local”, it’ll switch to the “/user/Documents” directory Example navigate directory one level up.Surround the path with quotes or use the backslash (\). Example change a “directory name” with space. ![]() If the path starts with a slash “/” it is the absolute path to the directory. Example change a directory with relative path of directory name.This will move or navigate you to “Documents” as new current working directory. Example change a working directory in the current directory.The syntax for using the “cd” command as shown below.Use “cd” command with option as alternative and specify the “directory-name” or path where you want to go to.To change (or go to specific) directory in linux: This is one of the most common administrative tasks you can perform when working on terminal with the linux command line. In other words, it moves you to a new directory or folder in the file system. “cd” command is used to changes your current working directory. You can easily change (or go to specific) directory in linux via terminal on your system using the command line with the following methods cd, and Information.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |