If you want to switch to a completely new directory, for example, /home/username/Movies, you have to enter cd followed by the directory’s absolute path: Let’s say you’re in /home/username/Documents and want to go to Photos, a subdirectory of Documents. Keep in mind that only users with sudo privileges can execute it. Running this command without an option will take you to the home folder. Depending on your current working directory, it requires either the full path or the directory name. To navigate through the Linux files and directories, use the cd command. -P or –physical prints the actual path of the current directory.-L or –logical prints environment variable content, including symbolic links.The pwd command uses the following syntax: Simply entering pwd will return the full current path – a path of all the directories that starts with a forward slash ( /). Use the pwd command to find the path of your current working directory. -h or –host=host runs commands on the host.-g or –group=group runs commands as a specified group name or ID. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |