File and Directory commands used in Ubuntu

File and Directory commands used in Ubuntu

  –  Stands for your Home directory

pwd (Print working Directory)Allows you to know in which directory you are located

lsWill show you the list of files in your current directory

cdallow you to change the directories. To move around the file system cd command will be used

cd/navigate to the root directory

cd ~
navigate to home directory

cd ..
navigate up one directory

cd –
navigate to previous directory

copy a file

cp –r
directory aaarecursively copy the directory aaa

move a file to a different location (mv aaa ~/Desktop)

rmremove a file

delete an empty directory

mkdirallow to make a directory

Thamali Epa
Thamali is a contributor at Nerdynaut Staff.
  • Fascinated
  • Happy
  • Sad
  • Angry
  • Bored
  • Afraid
Click to comment

Leave a Reply

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

Most Popular

​Disclaimer : Nerdynaut is a tech company which consists of professionals in respective academic fields in its functional team facing challenging roles to quench the thirst of knowledge in cyberspace. Every article and majority of artworks in this website are copyright of Nerdynaut 2017. After a written permission from the publisher, the original content can be reused or referred for promotional work of education without any modification. Expressions of mass media with intentional harm on Nerdynaut brand may be liable to criminal prosecution and civil claims for the damages caused.
Protected by Copyscape
* = required field
Do You know Sinhala

Copyright©2014-2017.The Nerdynaut. All Rights Reserved.
Made in Sri Lanka.

To Top