cd [option] [location]
usage: cd [-L|[-P [-e]] [-@]] [dir]
The cd command stands for "Change Directory". cd changes the kernals or shells (terminal) current working directory.
anon@anon-Inspiron-3521:~$ cd /homeHere you can see the current directory is ~$ which stands for /home/[name of user] for the users home folder. Then the current directory is changed to /home$ which means that the shell is in the main home folder. If I list out the directories, from the /home$ file
anon@anon-Inspiron-3521:/home$
anon@anon-Inspiron-3521:/home$ ls
anon
The list of files in /home would only show the list of active home folders for the current user. I am the only user on the computer and the only home folder I have on the operating system is the one main one, so the only home folder to show is mine.
Typing cd into the terminal will change the directory to the users home folder, in my case it would be /home/anon.
Main files to change to:
Computer Files "/"
Home Folder "/home/anon" (/home/[name of user]) also acquire the user home folder by typing "cd"
Example text for paste and entry:
cd
cd ..
cd /
cd /etc
cd /bin
cd /dev
cd /sbin
cd /tmp
cd /boot
cd /etc
cd /mnt
cd /root
cd /usr
cd /cdrom
cd /home
cd /lib
cd /opt
cd /run
cd /sys
cd /var
No comments:
Post a Comment