

{"id":656,"date":"2016-07-26T05:52:43","date_gmt":"2016-07-26T05:52:43","guid":{"rendered":"http:\/\/data-flair.training\/blogs\/?p=656"},"modified":"2018-09-20T11:35:56","modified_gmt":"2018-09-20T06:05:56","slug":"basic-linux-commands","status":"publish","type":"post","link":"https:\/\/data-flair.training\/blogs\/basic-linux-commands\/","title":{"rendered":"34 Basic Linux Commands with Syntax Part-II"},"content":{"rendered":"<div class='__iawmlf-post-loop-links' style='display:none;' data-iawmlf-post-links='[{&quot;id&quot;:2465,&quot;href&quot;:&quot;http:\\\/\\\/code.wikia.com\\\/wiki\\\/Linux_commands&quot;,&quot;archived_href&quot;:&quot;http:\\\/\\\/web-wp.archive.org\\\/web\\\/20140330214101\\\/http:\\\/\\\/code.wikia.com:80\\\/wiki\\\/Linux_commands?&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[{&quot;date&quot;:&quot;2025-12-11 06:45:42&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2025-12-15 06:12:09&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2025-12-30 20:23:17&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-01-04 02:18:58&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-01-10 11:10:26&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-01-19 23:51:39&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-01-29 16:13:36&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-06 10:48:39&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-25 15:35:43&quot;,&quot;http_code&quot;:503},{&quot;date&quot;:&quot;2026-03-03 22:05:33&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-03-28 07:09:48&quot;,&quot;http_code&quot;:503},{&quot;date&quot;:&quot;2026-04-02 13:11:13&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-04-06 18:05:18&quot;,&quot;http_code&quot;:503},{&quot;date&quot;:&quot;2026-04-20 01:29:37&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-04-30 01:34:19&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-05-20 09:40:45&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-05-29 07:34:28&quot;,&quot;http_code&quot;:403}],&quot;broken&quot;:true,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-05-29 07:34:28&quot;,&quot;http_code&quot;:403},&quot;process&quot;:&quot;done&quot;}]'><\/div>\n<h2>1. Basic Linux Commands<\/h2>\n<p>This is the basic Linux commands tutorial tutorial, contain Linus commands lists, which are useful for beginners while getting familiar with Linux.<\/p>\n<p>So, let&#8217;s start Basic Linux Commands Tutorial.<\/p>\n<div id=\"attachment_35199\" style=\"width: 1212px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Linux-Commands.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-35199\" class=\"wp-image-35199 size-full\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Linux-Commands.jpg\" alt=\"34 Basic Linux Commands with Syntax Part-II\" width=\"1202\" height=\"630\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Linux-Commands.jpg 1202w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Linux-Commands-150x79.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Linux-Commands-300x157.jpg 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Linux-Commands-768x403.jpg 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Linux-Commands-1024x537.jpg 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Linux-Commands-520x273.jpg 520w\" sizes=\"auto, (max-width: 1202px) 100vw, 1202px\" \/><\/a><p id=\"caption-attachment-35199\" class=\"wp-caption-text\">34 Basic Linux Commands with Syntax Part-II<\/p><\/div>\n<h2>2. Basic Linux Commands List<\/h2>\n<p>Top 34\u00a0 basic Linux commands are given below In this section of Important Linux Commands Tutorial along with their usage-<\/p>\n<h3>2.1. gzip<\/h3>\n<p><strong>a. Usage:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">$ gzip filename<\/pre>\n<p>It compresses content of files, gives extension of .gz and needs to be uncompressed before use.<\/p>\n<h3>2.2. touch<\/h3>\n<p><strong>a. Usage:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">$ touch filename<\/pre>\n<p>It creates new empty file. It is another way to create a file. It is also used to change date and time of most recent access and modification.<\/p>\n<h3>2.3. locate<\/h3>\n<p><strong>Usage:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">$ locate filename<\/pre>\n<p>It is used to search find files by its name. It searches extremely fast, runs in background to trace the location of files. locate command is fast because it runs in background process in a system. It searches the file and stores them in a database.<\/p>\n<h3>2.4. echo<\/h3>\n<p><strong>Usage:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">$ echo String<\/pre>\n<p>It writes arguments to the standard output or display line of text. It is mostly used in batch and scripts. It plays an important role in building shell script.<\/p>\n<h3>2.5. grep<\/h3>\n<p><strong>a. Usage:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">$ grep \u201cString\u201d filename<\/pre>\n<p>It mainly searches the text or searches the file for lines containing a match to the given strings or words. It searches the mention string in given file.<\/p>\n<p><strong>b. Usage:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">$ grep \"String\" filename1 filename2<\/pre>\n<p>It searches the mentioned String in multiple files mentioned.<\/p>\n<h3>2.6. clear<\/h3>\n<p><strong>Usage:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">$ clear<\/pre>\n<p>It clears the screen which is equivalent to ctrl+L while using keyboard. It looks in the environment for terminal type and then in the terminal database to figure out how to clear the screen.<\/p>\n<h3>2.7. logout<\/h3>\n<p><strong>Usage:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">$ logout<\/pre>\n<p>To exit a login shell or to get out from current session. It can be used by any normal user to end their session.<\/p>\n<h3>2.8. exit<\/h3>\n<p><strong>Usage:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">$ exit<\/pre>\n<p>To exit a shell like log out. It will remind that some jobs are running in background and again writing exit will terminate them and finally it will close the shell.<\/p>\n<h3>2.9. wc<\/h3>\n<p><strong>a. Usage:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">$ wc [options] filename<\/pre>\n<p>Prints the number of newlines, word, bytes in a file. It is used to find out the number of newline count, word count, byte and characters count in files.<\/p>\n<p><strong>b. Usage:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">$ wc -l filename<\/pre>\n<p>Prints the number of lines in a file.<br \/>\n<strong>c. Usage:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">$ wc -w filename<\/pre>\n<p>Prints the number of words in a file.<\/p>\n<p><strong>d. Usage:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">$ wc -c filename<\/pre>\n<p>Display the count of bytes of file.<\/p>\n<h3>2.10. sort<\/h3>\n<p><strong>a. Usage:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">$ sort filename<\/pre>\n<p>Simply sorts the file in alphabetical order. It is used for printing lines of input text files and concatenation of all files in sorted order. It takes blank space like field separator .entire input file like sort key. It is important to know that sort command don\u2019t actually sort the files but only print the sorted output.<\/p>\n<p><strong>b. Usage:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">$ sort -u filename<\/pre>\n<p>-u removes duplicate records in a file and only first record is retained.<\/p>\n<p><strong>c. Usage:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">$ sort -n file<\/pre>\n<p>It sorts a file numerically.<\/p>\n<h3>2.11. kill<\/h3>\n<p><strong>Usage:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">$ kill<\/pre>\n<p>It stops a process. It kills or terminates a process without logging out or restarting the system. It sends signal to each process specified by process identifier.<\/p>\n<h3>2.12. ps<\/h3>\n<p><strong>a. Usage:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">$ ps<\/pre>\n<p>It will display current running process in\u00a0system. It is also used for view process running on system. It provides an information of current process with detailed information like CPU usage, user id, command name and memory usage.<\/p>\n<p><strong>b. Usage:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">$ ps -ax<\/pre>\n<p>It shows all current running process.<\/p>\n<h3>2.13. uptime<\/h3>\n<p><strong>Usage:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">$ uptime<\/pre>\n<p>It shows how long system has been running. It will show current time of system, how many users are currently active and system load average<\/p>\n<h3>2.14. sleep<\/h3>\n<p><strong>a. Usage:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">$ sleep number [suffix]<\/pre>\n<p>Delay or pause for specified amount of time. It actually causes the system with given amount of time. It suspends the system for mentioned duration then turns on or resume after the duration gets over.<\/p>\n<p><strong>b. Usage:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">$ sleep (n)<\/pre>\n<p>Sleeps for (n) seconds.<\/p>\n<p><strong>c. Usage:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">$ sleep (nm)<\/pre>\n<p>Sleeps for (n) minutes.<\/p>\n<p><strong>d. Usage:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">$ sleep (nh)<\/pre>\n<p>Sleeps for (n) hours.<\/p>\n<p><strong>e. Usage:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">$ sleep (nd)<\/pre>\n<p>Sleeps for (n) days.<\/p>\n<h3>2.15. seq<\/h3>\n<p><strong>a. Usage:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">$ seq n<\/pre>\n<p>Prints number starting from 1 to n. It prints the numbers from first to last with an increment. By default, first and increment are both 1, and each number is printed on its own line. All numbers can be real, not just integers.<\/p>\n<p><strong>b. Usage:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">$ seq n1 n2<\/pre>\n<p>Prints number starting from n1 to n2.<\/p>\n<h3>2.16. cut<\/h3>\n<p><strong>a. Usage:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">$ cut c(n) filename<\/pre>\n<p>Print characters in a line by specifying the position of the characters.<\/p>\n<p><strong>b. Usage:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">$ cut -c(n), (n) file.txt<\/pre>\n<p>To print more than one character at a time by specifying the character positions in a comma separated list.<\/p>\n<h3>2.17. paste<\/h3>\n<p><strong>a. Usage:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">$ paste filename<\/pre>\n<p>Print the content of file. The paste command merges the lines from multiple files.This is a useful tool for merging a single file and also set of files. The paste command sequentially writes the corresponding lines from each file separated by a delimiter on terminal.<\/p>\n<p><strong>b. Usage:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">$ paste filename1 filename2<\/pre>\n<p>Prints the content of file1 and file2 side by side.<\/p>\n<h3>2.18. cal<\/h3>\n<p><strong>Usage:<\/strong><\/p>\n<p>$ cal<\/p>\n<p>Displays a calendar. cal displays a simple calendar. If no arguments are mentioned, the current month is displayed on screen.<\/p>\n<h3>2.19. uniq<\/h3>\n<p><strong>a. Usage:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">$ unique filename<\/pre>\n<p>It removes duplicate lines in a file and display unique contents. uniq reports or filters out repeated lines in a mentioned file. It suppress the duplicate lines from a file. It discards all the successive similar lines except one from the input and writes the output.<\/p>\n<p><strong>b. Usage:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">$ uniq -c filename<\/pre>\n<p>It counts occurrence of lines in a file.<\/p>\n<p><strong>c. Usage:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">$ uniq -dfilename<\/pre>\n<p>It prints only duplicate repeated lines.<\/p>\n<h3>2.20. du<\/h3>\n<p><strong>a. Usage:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">$ du<\/pre>\n<p>Display and estimate disk usage in current directory. It is used to show Linux directory size or to know how large subdirectories are, including all the files and subdirectories it contains.<\/p>\n<p><strong>b. Usage:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">$ du -a<\/pre>\n<p>Display and estimate disk usage of all file in current directory.<\/p>\n<p><strong>c. Usage:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">$ du -h<\/pre>\n<p>Display result in human readable format like in kilobytes, megabytes.<\/p>\n<h3>2.21. find<\/h3>\n<p><strong>a. Usage:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">$ find<\/pre>\n<p>List files in current and subdirectories. It is a very useful and easy handy command to search for files from the command line. It can be used to find files based on various search conditions like permissions, user ownership, modification date\/time, size etc.<\/p>\n<p><strong>b. Usage:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">$ find .\/directory name<\/pre>\n<p>Searches all the files in mentioned directory.<\/p>\n<h3>2.22. diff<\/h3>\n<p><strong>a. Usage:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">$ diff filename 1 filename2<\/pre>\n<p>It displays the difference between two files, best way to find discrepancies b\/w files which feels like they are same. It analyzes two files and prints the lines that are different. It gives output as a set of instructions for how to change one file in order to make it identical to the second file.<\/p>\n<h3>2.23. join<\/h3>\n<p><strong>Usage:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">$ join filename1 filename2<\/pre>\n<p>Join two files based on matching or common field of data. Those who know SQL Join it is similar to like that. It combines two files based on the matching content lines found in each file. Using this Linux command is quite easy and if used currently and in the right situation it can save lots of time and effort.<\/p>\n<h3>2.24. split<\/h3>\n<p><strong>a. Usage:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">$ split -l filename<\/pre>\n<p>Split the file based on the number of lines and then makes a new file of partitioned content where file name will always start with x. It is used to split a file into two or more smaller files; default behaviour of split is to generate output files of a fixed size, default 1000 lines.<\/p>\n<p><strong>b. Usage:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">$ split -b filename<\/pre>\n<p>Specify the number of bytes that each partitioned file should contains.<\/p>\n<h3>2.25. hostname<\/h3>\n<p><strong>Usage:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">$ hostname<\/pre>\n<p>Prints the hostname, like computer name. It is used to display the system&#8217;s Domain Name System or Service or Server name, and to display or set its hostname or Network Information Services domain name.<\/p>\n<h3>2.26. rev<\/h3>\n<p><strong>Usage:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">$ rev String<\/pre>\n<p>It reverses the given string. It reverses the order of characters in every line; it copies the specified files to the standard output, reversing the order of each character in every line. If no files are mentioned, the standard input is read.<\/p>\n<h3>2.27. tar<\/h3>\n<p><strong>Usage:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">$ tar -czvf archivename.tar.gz \/path\/to\/directory or file<\/pre>\n<p>a.Compress an entire directory or a Single File where :<\/p>\n<p>c: Creates an archive.<\/p>\n<p>-z: Compresses the archive with gzip.<\/p>\n<p>-v: Display progress in the terminal while creating the archive. v is always optional in these Linux commands.<\/p>\n<p>f: Allows you to specify the filename of the archive.<\/p>\n<p><strong>b. Usage:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">$ tar -xzvf archive.tar.gz<\/pre>\n<p>To extract an archive,where:<\/p>\n<p>x \u2013 extract files from archive.<\/p>\n<h3>2.28. sudo apt \u2013get install<\/h3>\n<p><strong>a: Usage:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">$ sudo apt-get install<\/pre>\n<p>apt-get is the command-line tool for working with APT software packages which will install one or more packages desired for installation.<\/p>\n<p><strong>b. Usage:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">$ sudo apt-get update<\/pre>\n<p>It will download the package list from the repositories, updates them to get information on the newest versions of packages and their dependencies.<\/p>\n<p><strong>c. Usage:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">$ sudo apt-get upgrade<\/pre>\n<p>It is used to upgrade all the currently installed software packages on the system.<\/p>\n<h3>2.29. which<\/h3>\n<p><strong>Usage:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">$ which filename<\/pre>\n<p>It shows path of Linux command in your path. It takes one or more arguments where for each of its arguments it prints the full path of the executable. It returns the pathname of the files or link which would be executed in the current environment.<\/p>\n<h3>2.30. version<\/h3>\n<p><strong>Usage:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">$ filename -version<\/pre>\n<p>This Linux command is used to print out version information about OpenSSL (Secure Sockets Layer)or prints OpenSSL version information.<\/p>\n<h3>2.31. top<\/h3>\n<p><strong>Usage:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">$ top<\/pre>\n<p>It displays top CPU process. It provides a current progress look at processor activity in real time. It can sort the tasks by CPU usage, memory usage and runtime. It displays a listing of the most CPU-intensive tasks on the system, and provides an interactive interface for manipulating processes.<\/p>\n<h3>2.32. who<\/h3>\n<p><strong>Usage:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">$ who<\/pre>\n<p>Display who logged on along with time for current session. It is used to print information about users who are currently active in. It can only see a real user who logged in. It won\u2019t see a user who is online with su command (switch user).<\/p>\n<h3>2.33. tail<\/h3>\n<p><strong>a. Usage:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">$ tail filename<\/pre>\n<p>It displays last 10 lines of mentioned file. It is used to print the last N lines from the file on the terminal. It used with log files to read the last few lines to know about the error messages.<\/p>\n<p><strong>b. Usage:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">$ tail filename -n 1000<\/pre>\n<p>It outputs the last 100 lines of the filename.<\/p>\n<h3>2.34. head<\/h3>\n<p><strong>a. Usage:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">$ head filename<\/pre>\n<p>Prints first 10 numbers of lines from the mentioned file.<\/p>\n<p><strong>b.Usage:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">head -n myfile.txt<\/pre>\n<p>Display the first n lines of mentioned file. If more than one file is mentioned, head will show the first ten lines of each file individually.<\/p>\n<p>So, this was all about Basic Linux Commands. Hope you like our explanation.<\/p>\n<p>Furthermore, if you have any query, feel free to ask in the comment box.<\/p>\n<div class=\"s\">\n<div class=\"f hJND5c TbwUpd\"><a href=\"http:\/\/code.wikia.com\/wiki\/Linux_commands\"><i>Reference<\/i><\/a><\/div>\n<\/div>\n<div class=\"bm_seoquake seoquake-params-panel seoquake-serp-parameters\">\n<div class=\"bm_seoquake sqsrpp-container sqsrpp-container__connect\"><\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>1. Basic Linux Commands This is the basic Linux commands tutorial tutorial, contain Linus commands lists, which are useful for beginners while getting familiar with Linux. So, let&#8217;s start Basic Linux Commands Tutorial. 2.&#46;&#46;&#46;<\/p>\n","protected":false},"author":5,"featured_media":35199,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[35],"tags":[2695,8155,8304,15128,15221],"class_list":["post-656","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","tag-common-linux-commands","tag-learn-linux-commands","tag-linux-commands","tag-ubuntu-commands","tag-useful-linux-commands"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>34 Basic Linux Commands with Syntax Part-II - DataFlair<\/title>\n<meta name=\"description\" content=\"Basic Linux commands tutorial with Synatx &amp; examples - gzip, touch, locate, echo, grep, clear, logout, exit,wc,sort,kill,ps,uptile,sleep,seq,cut,phase,cal\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/data-flair.training\/blogs\/basic-linux-commands\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"34 Basic Linux Commands with Syntax Part-II - DataFlair\" \/>\n<meta property=\"og:description\" content=\"Basic Linux commands tutorial with Synatx &amp; examples - gzip, touch, locate, echo, grep, clear, logout, exit,wc,sort,kill,ps,uptile,sleep,seq,cut,phase,cal\" \/>\n<meta property=\"og:url\" content=\"https:\/\/data-flair.training\/blogs\/basic-linux-commands\/\" \/>\n<meta property=\"og:site_name\" content=\"DataFlair\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/DataFlairWS\/\" \/>\n<meta property=\"article:published_time\" content=\"2016-07-26T05:52:43+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2018-09-20T06:05:56+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Linux-Commands.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1202\" \/>\n\t<meta property=\"og:image:height\" content=\"630\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"DataFlair Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:site\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"DataFlair Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"9 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"34 Basic Linux Commands with Syntax Part-II - DataFlair","description":"Basic Linux commands tutorial with Synatx & examples - gzip, touch, locate, echo, grep, clear, logout, exit,wc,sort,kill,ps,uptile,sleep,seq,cut,phase,cal","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:\/\/data-flair.training\/blogs\/basic-linux-commands\/","og_locale":"en_US","og_type":"article","og_title":"34 Basic Linux Commands with Syntax Part-II - DataFlair","og_description":"Basic Linux commands tutorial with Synatx & examples - gzip, touch, locate, echo, grep, clear, logout, exit,wc,sort,kill,ps,uptile,sleep,seq,cut,phase,cal","og_url":"https:\/\/data-flair.training\/blogs\/basic-linux-commands\/","og_site_name":"DataFlair","article_publisher":"https:\/\/www.facebook.com\/DataFlairWS\/","article_published_time":"2016-07-26T05:52:43+00:00","article_modified_time":"2018-09-20T06:05:56+00:00","og_image":[{"width":1202,"height":630,"url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Linux-Commands.jpg","type":"image\/jpeg"}],"author":"DataFlair Team","twitter_card":"summary_large_image","twitter_creator":"@DataFlairWS","twitter_site":"@DataFlairWS","twitter_misc":{"Written by":"DataFlair Team","Est. reading time":"9 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/data-flair.training\/blogs\/basic-linux-commands\/#article","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/basic-linux-commands\/"},"author":{"name":"DataFlair Team","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/7f83c342f5d1632d6f7b4b0b0f447823"},"headline":"34 Basic Linux Commands with Syntax Part-II","datePublished":"2016-07-26T05:52:43+00:00","dateModified":"2018-09-20T06:05:56+00:00","mainEntityOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/basic-linux-commands\/"},"wordCount":1700,"commentCount":2,"publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/basic-linux-commands\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Linux-Commands.jpg","keywords":["common linux commands","learn linux commands","linux commands","ubuntu commands","useful linux commands"],"articleSection":["Linux Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/data-flair.training\/blogs\/basic-linux-commands\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/data-flair.training\/blogs\/basic-linux-commands\/","url":"https:\/\/data-flair.training\/blogs\/basic-linux-commands\/","name":"34 Basic Linux Commands with Syntax Part-II - DataFlair","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/basic-linux-commands\/#primaryimage"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/basic-linux-commands\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Linux-Commands.jpg","datePublished":"2016-07-26T05:52:43+00:00","dateModified":"2018-09-20T06:05:56+00:00","description":"Basic Linux commands tutorial with Synatx & examples - gzip, touch, locate, echo, grep, clear, logout, exit,wc,sort,kill,ps,uptile,sleep,seq,cut,phase,cal","breadcrumb":{"@id":"https:\/\/data-flair.training\/blogs\/basic-linux-commands\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/data-flair.training\/blogs\/basic-linux-commands\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/basic-linux-commands\/#primaryimage","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Linux-Commands.jpg","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Linux-Commands.jpg","width":1202,"height":630,"caption":"34 Basic Linux Commands with Syntax Part-II"},{"@type":"BreadcrumbList","@id":"https:\/\/data-flair.training\/blogs\/basic-linux-commands\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog Home","item":"https:\/\/data-flair.training\/blogs\/"},{"@type":"ListItem","position":2,"name":"Linux Tutorials","item":"https:\/\/data-flair.training\/blogs\/category\/linux\/"},{"@type":"ListItem","position":3,"name":"34 Basic Linux Commands with Syntax Part-II"}]},{"@type":"WebSite","@id":"https:\/\/data-flair.training\/blogs\/#website","url":"https:\/\/data-flair.training\/blogs\/","name":"DataFlair","description":"Learn Today. Lead Tomorrow.","publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/data-flair.training\/blogs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/data-flair.training\/blogs\/#organization","name":"DataFlair","url":"https:\/\/data-flair.training\/blogs\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","width":106,"height":48,"caption":"DataFlair"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/DataFlairWS\/","https:\/\/x.com\/DataFlairWS","https:\/\/www.linkedin.com\/company\/dataflair-web-services-pvt-ltd\/","https:\/\/www.youtube.com\/user\/DataFlairWS"]},{"@type":"Person","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/7f83c342f5d1632d6f7b4b0b0f447823","name":"DataFlair Team","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/4cf3a74600d131330b8c481d519afd1574093ed89f6d3396a95393ad223eb7cd?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/4cf3a74600d131330b8c481d519afd1574093ed89f6d3396a95393ad223eb7cd?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/4cf3a74600d131330b8c481d519afd1574093ed89f6d3396a95393ad223eb7cd?s=96&d=mm&r=g","caption":"DataFlair Team"},"description":"DataFlair Team creates expert-level guides on programming, Java, Python, C++, DSA, AI, ML, data Science, Android, Flutter, MERN, Web Development, and technology. Our goal is to empower learners with easy-to-understand content. Explore our resources for career growth and practical learning.","url":"https:\/\/data-flair.training\/blogs\/author\/dfteam1\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/656","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/comments?post=656"}],"version-history":[{"count":4,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/656\/revisions"}],"predecessor-version":[{"id":35212,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/656\/revisions\/35212"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media\/35199"}],"wp:attachment":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media?parent=656"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/categories?post=656"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/tags?post=656"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}