Wednesday, 6 December 2017

BASIC LINUX COMMANDS



In this article we would discuss some basic linux commands.

#pwd -It displays the present working directory.

#logname - It displays the initial user name. eg logname.

#clear - It clear the screen.

# exit - To logout from current session.

#date - It displays the current system date & time.

#who - It displays the list of user who are currently logged in to the server i.e. each user logname,        terminal no,date & time that the person logged in.

#whoami - same as who command.

# ls - to list files

#cp - To copy from one

eg. cp source location destination

# cat - To view files contents.

eg. cat file.txt

#scp - To copy securely

scp file.txt root@ip:/var/tmp/

# mv - To move file from one location to another

eg. mv source to destination

mv command is used to rename the file or directory also.

mv test nokia

# rm - To delete a file or directory

eg. rm file.txt

# mkdir - To create a directory.

eg. mkdir test

# touch - To create a file.

eg. touch 1.txt

#

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home