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 *

This Month's Most Popular Posts

AdvertisementBooks by Nerdynaut
To Top