Open navigation menu
Close suggestions
Search
Search
en
Change Language
Upload
Sign in
Sign in
Download free for days
0 ratings
0% found this document useful (0 votes)
33 views
Linux Commands by Javatpont 1
Uploaded by
yaswanth Reddy
AI-enhanced title
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
Download now
Download
Save linux commands by javatpont 1 For Later
Download
Save
Save linux commands by javatpont 1 For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
0 ratings
0% found this document useful (0 votes)
33 views
Linux Commands by Javatpont 1
Uploaded by
yaswanth Reddy
AI-enhanced title
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
Download now
Download
Save linux commands by javatpont 1 For Later
Carousel Previous
Carousel Next
Save
Save linux commands by javatpont 1 For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
Download now
Download
You are on page 1
/ 22
Search
Fullscreen
11125122, 1025 AM Linux Commands -javatpaint The following are the top 50 Linux commands: Linux Directory Commands 1. pwd Command ‘The pwd command is used to display the location of the current working directory. Synta pwd Output: 2. mkdir Command ‘The mkdir command is used to create a new directory under any directory. Syntar mkdir
Output: 3. rmdir Command ‘The rmdir command is used to delete a directory. Syntax: vame> hitpsihwuujavatpolnt.comiinux-commands#Diectory ser11125122, 1025 AM Linux Commands -javatpaint Output: 4, Is Command The Is command is used to display alist of content of a directory. Syntax: r exanples oe che coy helto.s orca 5. ed Command ‘The ed command is used to change the current directory. Synta cd
Output: hitpsihwuujavatpolnt.comiinux-commands#Diectory11125122, 1025 AM Linux Commands -javatpaint Linux File commands 6. touch Command ‘The touch command is used to create empty files. We can create multiple empty files by executing it once, Syntax: touch
touch
Output: Secor eons res eS eacres 7. cat Command The cat command is a multi-purpose utility in the Linux system, It can be used to create a file, display content of the file, copy the content of one file to another file, and more Syntax: cat [OPTION]... [FILE]. To create a file, execute it as follows: cat >
1/ Enter file content Press "CTRL+ D” keys to save the file, To display the content of the fil, hitpsihwuujavatpolnt.comiinux-commands#Diectory ser11125122, 1025 AM Linux Commands -javatpaint Output: SES aod 8. rm Command The 1m command is used to remove a file. Synta rm
Output: ee aeess 9. ep Command ‘The cp command is used to copy a file or directory. Syntax: To copy in the same directory: cp
To copy in a different directory: Output: errr ast 5 oe 10. mv Command ‘The my command is used to move a file or a directory form one location to another location. Syntar mv
Output: PURE acas 14 eanama Pamnesnd dis used to rename files. tis useful for renaming a lar hitpsihwuujavatpolnt.comiinux-commands#Diectory11125122, 1025 AM Linux Commands -javatpaint Syntax: rename 's/old-name/new-name/' files For example, to convert all the text files into pdf files, execute the below command: rename 's/\txt$/\ pal “txt Output: $ is oat hello.c coats Linux File Content Commands 12. head Command ‘The head command is used to display the content ofa file. It displays the first 10 lines of a file. Syntax: head
Output: tps iwwujavalpolntcomiinuccommands#Directory 6 rer11125122, 1025 AM Linux Commands -javatpaint 13. tail Command ‘The tail command is similar to the head command, The difference between both commands is that it displays the last ten lines of the file content. It is useful for reading the error message. Syntar tail
Output: 14, tac Command The tac command is the reverse of cat command, as its name specified. It displays the file content in reverse order (from the last line). Synta: tac
Output: hitpsiwwujavalpalntcomiinuccommandstDirectory ear11125122, 1025 AM Linux Commands -javatpaint 15, more command The more command is quite similar to the cat command, as it is used to display the file content in the same way that the cat command does, The only difference between both commands is that, in case of larger files, the more command displays screenful output at a time. In more command, the following keys are used to scroll the page: ENTER key: To scroll down page by line. Space bar: To move to the next page b key: To move to the previous page. I key: fo search the string, Synta: more
Output: hitpsiwwujavalpolntcomiinuccommands#Directory10:25 0m Linux Commands -javatpaint 3 gyp.el - font-lock-mode support for gyp Copyright (c) 2012 Google Inc. ALL rights reserved. SC eS gene at Put this sonewhere in your load-path and CED) CD) (eerranaey CeO ea cae Cea aes eR CL (Ce aac ea ee eee em reece aes a To anions) Copco Cuno. Cust ean ee Pes era Cure uc eater) Peete ace Or eee ee coe reemenr mCi tanr arr eee) (string-match "* *L])}1E],)}]* #5" mace ere crenata Nore--(7) 16. less Command The less command is similar to the more command, It also includes some extra features such as ‘adjustment in width and height of the terminal,’ Comparatively, the more command cuts the output in the width of the terminal. Syntax: less
Output: Seneca et ceca as Copyright (c) 2612 Google Inc. ALL rights reserved. amet aera nai mea Petirk Gis waco taeaaes PO Teme) *python) CCRC ee ee ees eee Ce Le CSCC Rc Ga S "recent emacsen), not from the older and "python-node.el"})) 2 Cee Urner ee tete re CeCe ec peste Linu Hear Cammands hitpsihwuujavatpolnt.comiinux-commands#Diectory sor11125122, 1025 AM Linux Commands -javatpaint 17. su Command The su command provides administrative access to another user. In other words, it allows access of the Linux shell to another user. Syntax: su
Output: Senet Command The id command is used to display the user ID (UID) and group ID (GID). Pre cow Ce Cer as eat ler OPEC Oat prea 19. useradd Command The useradd command is used to add or remove a user on a Linux server. Syntax: useradd username Output: 1x Pen caer hitpsihwuujavatpolnt.comiinux-commands#Diectory wer11125122, 1025 AM Linux Commands -javatpaint ‘The passwd command is used to create and change the password for a user. Synta: passwd
Output: aneen i cereeesr i) Ges oneen beee ent ic eRCR racers eta 21. groupadd Command The groupadd command is used to create a user group. Synta: groupadd
Output: Linux Filter Commands 22. cat Command ‘The cat command is also used as a filter. To filter a file, it is used inside pipes. Syntax: cat
| cat or tac | cat or tac | Output: hitpsihwuujavatpolnt.comiinux-commands#Diectory seer11125122, 1025 AM Linux Commands -javatpaint ‘The cut command is used to select a specific column of a file, The space ("'),a slash (/), a hyphen (-), or anything else, And, the option is used as a delimiter, and it can be a ption is used to specify a column number. Syntar cut -d(delimiter) -(columnNumber) < Output: 24, grep Command ‘The grep is the most powerful and used filter in a Linux system. The ‘grep' stands for “glebal regular expression print. Its useful for searching the content from a file, Generally, itis used with the pipe. Syntax: command | grep
Output: eT 25. comm Command The ‘comm’ command is used to compare two files or streams. By default, it displays three columns, first displays non-matching items of the first file, second indicates the non-matching item of the second file, and the third column displays the matching items of both files. Syntar comm
Output: hitpsiwwujavalpalntcomiinuccommandstDrectory sar11125122, 1025 AM Linux Commands -javatpaint nea ers eee Cee 26. sed command The sed command is also known as stream editor. It is used to edit files using a regular expression. It does not permanently edit files; instead, the edited content remains only on display. it does not affect the actual file. Syntax: command | sed 's/
/
/' Output: ee s/class/Jtp, ce ae CMET EEC) 27. tee command The tee command is quite similar to the cat command. The only difference between both filters is that it puts standard input on standard output and also write them into a file. Syntax: cat
| tee
| cat or tac] Output: tps iwwujavalpolntcomiinuccommands#Directory wer11125122, 1025 AM Linux Commands -javatpaint PSU nC a es reer ee TY fiesta) Hjavatpotatejavatpotnt-Insptron-3542:~$ cat new. txt Fesoec 28. tr Command ‘The tr command is used to translate the file content like from lower case to upper case. Synta command | tr <‘old'> <'new'> Output: rs re eee 29. uniq Command ‘The uniq com land is used to form a sorted list in which every word will occur only once. Syntax: command
| uniq Output: Roce eres ees) eT ae fesneee) 30. we Command a ‘The we cammand ic used to count the lines, words, and characters in a file hitpsuiwojavatpoint.cor WiewsecommandekD rectory 192711125122, 1025 AM Linux Commands -javatpaint we
Output: 31. od Command The od command is used to display the content of a file in different s, such as hexadecimal, octal, and ASCII characters. Syntax: od-b
—_// Octal format od -tx1 < Name> //Hexa decimal format od-c
— // ASCII character format Output: F 5 ery Prete eo Preece Coc ecretrg Cac CeCe coy E Perr PCeetret oy 32, sort Command The sort command is used to sort files in alphabetical order. Syntax: sort
Output: hitpsiwwujavalpolnt.comiinuccommands#Directory 162711125122, 1025 AM Linux Commands -javatpant Peters etc ersten eerrr ery ieee) 33. gzip Command The gzip command is used to truncate the file size. It is a compressing tool. It replaces the original file by the compressed file having ‘gz’ extension, Syntax: gzip
Output: Ean see rear a Feverratte Feet Cet hour eee a Renter ed faace hello.i Ree came hello. foes er ake eclipse pores foe Petree cr icon rss comers pee eee 34, gunzip Command The gunzip command is used to decompress a file It is a reverse operation of gzip command, Syntax: gunzip
Output: Havatpotnt@javatpotnt-Inspiron-3542:~ gunzip Demo.txt Denol.txt Fevers Peete tye Get tr Lee cers eet ce an ences ar roars cers Paeronines rare pt coreg ; ate Leaner xf ra 6 Linux Utility Commands = tpn javatpon contin: ommande#Drectory ter11125122, 1025 AM Linux Commands -javatpaint The find command is used to find a particular file within a directory. It also supports various options to find a file such as byname, by type, by date, and more The following symbols are used after the find command: (): For current directory name (For root Syntax: find . -name "* pdf" Output: ae a58c5d437b53-1585763620407. pdt jented 36. locate Command The locate command is used to search a file by file name. It is quite similar to find command; the difference is that it isa background process. It searches the file in the database, whereas the find command searches in the file system. Itis faster than the find command. To find the file with the locates command, keep your database updated, Syntax: locate
Output: 1x hitpsiiwwujavalpolntcomiinuccommands#Directory seer11125122, 1025 AM Linux Commands -javatpaint Sean aaa Pera 37. date Command The date command is used to display date, time, time zone, and more, Syntax: date Output: 38. cal Command ‘The cal command is used to display the current month's calendar with the current date highlighted, Synta cal< Output: May 2820 Tu We th 14 39. sleep Command The sleep command is used to hold the terminal by the specified amo 712." seconds. x Synta hitpsihwuuavatpolnt.comiinux-commands#Directory s9e711125122, 1025 AM Linux Commands -javatpaint Output: 40. time Command The time command is used to display the time to execute a command a ee ce Crees 41. zcat Command The zeat command is used to display the compressed files Syntax: zat
Output: rroness oes oreo cree cca sis : ess cetera 42. df Command ‘The df command is used to display the disk space used in the file system. 1 ' ead hinele awailshle blocks, and the mounted directory. hitpsihwuuavatpolnt.comiinux-commands#Directory 201711125122, 1025 AM Linux Commands -javatpaint dt oT a raat Pearce ea ied Preece Cimecere rere rr ee ee ea) re eMC rreee eer rset me wd Perr e ELST coe 7 ELM 4 Brewis Ctr wee) evi Perce SO Ee gue eens E EL /dev/Loop2 Serrery ee eed 384 CeCe Aiea rues (eva z Prat) CEC Wea eee OL] /dev /Loops tre CEC Aerie eee Ce 43, mount Command ‘The mount command is used to connect an external device file system to the system's file system. Syntax: mount -t type
Output: RSs oe ee See whe enn aque Che entree ets) proc on /proc type proc (rw,nosutd,nodev,noexec,relatine) Ewes a ce eC meICRr iets eset Ceres ame eT SE SER) toe) Pew Cyne Cr eC cc eC Cen eee) -=088) Fae U tus i eR RUC RL Cae Geer LL Ee) rR aU ese mC Coe or) Cog OW Ey] Saeco ese Seca eMCnCCnC Rt eC WEEE nes eee eC ee) 44, exit Command Linux exit command is used to exit from the current shell, It takes a parameter as a number and exits the shell with a return of status number. Syntax: 2 exit Output: 7 hitpsihwuujavatpolnt.comiinux-commands#Diectory aan11125122, 1025 AM Linux Commands -javatpaint After pressing the ENTE 45. clear Command Linux elear command is used to clear the terminal screen. Output: ar Pee eerce ac rot After pressing the ENTER key, ill clear the terminal screen, Linux Networking Commands 46. ip Command Linux ip command is an updated version of the ipconfig command. It is used to assign an IP address, initialize an interface, disable an interface. Synta ip a orip addr Output: tps iwwujavalpolntcomiinuccommands#Directory zat11125122, 1025 AM Linux Commands -javatpaint FE erry Pee aCe nee en ec oe Cte Bea ee ED Poser ey eercrea ores Somer Soest ees) areca: Bee eae a eeeicd Prot ene eer) eerie eet eee Be eres re es eos arem ae a ee eC ene ca ar) facaenear coe eer y eee er eet reac ee eee eeCORC errr ir eCreC Wei aC mL Can ea cs poe eet Poi Teee a Co an ec Pec 47. ssh Command Linux ssh command is used to create a remote connection through the ssh protocol Syntax: ssh user_name@host(IP/Domain_name) 48, mail Command The mail command is used to send emails from the command Ii Syntax: mail -5 "Subject"
Output: FES e eee ener rrr er ee err nT cn ey re Paice Sueur 49. ping Command The ping command is used to check the connectivity between two nodes, that is whether the server is connected. It isa short form of "Packet Internet Groper. syntax 6 ping
3 hitpsiwoujavatpoint.cor WinuiccommandekDreclory zat11125122, 1025 AM Linux Commands -javatpaint Serer ae 89-121) 50(84) cere) com (194.169.80.121): icmp_s CCLRC TCT Mec Cee OE ee tod Ca CCLRC LaLa Me CLC Petz OE SCL GeeCreeC eCO 50. host Command ‘The host command is used to display the IP address for a given domain name and vice versa. It performs the DNS lookups for the DNS Query. Synta host
or
Output: 2 eer PSS IS [eer eee treec nett © For Videos Join Our Youtube Channel: Join Now Feedback ‘hack to
[email protected]
hitpsihwuujavatpolnt.comiinux-commands#Diectory pat
You might also like
LSP Commands 1
PDF
No ratings yet
LSP Commands 1
30 pages
50 Commands
PDF
No ratings yet
50 Commands
24 pages
Linux Commands
PDF
No ratings yet
Linux Commands
22 pages
LINUX Operating System
PDF
No ratings yet
LINUX Operating System
32 pages
Linux Commands With Examples
PDF
No ratings yet
Linux Commands With Examples
11 pages
EXP-1 - Study of Basic Linux Commands
PDF
No ratings yet
EXP-1 - Study of Basic Linux Commands
22 pages
Linux Top 50 Commands
PDF
No ratings yet
Linux Top 50 Commands
23 pages
OSY PPT
PDF
No ratings yet
OSY PPT
10 pages
Linux Commands
PDF
No ratings yet
Linux Commands
25 pages
To Study Details About Linux Utilities
PDF
No ratings yet
To Study Details About Linux Utilities
7 pages
Linux Commands
PDF
No ratings yet
Linux Commands
10 pages
50 Commands of Linux
PDF
No ratings yet
50 Commands of Linux
9 pages
Linux Commands With Examples
PDF
No ratings yet
Linux Commands With Examples
18 pages
670240719-About-Linux-OSY-Microproject_removed
PDF
No ratings yet
670240719-About-Linux-OSY-Microproject_removed
28 pages
Linux Command
PDF
No ratings yet
Linux Command
21 pages
.Docx Patare Avdhut
PDF
No ratings yet
.Docx Patare Avdhut
31 pages
Linux Commands
PDF
No ratings yet
Linux Commands
14 pages
Linux Commands
PDF
No ratings yet
Linux Commands
7 pages
Linux Commands List With Examples
PDF
No ratings yet
Linux Commands List With Examples
8 pages
Linux Command:-: The PWD Command Is Used To Display The Location of The Current Working Directory
PDF
No ratings yet
Linux Command:-: The PWD Command Is Used To Display The Location of The Current Working Directory
12 pages
Linux Commands
PDF
No ratings yet
Linux Commands
6 pages
Basic Linux Commands
PDF
No ratings yet
Basic Linux Commands
12 pages
Basic Linux Command
PDF
No ratings yet
Basic Linux Command
9 pages
1.1 Basic of Linux Commands
PDF
No ratings yet
1.1 Basic of Linux Commands
16 pages
Experiment No 1
PDF
No ratings yet
Experiment No 1
11 pages
Avdut Final
PDF
No ratings yet
Avdut Final
33 pages
Linux Basic Commands With Examples
PDF
No ratings yet
Linux Basic Commands With Examples
22 pages
Linux Commands
PDF
No ratings yet
Linux Commands
18 pages
Linux Command Line
PDF
No ratings yet
Linux Command Line
26 pages
1 Practical
PDF
No ratings yet
1 Practical
4 pages
Unit-2 Part 4
PDF
No ratings yet
Unit-2 Part 4
24 pages
linux lab manual
PDF
No ratings yet
linux lab manual
25 pages
Linux Adm Lab Commands
PDF
No ratings yet
Linux Adm Lab Commands
26 pages
Linux Commands
PDF
No ratings yet
Linux Commands
68 pages
unit 4 commands
PDF
No ratings yet
unit 4 commands
11 pages
Osy Final Micro
PDF
No ratings yet
Osy Final Micro
9 pages
Assignment 2
PDF
No ratings yet
Assignment 2
31 pages
1 Practical-1
PDF
No ratings yet
1 Practical-1
4 pages
linux commands
PDF
No ratings yet
linux commands
18 pages
Linux Basic Commands
PDF
No ratings yet
Linux Basic Commands
12 pages
20 Basic Linux Commands - Learn in 20 Minutes
PDF
No ratings yet
20 Basic Linux Commands - Learn in 20 Minutes
31 pages
Linux Commands
PDF
No ratings yet
Linux Commands
9 pages
Linux Basic Commands
PDF
No ratings yet
Linux Basic Commands
10 pages
oss
PDF
No ratings yet
oss
18 pages
Linux Basic commands
PDF
No ratings yet
Linux Basic commands
26 pages
DOS-Commands-Linux-Commands
PDF
No ratings yet
DOS-Commands-Linux-Commands
29 pages
Ostunit 2
PDF
No ratings yet
Ostunit 2
34 pages
Ls Is A Linux Shell Command That Lists Directory Contents of Files and Directories
PDF
No ratings yet
Ls Is A Linux Shell Command That Lists Directory Contents of Files and Directories
22 pages
Basic Linux Commands For Beginners Linux Maker Pro
PDF
No ratings yet
Basic Linux Commands For Beginners Linux Maker Pro
1 page
Linux Commands
PDF
No ratings yet
Linux Commands
38 pages
Linux Commands
PDF
No ratings yet
Linux Commands
4 pages
Experimet 1 (IOT)
PDF
No ratings yet
Experimet 1 (IOT)
5 pages
Linux Commands
PDF
No ratings yet
Linux Commands
24 pages
fpga_exp1 thiru
PDF
No ratings yet
fpga_exp1 thiru
17 pages
2 - Familiarisation of Linux Commands
PDF
No ratings yet
2 - Familiarisation of Linux Commands
6 pages
Smriti 10711260
PDF
No ratings yet
Smriti 10711260
11 pages
OS Lab - Week 4
PDF
No ratings yet
OS Lab - Week 4
27 pages
35 Linux Basic Commands Every User Should Know
PDF
No ratings yet
35 Linux Basic Commands Every User Should Know
8 pages
Rishabh Linux File
PDF
No ratings yet
Rishabh Linux File
26 pages
Related titles
Click to expand Related Titles
Carousel Previous
Carousel Next
LSP Commands 1
PDF
LSP Commands 1
50 Commands
PDF
50 Commands
Linux Commands
PDF
Linux Commands
LINUX Operating System
PDF
LINUX Operating System
Linux Commands With Examples
PDF
Linux Commands With Examples
EXP-1 - Study of Basic Linux Commands
PDF
EXP-1 - Study of Basic Linux Commands
Linux Top 50 Commands
PDF
Linux Top 50 Commands
OSY PPT
PDF
OSY PPT
Linux Commands
PDF
Linux Commands
To Study Details About Linux Utilities
PDF
To Study Details About Linux Utilities
Linux Commands
PDF
Linux Commands
50 Commands of Linux
PDF
50 Commands of Linux
Linux Commands With Examples
PDF
Linux Commands With Examples
670240719-About-Linux-OSY-Microproject_removed
PDF
670240719-About-Linux-OSY-Microproject_removed
Linux Command
PDF
Linux Command
.Docx Patare Avdhut
PDF
.Docx Patare Avdhut
Linux Commands
PDF
Linux Commands
Linux Commands
PDF
Linux Commands
Linux Commands List With Examples
PDF
Linux Commands List With Examples
Linux Command:-: The PWD Command Is Used To Display The Location of The Current Working Directory
PDF
Linux Command:-: The PWD Command Is Used To Display The Location of The Current Working Directory
Linux Commands
PDF
Linux Commands
Basic Linux Commands
PDF
Basic Linux Commands
Basic Linux Command
PDF
Basic Linux Command
1.1 Basic of Linux Commands
PDF
1.1 Basic of Linux Commands
Experiment No 1
PDF
Experiment No 1
Avdut Final
PDF
Avdut Final
Linux Basic Commands With Examples
PDF
Linux Basic Commands With Examples
Linux Commands
PDF
Linux Commands
Linux Command Line
PDF
Linux Command Line
1 Practical
PDF
1 Practical
Unit-2 Part 4
PDF
Unit-2 Part 4
linux lab manual
PDF
linux lab manual
Linux Adm Lab Commands
PDF
Linux Adm Lab Commands
Linux Commands
PDF
Linux Commands
unit 4 commands
PDF
unit 4 commands
Osy Final Micro
PDF
Osy Final Micro
Assignment 2
PDF
Assignment 2
1 Practical-1
PDF
1 Practical-1
linux commands
PDF
linux commands
Linux Basic Commands
PDF
Linux Basic Commands
20 Basic Linux Commands - Learn in 20 Minutes
PDF
20 Basic Linux Commands - Learn in 20 Minutes
Linux Commands
PDF
Linux Commands
Linux Basic Commands
PDF
Linux Basic Commands
oss
PDF
oss
Linux Basic commands
PDF
Linux Basic commands
DOS-Commands-Linux-Commands
PDF
DOS-Commands-Linux-Commands
Ostunit 2
PDF
Ostunit 2
Ls Is A Linux Shell Command That Lists Directory Contents of Files and Directories
PDF
Ls Is A Linux Shell Command That Lists Directory Contents of Files and Directories
Basic Linux Commands For Beginners Linux Maker Pro
PDF
Basic Linux Commands For Beginners Linux Maker Pro
Linux Commands
PDF
Linux Commands
Linux Commands
PDF
Linux Commands
Experimet 1 (IOT)
PDF
Experimet 1 (IOT)
Linux Commands
PDF
Linux Commands
fpga_exp1 thiru
PDF
fpga_exp1 thiru
2 - Familiarisation of Linux Commands
PDF
2 - Familiarisation of Linux Commands
Smriti 10711260
PDF
Smriti 10711260
OS Lab - Week 4
PDF
OS Lab - Week 4
35 Linux Basic Commands Every User Should Know
PDF
35 Linux Basic Commands Every User Should Know
Rishabh Linux File
PDF
Rishabh Linux File