728x90 AdSpace

Sunday, 9 July 2017

Change Directory cd Linux Command

Change Directory cd Linux Command


cd - Change working directory


cd <dirName>


Change the current working directory to dirName, or to the home directory (as specified in the HOME environment variable) if dirName is not given.
Returns an empty string. Note that the current working directory is a per-process resource; the cd command changes the working directory for all
interpreters and (in a threaded environment) all threads.


Change to the home directory of the user fred:

cd ~fred

Change to the directory lib that is a sibling directory of the current one:

cd ../lib
Annamalai Thangaraj

Annamalai is working as Technical Lead in Leading Telecom company with 5+ years experience in Identity and Access Management , Telecom and Networks, BigData, Java, Spring, Struts, Hibernate, AngularJS, and Enterprise Web Application Development.

Website: Java Tutorials Corner

Shop and help us

Flipkart Offer Snapdeal offer Amazon.in offer Amazon.com offer
  • Blogger Comments
  • Facebook Comments
  • Disqus Comments


Post a Comment

Item Reviewed: Change Directory cd Linux Command Rating: 5 Reviewed By: Annamalai Thangaraj