Contact us |
Using cd
To Use cd1. Log in to the computer as root 2. Change from your current directory to the /etc directory. [root@localhost root]# cd /etc 3 . Note that your prompt has changed from “ [root@localhost root]# ” to : “[root@localhost etc]# “ 4. Change to the “/usr/local/” directory [root@localhost etc]# cd /usr/local [root@localhost local]# What has changed about your prompt? 5. Change back to root’s home directory [root@localhost local]# cd /root 6. Change to the /usr/local/ directory again. Type [root@localhost root]# cd /usr/local 7. To change to the parent directory of the local directory type “cd ..” [root@localhost local]# cd .. What is the parent directory of the /usr/local/ directory? 8. To quickly change back to root’s home directory type “cd” without any argument. [root@localhost usr]# cd [root@localhost root]#
|
Login... |
||||