Enhancing Skills

cd: Change directory

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/Documents as the new location.

Sample Command and Output:

$ cd ..
$ pwd
/home/user

Description:

  • cd ..: Moves up one directory level from /home/user/Documents to /home/user.
  • pwd: Prints the current working directory, now showing /home/user after the directory change.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.