0% found this document useful (0 votes)
41 views

Linux Basics CMD

Linux is an operating system similar to Unix. Some basic Linux commands include ls to list files, rm to remove files, rmdir to remove empty directories, cat to display file contents, cd to change directories, mv to move or rename files, who to display logged in users, mkdir to create directories, cp to copy files, and man to display command help. Common commands also include commands for permissions (chmod), clearing screens (clear), viewing users (w), remote login (telnet), file creation (touch), text editing (vi), displaying time/date (date, cal), viewing network settings (ifconfig, hostname), and more.

Uploaded by

haftamu
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
41 views

Linux Basics CMD

Linux is an operating system similar to Unix. Some basic Linux commands include ls to list files, rm to remove files, rmdir to remove empty directories, cat to display file contents, cd to change directories, mv to move or rename files, who to display logged in users, mkdir to create directories, cp to copy files, and man to display command help. Common commands also include commands for permissions (chmod), clearing screens (clear), viewing users (w), remote login (telnet), file creation (touch), text editing (vi), displaying time/date (date, cal), viewing network settings (ifconfig, hostname), and more.

Uploaded by

haftamu
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 12

Linux basic commands

Linux is an operating system.It is similar to the unix os.


Basic linux command:
1. Ls :- This command is used to list all the files in the
current working directory . Eg :-
$ls
2. Rm :- This command is used to remove the file from
the directory. Eg :-
$rm filename
Linux basic commands

3.Rmdir :- This command is used remove


directory . But it should not contain any file.Then
only we can remove the directory
eg :-$rmdir directory name
4.Cat :- This command is used to display the
content of file.
Eg :- $cat>filename (i.e.,)used to write the content
in to the file.
eg :- $cat file .(i.e.,) used to display the content in
the file
Linux basic commands

5. CD :- This command is used to change the


current working directory.
Eg :- $cd
6.mv :- This command is also called rename
command.it is used to move the content from
the source file to the desigination file.
Eg :- $mv sourcefile desgination file
7.who :- This command is used to display the
users who are currently logged on. Eg :- $who
Linux basic commands

8.who am i :- This command is used to display the


information about the user.
Eg:- $who am i
9.mk dir :- This command is used to create a new
directory.
Eg :- $mkdir directoryname
10.Cp :- This command is used to copy the
content of source file to the designation file.
Eg :-$cp source_file desgination_file
Linux basic commands

11.wall :- This command is used to send message


to every user who are currently logged on.
Eg :- $wall message
12.bc :- Bc command is used for calculator
eg :- $bc
13.grep :- this command is used search a word or
character or sentence in a file
Eg :- $grep word filenme
Linux basic commands

14.wc :- This command is used to count the number of


character in a file
eg :- wc option filename
15.pwd :- this command is used to display current working
directory.
Eg :- pwd
16. man:- This command is used to show the information
about any commands.
Eg:-man <any command>
Linux basic commands

17. more
This shows the contents of text files. Also you
might be able to find“less” and “cat” which are
similar commands.
18. <command> --help
This command show the every option for given
commands.
Linux basic commands

19. chmod :-
This command is used to change the file acess
permission..
20. clear :- this command is used to clear the terminals.
Eg:-clear
21. w :- this command is used to print the current
system users.
Linux basic commands

22. telnet :-
Telnet allows you to login remotely from a remote
computer to a host
23.Touch:-
This command is used to create file that file is
bydefault txt.
Eg:-touch filename
Linux basic commands

24.vi:-
This command are used to create the file and edit
any existing file.
Eg:-vi filename

25.date:-
This command are used to display the system
date and time.
Linux basic commands

26. cal:-
This command are used to display the system
calendar.
Eg:-cal
27. ifconfig:-
This command are used to display the system IP
address.
28.hostname:-
Thank you

Designed by :-
Bitu kumar singh
asst. s/w engineer (trainee)
work at volksgeist technology LLp
ID:-VGT141t

You might also like