Go One Directory Up Unix

Go One Directory Up Unix

If you are trying to go one directory up from your current working directory on Linux box please use below command:

cd ..

Example:

  • First check your current working directory using pwd shown below:
JavaHonk  $ pwd
/apps/middleware/applications/jboss-as/servers/transform_d1/log
JavaHonk  $
  •  Now as you see my current working directory is /apps/middleware/applications/jboss-as/servers/transform_d1/log. To move one directory up please use cd .. as below:
JavaHonk  $ pwd
/apps/middleware/applications/jboss-as/servers/transform_d1/log
JavaHonk  $ cd ..
JavaHonk  $ pwd
/apps/middleware/applications/jboss-as/servers/transform_d1
JavaHonk  $
  •  For more Unix command please visit Wikipedia

Leave a Reply

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