Exp -5 : Linux Commands for COPA Trade - Practical

Linux Commands

I have learned these commands 

1. pwd Command

The pwd command is used to display the location of the current working directory.

Syntax:

pwd  

2. mkdir Command

The mkdir command is used to create a new directory under any directory.

mkdir <directory name>

3. rmdir Command

The rmdir command is used to delete a directory.

Syntax:

rmdir <directory name>

4. ls Command

The ls command is used to display a list of content of a directory.

Syntax:

ls  

5. cd Command

The cd command is used to change the current directory.

Syntax:

cd <directory name>  

6. rm Command

The rm command is used to remove a file.

Syntax:

rm <file name>

7. cp Command

The cp command is used to copy a file or directory.

Syntax:

To copy in the same directory:

cp <existing file name> <new file name>

8. mv Command

The mv command is used to move a file or a directory form one location to another location.

Syntax:

mv <file name> <directory path>  

9. rename Command

The rename command is used to rename files. It is useful for renaming a large group of files.

Syntax:

rename 's/old-name/new-name/' files  

10. head Command

The head command is used to display the content of a file. It displays the first 10 lines of a file.

Syntax:

head <file name>  

Popular posts from this blog

COPA Bits for Computer Based Test (CBT) by Venugopal Vanjarapu

COPA

Operating System