{"id":7327,"date":"2021-03-21T13:30:25","date_gmt":"2021-03-21T13:30:25","guid":{"rendered":"https:\/\/www.realjossy.com\/?p=7327"},"modified":"2023-09-27T19:23:55","modified_gmt":"2023-09-27T19:23:55","slug":"linux-commands","status":"publish","type":"post","link":"https:\/\/realjossy.com\/blog\/linux-commands\/","title":{"rendered":"Linux Commands"},"content":{"rendered":"\n\n\n<p class=\"wp-block-paragraph\">Here in this article,  you will find the important Linux commands you should know in the Linux Operating System<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What is Linux? <\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The first thing that we need to talk about in this article is the origins of Linux. In a nutshell, Linux is an operating system. For those of you who do not know what an <a href=\"https:\/\/whatis.techtarget.com\/definition\/operating-system-OS\">operating system<\/a> is, and for all of you who think you do but may have forgotten what an operating system is, it is actually the software layer that is between your hardware and the <a href=\"https:\/\/en.softonic.com\/\">software<\/a> that allows you to get something productive done on a computer.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The operating system is what allows the software to talk to the hardware. It is the one that lets you store information on hard drives, send out print jobs to printers, etc. If you are in a normal Windows environment. a Microsoft Windows Operating system. you have your hardware at the bottom, you have the <a href=\"https:\/\/edu.gcfglobal.org\/en\/windowsbasics\/all-about-windows\/1\/\">Windows operating system<\/a> on top of that, and then you have Microsoft Office, for example, that sits on top of the operating system.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Linux is an operating system that acts as an intermediary\u2014i.e. a bridge\u2014between the physical device and the instructional code of a program. The main thing that you just need to realize is that in the Linux world, the software that you will be running is of a completely different type, compared to the ones that you would run in the Windows operating system. Desktop applications like Microsoft Office and Adobe Photoshop are not usually run on a Linux environment. Linux normally<br>runs servers. <a href=\"https:\/\/www.wpbeginner.com\/glossary\/apache\/\">Apache web servers<\/a>, <a href=\"https:\/\/ecomputernotes.com\/fundamental\/what-is-a-database\/what-is-a-database-server\">database servers<\/a>, web virtualization servers, etc.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Linux is a Unix-like and mostly POSIX-compliant computer operating system assembled under the model of free and open-source software development and distribution.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">More About Linux Operating System<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Linux usually works as a server, because of its stability and security\u2019s feature. Linux programs are extremely advantageous:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Linux programs are free, you\u2019ll see, most Linux programs are.<br>They are frequently updated and for Zero charges!<br>Some of them are better than those in windows. And other doesn\u2019t even exist in windows!<br>If Linux is free and almost all their softwares are free, it is for a reason; to understand we have to go back to 1984.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">1984<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">So we are back in 1984, computer science was not very developed. Microsoft has just launched its first os: MS-DOS, but this one is far away from being done.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">But, was MS-DOS the only one then? No! There was another operating system but less known by the public.<br>The one that was called the best was \u201cUnix\u201d. It was a lot powerful than MS-DOS but a lot complicated, which explains that only the professionals could use it.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Graphically UNIX looked a lot like MS-DOS they were both seen like a black screen with some white text in it. We must say that computers back then were not capable of doing better.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">GNU Project<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">It is just in 1984, that Richard Stallman created <a href=\"https:\/\/www.gnu.org\/gnu\/thegnuproject.en.html\">GNU project<\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The GNU Project is free software, mass collaboration project, announced on 27 September 1983, by Richard Stallman at MIT. Its aim is to give computer users freedom and control in their use of their computers and computing devices, by collaboratively developing and providing software that is based on the following freedom rights: users are free to run the software, share it (copy, distribute), study it and modify it. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">GNU software guarantees these freedom-rights legally (via its license), and is therefore free software; the use of the word &#8220;free&#8221; always being taken to refer to freedom.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Richard Stallman was a researcher in Artificial intelligence in MIT. He wanted to create an operating system based on <a href=\"https:\/\/www.purdue.edu\/hla\/sites\/varalalab\/wp-content\/uploads\/sites\/20\/2018\/01\/Lecture_2.pdf\">UNIX<\/a> (the commands still the same).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">But why would he create a copy of \u201cUNIX\u201d?<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Because UNIX was not free and it was getting more expensive! Richard Stallman wanted to react by creating a free alternative: the project GNU was born.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">GNU is an open operating system<\/h2>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"610\" height=\"272\" src=\"https:\/\/realjossy.com\/blog\/wp-content\/uploads\/2021\/03\/df_command_example.png\" alt=\"linux commands\" class=\"wp-image-7404\" srcset=\"https:\/\/realjossy.com\/blog\/wp-content\/uploads\/2021\/03\/df_command_example.png 610w, https:\/\/realjossy.com\/blog\/wp-content\/uploads\/2021\/03\/df_command_example-300x134.png 300w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">GNU should not only be a free OS; it also had to be &#8220;open&#8221;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">What is the difference?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">A free program is a program where you can have the source code, that is to say, the &#8220;batch recipe.&#8221; In contrast, Windows is a proprietary OS whose source code is stored by Microsoft. Imagine it&#8217;s like Coca-Cola: nobody knows the recipe (there are many people who try to imitate it, but hey \u2026). So we cannot change it or see how it works inside.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">An open program is mostly a free program, it is also a program that has the right to copy, modify, redistribute. It&#8217;s a real ideology in computer science: people think it is better to give the source code of the programs that we create because it allows knowledge sharing and helps the computer to evolve faster. The slogan of the Free World might be: &#8220;Unity is strength.&#8221;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">They say whenever the program is &#8220;open source&#8221; because its source code is open; everyone can see it. There are some slight differences between &#8220;open source&#8221; program and a &#8220;free&#8221; program, but we will not go into details here.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Linus Torvalds is doing his hobby<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">In 1991, Linus Torvalds, a student at the University of Helsinki (Finland), began creating his free own operating system. This system became known as Linux, referring to the name of its creator (Linux is a contraction of Linus and UNIX).<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Linus Torvalds, creator of Linux<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">What relationship with GNU? Well it turns out that these two projects were complementary: while Richard Stallman created the basic programs (program file copy, delete, file, text editor), Linus had embarked on the creation of the &#8220;heart&#8221; an operating system kernel.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The GNU (free programs) and Linux (OS kernel) project merged to create GNU \/ Linux.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Theoretically, we should talk about GNU \/ Linux. But it is a bit difficult to write and pronounce, and by abuse of language, we often say just &#8220;Linux&#8221;. This is why I continue to speak of &#8220;Linux&#8221; in the rest of the book, even though the politically correct name is &#8220;GNU \/ Linux&#8221; because it is the merger of two complementary projects.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Original operating systems<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">You should now have a better idea of the origin of the three major operating systems that exist today: Mac OS, <a href=\"https:\/\/www.edureka.co\/blog\/linux-vs-windows\/\">Linux and Windows<\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Thus, Mac OS and Linux are both based on UNIX, the ancestor of operating systems, while Windows, from MS-DOS is a separate branch. Overall, this is all you need to remember.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">It is said that Mac OS and Linux are based on UNIX because they have &#8220;copied&#8221; its operation. It&#8217;s not pejorative, it\u2019s quite the opposite: it&#8217;s been an honor to UNIX.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Linux programs do not use all the same source code as UNIX (it was also the owner, so private). They have been completely rewritten but work the same way.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If I told you all this is because I believe that knowing the origin of Linux is important. This will help you understand many things thereafter.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Also Read: <a href=\"https:\/\/www.realjossy.com\/blog\/what-is-api\/\">What is API<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Linux distributions<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">A <a href=\"https:\/\/www.tecmint.com\/linux-distro-for-power-users\/\">Linux distribution<\/a> (often called distro for short) is an operating system made as a collection of software-based around the Linux kernel and often around a package management system. The most well-known distributions are RedHat, SUSE, Debian, Mandriva, Slackware, and Ubuntu. You can find much different software and there are hundreds of different ways to install it.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To make life easier for users and allow them to make a choice, different Linux distributions were created. This is a concept that does not really exist in Windows. It&#8217;s like the difference between Windows 7 Home and Windows 7 Professional, but it goes much further than that.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Here&#8217;s what can differ from one distribution to another:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Installation: it can be greatly simplified as very complicated;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Installing management programs: If it is done well and centralized, it can make the installation of new software simpler than Windows, as discussed further!<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The preinstalled programs on your computer (e.g. Windows is bundled with Internet Explorer and Windows Media Player).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In fact, distribution is somehow packing Linux. The heart itself remains the same for all distributions. Whichever distribution you install, you get a Linux compatible with others. Some distributions are just more or less easy to handle.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Various existing distributions<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">There are many different Linux distributions. Hard to choose, you will say: indeed, the first time it is unclear what to choose \u2026 especially since all are free! Do not worry; I&#8217;ll help you make your choice.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I will not list all existing distributions, but here at least the main ones:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Slackware: one of the oldest Linux distributions. It still exists today!<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Mandriva: published by a French company, it is simple to use;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">RedHat: published by an American company, this distribution is known and widespread, especially on servers;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">SUSE: Novell published by the company;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Debian: Debian distribution alone which is managed by independent developers rather than a business. This is one of the most popular distributions.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">As I have said, whatever the distro (short for distribution) you choose, you will have a Linux. Basically, &#8220;just&#8221; a screen on first boot and various software preinstalled (I&#8217;m simplifying a bit much, but the idea is there).<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Summary<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Windows, Mac OS and Linux are the most popular operating systems.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Linux usually works as a server, because of its stability and security\u2019s feature.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Linux has the distinction of being free, that is to say that its source code (the manufacturing recipe) is open: anyone can view it. In contrast, the source code that was used to design Windows and Mac OS is closed; we say that these are proprietary operating systems.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">There are many variants of Linux, called distributions.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Getting Started With Linux Commands<\/h2>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"563\" src=\"https:\/\/realjossy.com\/blog\/wp-content\/uploads\/2021\/03\/1-21-1024x563.png\" alt=\"linux commands\" class=\"wp-image-7398\" srcset=\"https:\/\/realjossy.com\/blog\/wp-content\/uploads\/2021\/03\/1-21-1024x563.png 1024w, https:\/\/realjossy.com\/blog\/wp-content\/uploads\/2021\/03\/1-21-300x165.png 300w, https:\/\/realjossy.com\/blog\/wp-content\/uploads\/2021\/03\/1-21-768x423.png 768w, https:\/\/realjossy.com\/blog\/wp-content\/uploads\/2021\/03\/1-21.png 1194w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">I assure you, we will start with simple things to become familiar with the console. We&#8217;ll really see the ABC, the basic survival guide of kits.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Also Read: <a href=\"https:\/\/www.realjossy.com\/blog\/what-is-a-web-hosting\/\">What is Web Hosting?<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Basic Linux Commands in 2021<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">a2p<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">translate awk to perl<br>e.g. a2p myfile.awk&gt; myfile.pl<br>(translate myfile.awk into pl file)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">alias<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">create another name for a command<br>e.g. alias p=&#8221;pwd&#8221;<br>(set p as alias for pwd)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">apropos<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">view the searched term in man pages<br>e.g. apropos find<br>(list entries with &#8220;find&#8221; in man page)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">apropos -e<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">view searched term in man pages<br>e.g. apropos \u2013e nice<br>(-e: show exact word in man pages)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">apt-get<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">install, remove or update a package<br>e.g. apt-get install libc6<br>(install libc6 package)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">aspell<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">check and correct for misspellings<br>e.g. aspell -c test.txt<br>(-c:check spelling in test.txt file)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">at<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">run a job at a schedule time<br>e.g. at 1 AM Fri<br>(run the job at 1am Friday)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">awk<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">match text by regular expression <br>e.g. awk &#8216;length($0) &gt; 88&#8217; text.txt<br>(list only lines longer than 88 words)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">basename<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">display the last part of a file path<br>e.g. basename \/home\/foo\/usr\/file.txt<br>(output: file.txt)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">bc<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">perform a calculation by a calculator<br>e.g. bc 8+9<br>(output: 17)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">bg<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">resume a stopped job in background<br>e.g. bg %3<br>(resume %3 job in background)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">bunzip2<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">uncompress a file from zip format<br>e.g. bunzip2 myfile.tar.bz2<br>(uncompress myfile.tar.bz2)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">bzip2<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">compress a file to zip format<br>e.g. bzip2 myfile.dat<br>(compress myfile.dat)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">cal<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">display a month or year calendar<br>e.g. cal 2014<br>(display 2014 calendar)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">cal -3<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">display a month or year calendar<br>e.g. cal -3<br>(-3:display 3 months)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">cat<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">display contents of one of more files<br>e.g. cat file1.txt file2.txt<br>(display contents of file1 and file2)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">cat -n<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">display contents of one of more files<br>e.g. cat \u2013n myfile.txt<br>(-n: specify number of output lines)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">cd<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">change directory<br>e.g. cd \/home\/user\/mydir<br>(change current directory to mydir)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">chattr<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">set attributes for a file<br>e.g. chattr +i myfile.txt<br>(+i make the file as read-only)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">chfn<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">change user\u2019s finger information<br>e.g. chfn<br>(change all users information)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">chfn -f<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">change user\u2019s finger information<br>e.g. chfn \u2013f Full-Name<br>(-f: change full name)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">chgrp *<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">change the group ownership<br>e.g. chgrp groupname \/usr\/myfile.txt<br>(alter group ownership of myfile.txt)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">chkconfig*<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">view and modify run level file<br>e.g. chkconfig \u2013list<br>(-list: list services of run level)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">chmod<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">change access permission<br>e.g. chmod 755 filename<br>(set file access permission as 755)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">chown *<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">change ownership of file or directory<br>e.g. chown username myfile.txt<br>(alter file ownership of myfile.txt)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">chpasswd*<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">change password for users.<br>e.g. chpasswd<br>(then enter username: password)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">chsh *<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">change login shell for a user<br>e.g. chsh -s \/bin\/bash ray<br>(-s specify login shell)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">cksum<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">produce a CRC checksum number<br>e.g. cksum file.txt<br>(output checksum number of file.txt)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">clear<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">clear the screen.<br>e.g. clear<br>(clear the shell window)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">cmp<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">compare two files text byte by byte<br>e.g. cmp first.txt second.txt<br>(compare first.txt and second.txt)<\/p>\n\n\n\n\n\n<p class=\"wp-block-paragraph\">Also Read: <a href=\"https:\/\/www.realjossy.com\/blog\/what-is-a-domain-name\/\">What is a Domain Name<\/a><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">collectl<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">monitor the current system status<br>e.g. collectl<br>(list cpu, sys, inter .etc information)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">comm<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">compare two files text line by line<br>e.g. comm first.txt second.txt<br>(compare first.txt second.txt)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">cp<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">copy file(s) to another directory<br>e.g. cp myfile.txt \/mydir<br>(copy myfile.txt to mydir)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">cp -p<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">copy file(s) to another directory<br>e.g. cp \u2013p myfile.txt \/mydir<br>(-p: keep original permission)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">cp -a<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">copy file(s) to another directory<br>e.g. cp \u2013a myfile.txt \/mydir<br>(-a: keep original attributes)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">cpio -o<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">output archived cpio file<br>e.g. cpio -o &gt; directory.cpio<br>(-o: backup to an archive cpio file)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">cpio -i<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">input archived cpio file<br>e.g. cpio -i &lt; directory.cpio<br>(-i: restore from an archive cpio file)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">crontab<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">create a job to run at specified time<br>e.g. crontab<br>(set to run jobs at regular intervals. )<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">crontab -e<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">run a recurring job at a specified time<br>e.g. crontab -e<br>(-e allow edit the crontab file)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">crontab -l<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">run a recurring job at a specified time<br>e.g. crontab -l<br>(-l: lists the crontab files)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">crontab -r<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">run a recurring job at a specified time<br>e.g. crontab -r<br>(-r: remove the crontab file)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">csplit<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">split a file into some separated files<br>e.g. csplit myfile.txt \u201d\/part1\/\u201d \u201c\/part2\/\u201d<br>(separate files named xx00, xx01)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">cut -d<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">show the specified field of a file<br>e.g. cut \u2013d \u201c:\u201d myfile.txt<br>(-d: specify a field delimiter \u201c:\u201d)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">cut -c<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">extract contents from a file<br>e.g. cut \u2013c 6 myfile.txt<br>(-c6: the sixth character of each line)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">cut -f<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">extract contents from a file<br>e.g. cut \u2013f 3 myfile.txt<br>(-f3: specify a field number as 3)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">date<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">show the date and time<br>e.g. date<br>(display the current date and time)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">date -s<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">set the date and time<br>e.g. date -s &#8220;11\/20\/2014&#8221;<br>(-s set the date)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">dc<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">open a command line desk calculator<br>e.g. dc<br>( \u201cdc\u201d means desk calculator)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">dd<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">data dump to convert and copy a file<br>e.g. dd if=\/dev\/sda of=\/dev\/sdb<br>(copy data from sda to sdb)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">dmesg<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">print out all kernel log messages<br>e.g. dmesg &gt; kmsg.txt<br>(output kernel messages to kmsg.txt)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">df<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">display free disk space<br>e.g. df<br>(display file system free space)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">df -m<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">display free disk space<br>e.g. df -m<br>(-m: display sizes in Mb)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">dhclient<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">configure network interfaces<br>e.g. dhclient eth0<br>(renew IP address of eth0)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">diff<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">show difference between two files<br>e.g. diff firstfile.txt secondfile.txt<br>(display difference above two files)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">diff3<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">show difference among three files<br>e.g. diff3 file1.txt file2.txt file3.txt<br>(display difference above three files)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">dig<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">display the details of DNS servers<br>e.g. dig xvxaxx.com<br>(list information about xvxaxx.com)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">dir<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">show directory contents<br>e.g. dir<br>(display current directory contents)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">dircolors<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">show color settings for \u201cls\u201d command.<br>e.g. dircolors<br>(display directory coloring of ls)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">dirname<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">remove the last part of a file path.<br>e.g. dirname \/foo\/bar\/baz\/myfile.txt<br>(output: \/foo\/bar\/baz)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">du -s<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">display disk usage<br>e.g. du -s <em>.<\/em><br>(-s list files size in current directory)<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"473\" src=\"https:\/\/realjossy.com\/blog\/wp-content\/uploads\/2021\/03\/img_5cc898db4e3d3-1024x473.png\" alt=\"linux commands list\" class=\"wp-image-7399\" srcset=\"https:\/\/realjossy.com\/blog\/wp-content\/uploads\/2021\/03\/img_5cc898db4e3d3-1024x473.png 1024w, https:\/\/realjossy.com\/blog\/wp-content\/uploads\/2021\/03\/img_5cc898db4e3d3-300x138.png 300w, https:\/\/realjossy.com\/blog\/wp-content\/uploads\/2021\/03\/img_5cc898db4e3d3-768x354.png 768w, https:\/\/realjossy.com\/blog\/wp-content\/uploads\/2021\/03\/img_5cc898db4e3d3.png 1300w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">du -h<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">display disk usage<br>e.g. du -h myfile.txt<br>(-h: show human readable units)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">dump -f<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">makes backup of filesystem<br>e.g. dump -f0 filebk \/mydir <br>(-f:backup-0:dump-level filebk: dump-file)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">echo<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">display input on standard output<br>e.g. echo \u201cHello World!\u201d<br>(show \u201cHello World!\u201d)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">echo -e<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">display text using escape sequence<br>e.g. echo \u2013e \u201c\\n Hello World!\u201d<br>(-e: allow use \\n to show text)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">ed<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">open a command-line text editor<br>e.g. ed myfile.txt<br>(open myfile.txt with text editor)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">egrep<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">search file(s) for a specified regex<br>e.g. egrep &#8220;new | string&#8221; myfile.txt<br>(search myfile.txt for \u201cnew | string\u201d)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">eject<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">eject the cd or dvd tray<br>e.g. eject cdrom<br>(eject cdrom tray)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">eject -t<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">eject or close the cd or dvd tray<br>e.g. eject \u2013t cdrom<br>(-t: close an open cdrom tray)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">emacs<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">powerful, extensible file editor<br>e.g. emacs file.txt<br>(launch emacs and open file.txt )<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">env<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">show, set the environment variables<br>e.g. env<br>(list current environment variables)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">eval<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">make a command from its arguments<br>e.g. UPLS=\u201deval cd.. ; ls \u201d<br>(create a command named UPLS)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">exit<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">exit the shell<br>e.g. exit<br>(terminate the program and log out)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">expand<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">convert tabs into spaces<br>e.g. expand myfile.txt<br>(convert tabs to spaces for myfile.txt)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">expand -t<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">convert tabs into spaces<br>e.g. expand -t 3 myfile.txt<br>(-t: set tabs 3 characters apart)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">export<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">set an environment variable &amp; value<br>e.g. export newvar=8 echo $newvar<br>(output: 8)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">expr<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">evaluate an expression<br>e.g. expr 10+8<br>(output: 18)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">factor<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">show the prime factors of a number<br>e.g. factor 1001<br>(output: 7 11 13)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">fc<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">list, edit, re-execute last commands<br>e.g. fc -l<br>(-l:list the history of commands)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">fdisk*<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">manipulate the hard disk partitions<br>e.g. fdisk \/dev\/hdb<br>(list hard disk partitions information)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">fg<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">resume a stopped job in foreground<br>e.g. fg %3<br>(resume the job 3 in foreground)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">fgrep<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">search file(s) for a specified string<br>e.g. fgrep &#8220;good&#8221; myfile.txt<br>(search myfile.txt for \u201cgood\u201d)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">file<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">detect the file type.<br>e.g. file myfile.tar<br>(determine file type of myfile.tar)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">find \u2013print<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">find file(s) in a directory named dir<br>e.g. find dir -print -name &#8216;abc.txt&#8217;<br>(-print:print, -name:specify file name)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">finger<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">show user\u2019s information<br>e.g. finger username<br>( list the user&#8217;s login name, time. etc.)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">fmt<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">format text files<br>e.g. fmt myfile1.txt &gt; myfile2.txt<br>(format myfile1 &amp; output to myfile2)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">fmt -u<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">format text files<br>e.g. fmt \u2013u myfile.txt<br>(-u: provide uniform word spacing)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">fold<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">wrap each line to fit a specified width<br>e.g. fold -w 15 myfile.txt<br>(-w specify how many words)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">for in<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">set conditional parameter for loop<br>e.g. for n in 3 6 9 do echo $n done<br>(output: 3 6 9 )<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">free<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">displays free memory information<br>e.g. free<br>(list free, used, total memory\u2026)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">free -m<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">displays free memory information<br>e.g. free -m<br>(-m: show sizes in Mb.)<\/p>\n\n\n\n\n\n<h3 class=\"wp-block-heading\">fsck *<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">file system check<br>e.g. fsck<br>(check or fix Linux file system)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">ftp<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">transfer files by File Transfer Protocol<br>e.g. ftp ServerURL<br>(transfer files using ftp)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">gawk<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">find or replace text in a file<br>e.g. gawk &#8216;length($0) &gt; 88&#8217;<br>(list lines longer than 88 characters)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">grep<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">match a specified string or regex.<br>e.g. grep onestring myfile.txt<br>(search myfile.txt for onestring)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">groups<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">list groups to which the user belongs<br>e.g. groups<br>(print the groups of user)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">groupadd *<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">add a new group<br>e.g. groupadd newgroup<br>(create a new group)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">groupadd * -f<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">add a new group<br>e.g. groupadd \u2013f newgroup<br>(-f: check group doesn\u2019t exist)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">groupdel *<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">delete an existing group.<br>e.g. groupdel existinggroup<br>(remove an existing group)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">groupmod *-n<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">modify an existing group<br>e.g. groupmod -n newgrp oldgrp<br>(-n change group name)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">gunzip<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">uncompress a file from gzip format<br>e.g. gunzip myfile.txt.gz<br>(uncompress myfile.txt.gz)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">gzip<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">compress a file to gzip format<br>e.g. gzip myfile.txt<br>(compress myfile.txt)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">halt<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">shutdown the system<br>e.g. halt<br>(power off the system)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">hash<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">access the hash table<br>e.g. hash<br>(list commands from hash table)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">head<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">display some front lines in a file<br>e.g. head myfile.txt<br>(output the first ten lines of myfile.txt)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">head -n<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">display some front lines in a file<br>e.g. head \u2013n 4 myfile.txt<br>(-n: specify a number of lines)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">help<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">show help information of commands<br>e.g. help echo<br>(show information about echo)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">history<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">show the commands history<br>e.g. history<br>(list commands in this shell session)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">host<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">find the ip address of a domain name<br>e.g. host websprogram.com<br>(show ip of websprogram.com)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">hostid<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">display id of the current host in hex.<br>e.g. hostid<br>(print the current host id)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">hostname<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">show or set the host name<br>e.g. hostname<br>(display the name of current host )<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">id<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">show the user or group id number<br>e.g. id<br>(display the root user uid, gid. etc.)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">ifconfig<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">show, configure the network interface<br>e.g. ifconfig<br>(display the network settings)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">init *<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">set the system run level<br>e.g. init 5<br>(change to run level 5)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">info<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">show help information of a command<br>e.g. info man<br>(show help page for man)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">install<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">copy files, set permission, ownership<br>e.g. install myfiles \/home\/user<br>(copy myfiles to user directory)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">install -o<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">copy files, set permission, ownership<br>e.g. install \u2013o myfiles ray \/home<br>(-o: specify ownership)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">jobs<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">show all jobs\u2019 status<br>e.g. jobs<br>(list all running jobs\u2019 information)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">join<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">join lines of files having common field<br>e.g. join myfile1.txt myfile2.txt<br>(join lines of two files by same field)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">join<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">join lines of two files<br>e.g. join \u2013i myfile1.txt myfile2.txt<br>(-i: ignore the differences)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">kill<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">stop a job by number.<br>e.g. kill %3<br>(terminate job %3)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">kill<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">stop a process by pid.<br>e.g. kill 3956<br>(terminate process 3956)<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"518\" height=\"292\" src=\"https:\/\/realjossy.com\/blog\/wp-content\/uploads\/2021\/03\/features_solutions_command_data.png\" alt=\"basic linux commands\" class=\"wp-image-7400\" srcset=\"https:\/\/realjossy.com\/blog\/wp-content\/uploads\/2021\/03\/features_solutions_command_data.png 518w, https:\/\/realjossy.com\/blog\/wp-content\/uploads\/2021\/03\/features_solutions_command_data-300x169.png 300w\" sizes=\"auto, (max-width: 518px) 100vw, 518px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">killall<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">stop a process by name<br>e.g. killall no respond<br>(terminate process no respond)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">last<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">show most recently logged-in users<br>e.g. last<br>(list recent users\u2019 date, time\u2026)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">lastb<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">show bad login attempts<br>e.g. lastb<br>(display bad login attempts)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">lastlog<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">display the last login information<br>e.g. lastlog -u username<br>(-u: specify a user)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">less<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">show contents page by page<br>e.g. less myfile.txt<br>(display myfile.txt page by page)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">let<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">perform arithmetic on shell variables<br>e.g. let a=12; let a=a+8; echo $a<br>(output: 20)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">link<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">create a link to a file.<br>e.g. link file1.txt file2.txt<br>(create a link from file1 to file2)<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">ln<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">create a hard link to a file<br>e.g. ~\/myfile.txt<br>(create a hard link to myfile.txt)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">ln -s<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">create a link between two files<br>e.g. ln -s file1.txt file2.txt<br>(create a symbolic link to file1\/file2)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">locate<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">find the location of a file or a directory<br>e.g. locate myfile.txt<br>(locate myfile.txt on local machine)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">logname<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">show the current user\u2019s login name<br>e.g. logname<br>(display the login name of user)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">look<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">show words matching a given prefix<br>e.g. look ab<br>(output: aba, abb, abc, abd\u2026)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">lpc<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">run the line printer control program<br>e.g. lpc status<br>(show status of current print queue)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">lpq<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">show the printer queue status<br>e.g. lpq<br>(list the print queue)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">lpr<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">send a print request to printer<br>e.g. lpr myfile.txt<br>(send myfile.txt to printer)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">lprm<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">cancel the printing job in print queue<br>e.g. lprm 2<br>(remove printing job 2)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">ls<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">list the contents of current directory<br>e.g. ls<br>(list files and sub-directories)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">ls -l<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">long list contents of current directory<br>e.g. ls -l<br>(-l:long lists including permissions)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">ls -a<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">lists all entries including hidden files<br>e.g. ls -a<br>(-a: show all files)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">ls -t<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">lists all entries by time stamps<br>e.g. ls -t<br>(-t: show by time stamps)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">ls -lh<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">lists contents in current directory<br>e.g. ls -lh<br>(-lh: list files with size in mb and gb. )<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">lsattr<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">list the attribute of a file or a directory<br>e.g. lsattr myfile.txt<br>(show myfile.txt attribute)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">lsof<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">list opened files<br>e.g. lsof<br>(list all opened files)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">man<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">get command help from manual<br>e.g. man cat<br>(show manual page for cat)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">man -k<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">search manual pages for keyword<br>e.g. man \u2013k printf<br>(-k: specify a keyword)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">md5sum<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">create a md5 checksum number<br>e.g. md5sum -c file.txt<br>(-c validate file against a checksum)<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">mesg<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">enable or disable messaging<br>e.g. mesg<br>(show the current write status)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">mesg y\/n<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">enable or disable messaging<br>e.g. mesg y\/n<br>(y or n: permit or deny messaging)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">mail<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">send and receive mails<br>e.g. mail ray@websprogram.com<br>(email to ray@websprogram.com)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">mkdir<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">make a new directory<br>e.g. mkdir mydir<br>(create a directory named mydir)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">mknod<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">make a device file<br>e.g. mknod \/dev\/dk b 45 0 <br>(dk:device; b:block; 45:major no.; 0:minor no.)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">more<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">show content one screen at one time<br>e.g. more +2 myfile.txt<br>(+2: beginning at line 2)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">mount<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">mount a storage device<br>e.g. mount \/dev\/cd<br>(mount a device cd)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">mount -l<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">mount or show devices<br>e.g. mount -l<br>(-l: list all mounted devices)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">mt<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">magnetic tape drive control<br>e.g. mt -f \/dev\/tape eod<br>(-f select eod; move to end of data)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">mv<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">move a file to another directory<br>e.g. mv myfile.txt \/home\/user\/mydir<br>(move myfile.txt to mydir directory)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">mv<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">rename a file<br>e.g. mv myfile1.txt myfile2.txt<br>(rename mayfile1 to myfile2)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">netstat<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">display network status<br>e.g. netstat <br>( print network connections, routing tables.etc )<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">nice *<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">set the priority level of a job<br>e.g. nice -19 ftp<br>(set priority level as 19 for ftp)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">nl<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">add text with number lines<br>e.g. nl mylist.txt<br>(make number lines for mylist.txt)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">nohup<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">ignore hangup signals<br>e.g. nohup find ftp<br>(run ftp ignoring hangup signals)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">nslookup<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">query internet name servers for IP<br>e.g. nslookup myxxexample.com<br>(return IP like 75.126.162.XXX)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">passwd<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">modify a user password<br>e.g. passwd username<br>(change password for username)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">paste<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">merge lines of multiple files<br>e.g. paste file1.txt file2.txt<br>(merge contents for file1 and file2)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">pidof<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">show process ID of running program<br>e.g. pidof console<br>(display console\u2019s process id)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">ping<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">send data to a host, await response<br>e.g. ping xvxmjfz.com<br>(test if remote host can be reached)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">ping -c<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">test if remote host can be reached<br>e.g. ping \u2013c5 xvxmjfz.com<br>(-c5: specify the number of pings)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">pkill<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">kill a running process<br>e.g. pkill firefox<br>(stop web browser firefox)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">pr<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">prepare text files for printing<br>e.g. pr myfile.txt<br>(prepare myfile.txt for printing)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">pr -n<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">prepare text files for printing<br>e.g. pr \u2013n myfile.txt<br>(-n: specify number in each line)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">pr -h<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">prepare text files for printing<br>e.g. pr \u2013h \u201cGood\u201d myfile.txt<br>(-h: specify a header)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">printenv<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">show the environment variables<br>e.g. printenv<br>(list values of environment variables)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">printf<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">format and print data<br>e.g. printf &#8220;start\\b&#8221;<br>(\\b: backspace output: star)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">printf<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">format and print data<br>e.g. printf &#8216;hello \\n world \\n !&#8217;<br>(\\n: prints by newlines. output 3 lines)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">ps -f<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">show the process status<br>e.g. ps -f<br>(-f full information of current process)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">ps -u<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">show the process status<br>e.g. ps -u ray<br>(-u specify a user\u2019s current process)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">pstree<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">displays process in tree structure<br>e.g. pstree<br>(show all process as a tree)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">pwd<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">print working directory<br>e.g. pwd<br>(display current directory)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">rcp<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">remotely copy file between two hosts<br>e.g. rcp file.txt host2:\/dir2\/file.txt<br>(remotely copy file.txt to host2)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">read<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">read a line from standard input<br>e.g. read name (input ray)<br>echo \u201c$name\u201d (output ray)<\/p>\n\n\n\n\n\n<h3 class=\"wp-block-heading\">reboot*<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">restart the system<br>e.g. reboot<br>(cause the computer to restart)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">renice *<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">change the priority level of a job<br>e.g. renice 3 23001<br>(set priority level as 3 for job 23001)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">restore<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">restores data from the backup file<br>e.g. restore -f databackup<br>(-f:specify a backup file)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">rlogin<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">remotely login to a system<br>e.g. rlogin -l username domain.com<br>(-l: specify a username)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">rm<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">remove one or more files<br>e.g. rm myfile.txt<br>(remove myfile.txt)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">rm -r<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">remove non-empty directory<br>e.g. rm -r \/NonEmptyDir<br>(-r: remove directory and its content)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">rm -i<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">remove non-empty directory or a file<br>e.g. rm -i myfile.txt<br>(-i: ask before removing)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">rmdir<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">remove empty directory<br>e.g. rmdir \/emptydir<br>(delete directory without contents)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">route<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">show or modify the IP routing table<br>e.g. route -n<br>(-n: show in numerical format)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">rsync<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">remotely synchronize files<br>e.g. rsync myfile host2:\/dir2\/myfile<br>(sync. myfile with remote host2)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">scp<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">securely copy files amid two hosts<br>e.g. scp file.txt host2:\/dir2\/file.txt<br>(securely copy file to remote host2)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">screen<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">open the terminal window manager<br>e.g. screen<br>(start a new screen)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">sdiff<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">show two files\u2019 difference side by side<br>e.g. sdiff myfile1.txt myfile2.txt<br>(compare two files side by side)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">sed<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">filter and transform input text<br>e.g. sed \u201c{print $3}\u201d myfile.txt<br>(display the third word of each line)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">seq<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">list sequent numbers in given range<br>e.g. seq 1 8<br>(output: 1 2 3 4 5 6 7 8)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">seq -w<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">list sequent numbers in given range<br>e.g. seq \u2013w 1 3<br>(-w: with zeros output: 01 02 03 )<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">seq<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">list sequent numbers in given range<br>e.g. seq \u2013s| 1 3<br>(-s: with separators output: 1| 2 |3 )<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">set<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">set shell variable or function<br>e.g. set n=<code>who am i<\/code>; echo $n<br>(output: who am i)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">sftp<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">securely transfer files by ftp<br>e.g. sftp SeverURL<br>(securely transfer files to a Server)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">shopt<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">show the shell option settings<br>e.g. shopt<br>(show the shell behavior settings)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">shutdown *<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">close system<br>e.g. shutdown 22:00<br>(shut down at 22:00 o\u2019clock)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">shutdown-h<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">close system<br>e.g. shutdown \u2013h +5<br>(-h+5: halt after 5 minutes)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">shutdown -r<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">shutdown and restart<br>e.g. shutdown -r now<br>(-r:shut down and instantly restart)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">sleep<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">pause for a specified amount of time<br>e.g. sleep 10<br>(pause for 10 seconds)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">sort<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">show sorted contents alphabetically<br>e.g. sort -r myfile.txt<br>(-r sort file in reverse order)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">split -b<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">split a file to some files in given size<br>e.g. split -b 11 file.txt <br>(split file to some 11 byte files named xaa,xab,xac, etc.)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">split -l<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">split a file to some files in given size<br>e.g. split -l 8 file.txt <br>(split file to some 8 line files named xaa,xab,xac, etc.)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">ssh<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">login to remote secure shell<br>e.g. ssh ray@myexample.com<br>(securely connect to a remote host)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">ssh -l<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">login to remote secure shell<br>e.g. ssh -l username hostname<br>(-l specify your remote username)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">stat<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">list status about file size, access, etc.<br>e.g. stat myfile.txt<br>(show myfile.txt statistics)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">su<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">switch user<br>e.g. su user2<br>(switch user named user2)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">su -l<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">login as a root super user<br>e.g. su \u2013l<br>(-l:enter password, login root account )<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">sudo -u<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">execute a command as another user<br>e.g. sudo -u user2 ls \/home\/mydir<br>(-u: specify user2 to execute ls cmd)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">sudo -v<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">refresh the authentication timeout<br>e.g. sudo -v<br>(next sudo will not require password.)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">sudo -k<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">expire the authentication timeout<br>e.g. sudo -k<br>(next sudo will require password.)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">sum<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">summarize a file with a checksum <br>e.g. sum myfile.txt<br>(create a checksum for myfile.txt)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">suspend<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">suspend the working shell<br>e.g. suspend<br>(pause system during execution)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">sync<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">synchronize disk data with memory<br>e.g. sync<br>(flush all file system buffers to disk)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">tac<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">display lines of a file in reverse order<br>e.g. tac myfile.txt<br>(print file from last line to first line)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">tail<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">show the final part of a file<br>e.g. tail -n 20 file.txt<br>(-n20:output last 20 lines of file.txt)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">talk<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">communicate with another user<br>e.g. talk ray<br>(talk to user ray)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">tar -xf<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">extract an archived tar file<br>e.g. tar -xf archive.tar<br>(-xf: extract an archive tar file)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">tar -cf<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">create an archived tar file<br>e.g. tar -cf archive.tar<br>(-cf: create an archive tar file)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">tee<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">print standard output, write to a file<br>e.g. sort file1.txt | tee file2.txt<br>(sort file1.txt and write to file2.txt)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">tee -a<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">print standard output, write to a file<br>e.g. sort file1.txt | tee \u2013a file2.txt<br>(-a: append instead of overwrite)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">test<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">calculate a boolean expression<br>e.g. [ 8 -gt 6 ]; echo $?<br>(output: 0 0:true; 1:false)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">test<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">calculate a boolean expression<br>e.g. [ 5 -eq 6 ]; echo $?<br>(output: 1 0:true; 1:false)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">time<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">show the time taken to run a program<br>e.g. time ftp<br>(display the time taken to execute ftp)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">times<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">show the uptime of sell<br>e.g. times<br>(display the system uptime)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">tload<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">show a graphic report of system load<br>e.g. tload <br>(show the current system load average to a specified process)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">top<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">list the top active or specified process<br>e.g. top -p pid<br>(-p:display specific process by pid)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">touch<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">update timestamp for an existing file<br>e.g. touch myfile.txt<br>(modify myfile.txt to the current time)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">touch -t<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">update timestamp for an existing file<br>e.g. touch \u2013t myfile.txt<br>(-t: specify a time)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">tr<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">translates sets of characters<br>e.g. echo apple | tr \u201capple\u201d \u201cbanana\u201d<br>(output: banana)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">traceroute*<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">trace the route to a host<br>e.g. traceroute xvauhdhxv.com<br>(trace packets route to another host)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">trap<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">run a command on receiving a signal<br>e.g. trap<br>(display the current signal traps)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">tree -p<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">list directory contents in tree format<br>e.g. tree \u2013p<br>(-p: also show the file permissions)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">tty<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">show the name of the terminal device<br>e.g. tty<br>(show the terminal filename)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">type<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">detect the type of a command<br>e.g. type wait<br>(output: wait is a shell builtin)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">ulimit -a<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">limit user resources<br>e.g. ulimit -a<br>(-a:display all limits for the system)<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"644\" height=\"380\" src=\"https:\/\/realjossy.com\/blog\/wp-content\/uploads\/2021\/03\/1-2.png\" alt=\"linux distributions\" class=\"wp-image-7403\" srcset=\"https:\/\/realjossy.com\/blog\/wp-content\/uploads\/2021\/03\/1-2.png 644w, https:\/\/realjossy.com\/blog\/wp-content\/uploads\/2021\/03\/1-2-300x177.png 300w\" sizes=\"auto, (max-width: 644px) 100vw, 644px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">umask<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">show or set the file permission value<br>e.g. umask 0022 <br>(allow user read, write privileges and all others to read)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">umask<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">show or set the file permission value<br>e.g. umask 0002 <br>(allow group read, write privileges and all others to read)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">umask<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">show or set the file permission value<br>e.g. umask 0077 <br>(allow user read, write privileges and no for others)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">umount<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">unmount a device or filesystem<br>e.g. umount \/dev\/dvd<br>( unmount a device DVD )<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">unalias<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">remove an alias<br>e.g. unalias aliasname<br>( delete a specified alias)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">uname -a<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">show the current system information<br>e.g. uname -a<br>( -a: display all information)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">uname -n<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">show the current system information<br>e.g. uname -n<br>( -n: display the host name)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">unexpand<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">convert spaces into tabs<br>e.g. unexpand myfile.txt<br>(convert spaces to tabs for myfile.txt)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">uniq<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">filter out repeated lines in a file<br>e.g. uniq myfile.txt<br>(show unique line in myfile.txt)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">unset<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">remove shell variable or function<br>e.g. unset var<br>(delete a variable)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">unzip<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">uncompress files from zip format<br>e.g. unzip archive.zip<br>(uncompress file from archive.zip)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">uptime<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">show system uptime<br>e.g. uptime<br>(display system uptime)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">useradd *<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">add a new user account<br>e.g. useradd username<br>(create a user account)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">useradd* -d<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">display default value for new users<br>e.g. useradd -d<br>(show default data for a new user)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">userdel *<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">delete an existing user account<br>e.g. userdel username<br>(remove a user account)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">usermod* -d<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">modify home directory<br>e.g. usermod -d \/home\/mydir andy<br>(-d: specify home directory for andy.)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">usermod * -l<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">modify an existing user account<br>e.g. usermod -l oldname newname<br>(-l: login name change)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">usermod * -p<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">modify an existing user account<br>e.g. usermod -p password username<br>(-p:modify password of a user)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">users<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">display current logged-in users<br>e.g. users<br>(list users currently logged in)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">vdir<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">verbosely show directory contents<br>e.g. vdir<br>(vdir just like ls, but more verbose)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">vi<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">open the vi text editor<br>e.g. vi filename<br>(open a file with vi text editor)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">vmstat<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">report virtual memory statistics\u2026<br>e.g. vmstat<br>(also report swap, disk i\/o devices\u2026)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">w<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">list current processes for each users<br>e.g. w username<br>(show the user\u2019s process)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">w -s<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">list current processes by summary<br>e.g. w -s<br>(-s: show a summary of shell process)<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">wait<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">wait for a process to change state<br>e.g. wait 10788<br>(wait for 10788 to change state)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">watch<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">execute a command periodically<br>e.g. watch \u2013n 5 date<br>(-n5:update date every 5 seconds)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">wc<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">show word count, line count, etc<br>e.g. wc myfile.txt<br>(list word, line count\u2026 for myfile.txt)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">wc -c<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">show word count, line count, etc<br>e.g. wc \u2013c myfile.txt<br>(-c: show the byte counts)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">wget<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">download a web page from a website<br>e.g. wget <br>(download webpage from above url)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">wget -c<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">download a web page from a website<br>e.g. wget \u2013c http:\/\/www.examp.com<br>(-c: continue download previous web)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">whatis<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">show manual page of a command<br>e.g. whatis ping<br>(show manual page of ping)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">whereis<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">locate source, man for a command<br>e.g. whereis ls<br>(show source, man locations of ls)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">which<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">show path of a executable command <br>e.g. which ftp<br>(show the full path of ftp command)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">who<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">show who currently logged in<br>e.g. who<br>(list all logged-in users, date, time\u2026)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">who -a<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">list all users currently logged in<br>e.g. who -a<br>(-a: all information)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">whoami<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">show the current user\u2019s login name<br>e.g. whoami<br>(show your own user name)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">whois<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">show domain owner\u2019s information<br>e.g. whois xvqizx.com<br>(list xvqizx.com owner\u2019s information)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">write<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">write a message to another user<br>e.g. write username<br>(then write your message\u2026)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">xargs<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">execute a command with arguments<br>e.g. find -name &#8221; a<em>.<\/em> &#8221; | xargs rm<br>(find files named a<em>.<\/em>, remove them)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">xcalc<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">launch a graphical calculator<br>e.g. xcalc<br>(open a scientific calculator)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">xclock<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">launch graphical clock<br>e.g. xclock -digital<br>(-digital: specify a digital clock)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">yes<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">output a string repeatedly until killed<br>e.g. yes \u201chello\u201d<br>(output hello repeatedly until killed)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">yum<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">rpm-based package manager<br>e.g. yum install update<br>(install a package named &#8220;update&#8221;)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">zcat<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">output compressed text<br>e.g. zcat myfiles.txt.gz | less<br>(uncompress file and show contents)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">zless<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">show un\/compressed file contents<br>e.g. zless myfile.txt.gz<br>(zless: show contents by page)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">zmore<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">show un\/compressed file contents<br>e.g. zmore myfile.txt.gz<br>(zmore: show contents by screen)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">zip<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">compress files to zip format<br>e.g. zip documents *<br>(create documents.zip for all files)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">unzip<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">uncompress files from zip format<br>e.g. unzip myfile.zip<br>(uncompress myfile.zip.)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Here in this article, you will find the important Linux commands you should know in the Linux Operating System What [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":7407,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"default","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"default","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[9],"tags":[],"class_list":["post-7327","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tech"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>290 Linux commands | All Essential Linux Commands in 2021<\/title>\n<meta name=\"description\" content=\"The operating system is what allows the software to talk to the hardware. The essential Linux commands. sudo -u, fsck *, dhclient\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/realjossy.com\/blog\/linux-commands\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"290 Linux commands | All Essential Linux Commands in 2021\" \/>\n<meta property=\"og:description\" content=\"The operating system is what allows the software to talk to the hardware. The essential Linux commands. sudo -u, fsck *, dhclient\" \/>\n<meta property=\"og:url\" content=\"https:\/\/realjossy.com\/blog\/linux-commands\/\" \/>\n<meta property=\"og:site_name\" content=\"Realjossy\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/facebook.com\/officialrealjossy\" \/>\n<meta property=\"article:published_time\" content=\"2021-03-21T13:30:25+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-09-27T19:23:55+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/realjossy.com\/blog\/wp-content\/uploads\/2021\/03\/linux-commands-231119-e1616333200487.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1096\" \/>\n\t<meta property=\"og:image:height\" content=\"525\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"RealJossy Technology\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@realjossyblog\" \/>\n<meta name=\"twitter:site\" content=\"@realjossyblog\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"RealJossy Technology\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"29 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/realjossy.com\\\/blog\\\/linux-commands\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/realjossy.com\\\/blog\\\/linux-commands\\\/\"},\"author\":{\"name\":\"RealJossy Technology\",\"@id\":\"https:\\\/\\\/realjossy.com\\\/blog\\\/#\\\/schema\\\/person\\\/b8ae58353c5927f845e99b658ea53ec7\"},\"headline\":\"Linux Commands\",\"datePublished\":\"2021-03-21T13:30:25+00:00\",\"dateModified\":\"2023-09-27T19:23:55+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/realjossy.com\\\/blog\\\/linux-commands\\\/\"},\"wordCount\":6191,\"commentCount\":1,\"publisher\":{\"@id\":\"https:\\\/\\\/realjossy.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/realjossy.com\\\/blog\\\/linux-commands\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/realjossy.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/03\\\/linux-commands-231119-e1616333200487.png\",\"articleSection\":[\"Tech\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/realjossy.com\\\/blog\\\/linux-commands\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/realjossy.com\\\/blog\\\/linux-commands\\\/\",\"url\":\"https:\\\/\\\/realjossy.com\\\/blog\\\/linux-commands\\\/\",\"name\":\"290 Linux commands | All Essential Linux Commands in 2021\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/realjossy.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/realjossy.com\\\/blog\\\/linux-commands\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/realjossy.com\\\/blog\\\/linux-commands\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/realjossy.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/03\\\/linux-commands-231119-e1616333200487.png\",\"datePublished\":\"2021-03-21T13:30:25+00:00\",\"dateModified\":\"2023-09-27T19:23:55+00:00\",\"description\":\"The operating system is what allows the software to talk to the hardware. The essential Linux commands. sudo -u, fsck *, dhclient\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/realjossy.com\\\/blog\\\/linux-commands\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/realjossy.com\\\/blog\\\/linux-commands\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/realjossy.com\\\/blog\\\/linux-commands\\\/#primaryimage\",\"url\":\"https:\\\/\\\/realjossy.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/03\\\/linux-commands-231119-e1616333200487.png\",\"contentUrl\":\"https:\\\/\\\/realjossy.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/03\\\/linux-commands-231119-e1616333200487.png\",\"width\":1096,\"height\":525,\"caption\":\"linux commands\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/realjossy.com\\\/blog\\\/linux-commands\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/realjossy.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Linux Commands\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/realjossy.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/realjossy.com\\\/blog\\\/\",\"name\":\"Realjossy\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/realjossy.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/realjossy.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/realjossy.com\\\/blog\\\/#organization\",\"name\":\"Realjossy\",\"url\":\"https:\\\/\\\/realjossy.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/realjossy.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/realjossy.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/04\\\/realjossy-logo1.png\",\"contentUrl\":\"https:\\\/\\\/realjossy.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/04\\\/realjossy-logo1.png\",\"width\":564,\"height\":565,\"caption\":\"Realjossy\"},\"image\":{\"@id\":\"https:\\\/\\\/realjossy.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/facebook.com\\\/officialrealjossy\",\"https:\\\/\\\/x.com\\\/realjossyblog\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/realjossy.com\\\/blog\\\/#\\\/schema\\\/person\\\/b8ae58353c5927f845e99b658ea53ec7\",\"name\":\"RealJossy Technology\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/212b4fb3958b52c8b6fcb1ffda170b756f3233ff48ab5e05b86f5af87720e22e?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/212b4fb3958b52c8b6fcb1ffda170b756f3233ff48ab5e05b86f5af87720e22e?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/212b4fb3958b52c8b6fcb1ffda170b756f3233ff48ab5e05b86f5af87720e22e?s=96&d=mm&r=g\",\"caption\":\"RealJossy Technology\"},\"sameAs\":[\"https:\\\/\\\/realjossy.com\\\/blog\"],\"url\":\"https:\\\/\\\/realjossy.com\\\/blog\\\/author\\\/realjossy\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"290 Linux commands | All Essential Linux Commands in 2021","description":"The operating system is what allows the software to talk to the hardware. The essential Linux commands. sudo -u, fsck *, dhclient","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/realjossy.com\/blog\/linux-commands\/","og_locale":"en_US","og_type":"article","og_title":"290 Linux commands | All Essential Linux Commands in 2021","og_description":"The operating system is what allows the software to talk to the hardware. The essential Linux commands. sudo -u, fsck *, dhclient","og_url":"https:\/\/realjossy.com\/blog\/linux-commands\/","og_site_name":"Realjossy","article_publisher":"https:\/\/facebook.com\/officialrealjossy","article_published_time":"2021-03-21T13:30:25+00:00","article_modified_time":"2023-09-27T19:23:55+00:00","og_image":[{"width":1096,"height":525,"url":"https:\/\/realjossy.com\/blog\/wp-content\/uploads\/2021\/03\/linux-commands-231119-e1616333200487.png","type":"image\/png"}],"author":"RealJossy Technology","twitter_card":"summary_large_image","twitter_creator":"@realjossyblog","twitter_site":"@realjossyblog","twitter_misc":{"Written by":"RealJossy Technology","Est. reading time":"29 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/realjossy.com\/blog\/linux-commands\/#article","isPartOf":{"@id":"https:\/\/realjossy.com\/blog\/linux-commands\/"},"author":{"name":"RealJossy Technology","@id":"https:\/\/realjossy.com\/blog\/#\/schema\/person\/b8ae58353c5927f845e99b658ea53ec7"},"headline":"Linux Commands","datePublished":"2021-03-21T13:30:25+00:00","dateModified":"2023-09-27T19:23:55+00:00","mainEntityOfPage":{"@id":"https:\/\/realjossy.com\/blog\/linux-commands\/"},"wordCount":6191,"commentCount":1,"publisher":{"@id":"https:\/\/realjossy.com\/blog\/#organization"},"image":{"@id":"https:\/\/realjossy.com\/blog\/linux-commands\/#primaryimage"},"thumbnailUrl":"https:\/\/realjossy.com\/blog\/wp-content\/uploads\/2021\/03\/linux-commands-231119-e1616333200487.png","articleSection":["Tech"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/realjossy.com\/blog\/linux-commands\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/realjossy.com\/blog\/linux-commands\/","url":"https:\/\/realjossy.com\/blog\/linux-commands\/","name":"290 Linux commands | All Essential Linux Commands in 2021","isPartOf":{"@id":"https:\/\/realjossy.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/realjossy.com\/blog\/linux-commands\/#primaryimage"},"image":{"@id":"https:\/\/realjossy.com\/blog\/linux-commands\/#primaryimage"},"thumbnailUrl":"https:\/\/realjossy.com\/blog\/wp-content\/uploads\/2021\/03\/linux-commands-231119-e1616333200487.png","datePublished":"2021-03-21T13:30:25+00:00","dateModified":"2023-09-27T19:23:55+00:00","description":"The operating system is what allows the software to talk to the hardware. The essential Linux commands. sudo -u, fsck *, dhclient","breadcrumb":{"@id":"https:\/\/realjossy.com\/blog\/linux-commands\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/realjossy.com\/blog\/linux-commands\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/realjossy.com\/blog\/linux-commands\/#primaryimage","url":"https:\/\/realjossy.com\/blog\/wp-content\/uploads\/2021\/03\/linux-commands-231119-e1616333200487.png","contentUrl":"https:\/\/realjossy.com\/blog\/wp-content\/uploads\/2021\/03\/linux-commands-231119-e1616333200487.png","width":1096,"height":525,"caption":"linux commands"},{"@type":"BreadcrumbList","@id":"https:\/\/realjossy.com\/blog\/linux-commands\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/realjossy.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Linux Commands"}]},{"@type":"WebSite","@id":"https:\/\/realjossy.com\/blog\/#website","url":"https:\/\/realjossy.com\/blog\/","name":"Realjossy","description":"","publisher":{"@id":"https:\/\/realjossy.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/realjossy.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/realjossy.com\/blog\/#organization","name":"Realjossy","url":"https:\/\/realjossy.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/realjossy.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/realjossy.com\/blog\/wp-content\/uploads\/2022\/04\/realjossy-logo1.png","contentUrl":"https:\/\/realjossy.com\/blog\/wp-content\/uploads\/2022\/04\/realjossy-logo1.png","width":564,"height":565,"caption":"Realjossy"},"image":{"@id":"https:\/\/realjossy.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/facebook.com\/officialrealjossy","https:\/\/x.com\/realjossyblog"]},{"@type":"Person","@id":"https:\/\/realjossy.com\/blog\/#\/schema\/person\/b8ae58353c5927f845e99b658ea53ec7","name":"RealJossy Technology","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/212b4fb3958b52c8b6fcb1ffda170b756f3233ff48ab5e05b86f5af87720e22e?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/212b4fb3958b52c8b6fcb1ffda170b756f3233ff48ab5e05b86f5af87720e22e?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/212b4fb3958b52c8b6fcb1ffda170b756f3233ff48ab5e05b86f5af87720e22e?s=96&d=mm&r=g","caption":"RealJossy Technology"},"sameAs":["https:\/\/realjossy.com\/blog"],"url":"https:\/\/realjossy.com\/blog\/author\/realjossy\/"}]}},"jetpack-related-posts":[],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"https:\/\/realjossy.com\/blog\/wp-content\/uploads\/2021\/03\/linux-commands-231119-e1616333200487.png","_links":{"self":[{"href":"https:\/\/realjossy.com\/blog\/wp-json\/wp\/v2\/posts\/7327","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/realjossy.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/realjossy.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/realjossy.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/realjossy.com\/blog\/wp-json\/wp\/v2\/comments?post=7327"}],"version-history":[{"count":10,"href":"https:\/\/realjossy.com\/blog\/wp-json\/wp\/v2\/posts\/7327\/revisions"}],"predecessor-version":[{"id":11565,"href":"https:\/\/realjossy.com\/blog\/wp-json\/wp\/v2\/posts\/7327\/revisions\/11565"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/realjossy.com\/blog\/wp-json\/wp\/v2\/media\/7407"}],"wp:attachment":[{"href":"https:\/\/realjossy.com\/blog\/wp-json\/wp\/v2\/media?parent=7327"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/realjossy.com\/blog\/wp-json\/wp\/v2\/categories?post=7327"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/realjossy.com\/blog\/wp-json\/wp\/v2\/tags?post=7327"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}