cd: Change directory
August 7th, 2024 10:10 PM Mr. Q Categories: Command
Change directory
Command: cd
Useful for navigating through your file system.
Sample Command and Output:
$ cd /home/user/Documents
$ pwd
/home/user/Documents
Description:
cd /home/user/Documents: Changes the current working directory to/home/user/Documents.pwd: Prints the current working directory, showing/home/user/Documentsas the new location.
Sample Command and Output:
$ cd ..
$ pwd
/home/user
Description:
cd ..: Moves up one directory level from/home/user/Documentsto/home/user.pwd: Prints the current working directory, now showing/home/userafter the directory change.