DEV Community

shafya02
shafya02

Posted on

Important commands used in terminal

Here we are going to discuss about some important and frequently used some commands in ubuntu terminal.

CD Command

  cd command is akso called as **chdir** that means change directory.
  Its is used to chabge a current location of one directory to another location.
Enter fullscreen mode Exit fullscreen mode

Ex: cd my\songs

LS Command

  ls command is used to list the files and directories that are available in your system.
  There are many types of ls command available,that are
Enter fullscreen mode Exit fullscreen mode

1.ls -a
this command is used to display the hidden files or directory

2.ls -l
this command is used to display the complete information about the files

3.ls -f
this command is used to classify the files with special charecters for example (@,$,*) that are ens with the sumbols.

MKDIR Command

     It allows the user to make new directories.
     this command is used to create the new directories.
Enter fullscreen mode Exit fullscreen mode

Ex: Crete the simple directory on current location.

mkdir book_title
Enter fullscreen mode Exit fullscreen mode

o/p book_title

MV Command

  To move a file from one loaction to another location we use the mv command
Enter fullscreen mode Exit fullscreen mode
mv filename destinationfile
Enter fullscreen mode Exit fullscreen mode

Top comments (0)