{"id":2207,"date":"2016-12-07T17:15:16","date_gmt":"2016-12-07T15:15:16","guid":{"rendered":"http:\/\/www.systemcodegeeks.com\/?p=2207"},"modified":"2016-12-07T11:04:29","modified_gmt":"2016-12-07T09:04:29","slug":"linux-commands-examples","status":"publish","type":"post","link":"https:\/\/www.systemcodegeeks.com\/linux\/linux-commands-examples\/","title":{"rendered":"Linux Commands With Examples"},"content":{"rendered":"<p>Regardless the experience, every Linux user must has, at least, a basic knowledge about the terminal and its usage. This tutorial will explain and show with examples the most used and important commands, after a brief explanation of how the commands work.<\/p>\n<p>For this tutorial, Linux Mint 18 has been used.<\/p>\n<div class=\"tinymce-table-of-contents toc\">\n<h3>Table Of Contents<\/h3>\n<dl>\n<dt><a href=\"#section_1\">1. What are the commands? Where do they come from?<\/a><\/dt>\n<dd>\n<dl>\n<dt><a href=\"#section_1_1\">1.1. What happens if we have different commands in different places?<\/a><\/dt>\n<dt><a href=\"#section_1_2\">1.2. Knowing what we are executing<\/a><\/dt>\n<dt><a href=\"#section_1_3\">1.3. Looking for executables in the path<\/a><\/dt>\n<\/dl>\n<\/dd>\n<dt><a href=\"#section_2\">2. Most important Linux commands<\/a><\/dt>\n<dd>\n<dl>\n<dt><a href=\"#section_2_1\">2.1. User management<\/a><\/dt>\n<dt><a href=\"#section_2_2\">2.2. Permissions<\/a><\/dt>\n<dt><a href=\"#section_2_3\">2.3. Networking<\/a><\/dt>\n<dt><a href=\"#section_2_4\">2.4. Navigation and file management<\/a><\/dt>\n<dt><a href=\"#section_2_5\">2.5. Finding things<\/a><\/dt>\n<\/dl>\n<\/dd>\n<\/dl>\n<p><a href=\"#section_3\">3. Summary<\/a><\/p>\n<\/div>\n<h2 id=\"section_1\">1. What are the commands? Where do they come from?<\/h2>\n<p>The concept of the commands is very easy: <strong>there are just binaries (we will also see that, actually, they can also be scripts) that are placed in a directory where the terminal knows it has to look when we execute something<\/strong>. This is not only applicable for Linux but for other operating systems, such us Windows, without going further.<\/p>\n<p>So, the next question is: how does our system know where to look? This is achieved thanks to an <strong>environmental variable<\/strong> named <code>PATH<\/code>. This environments stores the locations where the terminal should look when we type a command, as explained above.<\/p>\n<p>We can see what&#8217;s stored in our path executing the following command:<\/p>\n<pre class=\"brush:bash\">echo $PATH<\/pre>\n<p>For, in my case, the output is:<\/p>\n<pre class=\"brush:bash\">\/usr\/local\/sbin \/usr\/local\/bin \/usr\/sbin \/usr\/bin \/sbin \/bin \/usr\/games \/usr\/local\/games<\/pre>\n<p>(The output formatting may vary depending on the shell that is being used; in this case, <strong>zsh<\/strong> has been used).<\/p>\n<p>So, whenever we execute a command, the system will look in those directories trying to find an executable with that name.<\/p>\n<p>You may have already noticed that the <code>echo<\/code> command is actually an executable file stored in one of those directories (concretely, in <code>\/bin<\/code> directory).<code><\/code><\/p>\n<h3 id=\"section_1_1\">1.1. What happens if we have different commands in different places?<\/h3>\n<p>Perhaps you have already thought about what happens if we have executables with the same name, in locations that are added to the path. Don&#8217;t worry, nothing bad will happen to your system. But, in any case, this is something that has to be taken into account since we may get unexpected results when we execute a command. Sometimes, specially for new Linux users, this can be a headache.<\/p>\n<p>The &#8220;priority&#8221; is defined by the value itself of the <code>PATH<\/code> variable. So, for the value above, the first place the system would look would be the<code> \/usr\/local\/sbin<\/code> directory; then, <code>\/usr\/local\/bin<\/code>, and so on.<\/p>\n<h3 id=\"section_1_2\">1.2. Knowing what we are executing<\/h3>\n<p>Another question we can make to ourselves many times, related to the previous one, is which executable are we actually executing. Of course, we can search in the directories defined in the path looking for the first coincidence, but this is a considerable overhead.<\/p>\n<p>For this, there&#8217;s an executable called <code>which<\/code>. This executable script returns the path of the given executable name that would be executed:<\/p>\n<pre class=\"brush:bash\">which &lt;executable&gt;<\/pre>\n<p>For example, if we want to know which Python binary we would execute, we would execute:<\/p>\n<pre class=\"brush:bash\">which python<\/pre>\n<p>Which would generate the following output:<\/p>\n<pre class=\"brush:bash\">\/usr\/bin\/python<\/pre>\n<h3 id=\"section_1_3\">1.3. Looking for executables in the path<\/h3>\n<p>Another interesting thing can be to know all the existing locations for the given executable, besides the &#8220;first&#8221; executable, the one returned by <code>which<\/code>.<\/p>\n<p>The command for this is called <code>whereis<\/code>. Actually, this command does more than what said above: it looks not only for executables, but also for source code and manual pages.<\/p>\n<p>It works the same as with <code>which<\/code>:<\/p>\n<pre class=\"brush:bash\">whereis &lt;executable&gt;<\/pre>\n<p>So, following with the previous example of Python:<\/p>\n<pre class=\"brush:bash\">whereis python<\/pre>\n<p>The output, in this case, would be:<\/p>\n<pre class=\"brush:bash\">python: \/usr\/bin\/python2.7 \/usr\/bin\/python3.5m \/usr\/bin\/python3.5 \/usr\/bin\/python \/usr\/lib\/python2.7 \/usr\/lib\/python2.6 \/usr\/lib\/python3.5 \/etc\/python2.7 \/etc\/python3.5 \/etc\/python \/usr\/local\/lib\/python2.7 \/usr\/local\/lib\/python3.5 \/usr\/include\/python2.7 \/usr\/include\/python3.5m \/usr\/share\/python \/usr\/share\/man\/man1\/python.1.gz<\/pre>\n<h2 id=\"section_2\">2. Most important Linux commands<\/h2>\n<p>Now that we know how the Linux commands mechanism works, it&#8217;s time to see which are the must-know commands.<\/p>\n<h3 id=\"section_2_1\">2.1. User management<\/h3>\n<p>User management is a task every systems administrator has to deal with quite usually. Let&#8217;s see which are the most important commands for this.<\/p>\n<h4>2.1.1. Creating users<\/h4>\n<p>For adding users, we have two commands: <code>useradd<\/code> and <code>adduser<\/code>. The first one if the low level, native Linux binary; and the second, a friendly wrapper built on the top of this first one.<\/p>\n<p><strong>Native binary: <\/strong><strong>useradd<\/strong><\/p>\n<p>To create a user with <code>useradd<\/code>, in its most basic way, it&#8217;s just about executing:<\/p>\n<pre class=\"brush:bash\">sudo useradd john_doe<\/pre>\n<p>This method has some downsides: no home directory has been created or the shell is <code>sh<\/code> instead of <code>bash<\/code>. And even worse, the user has not a password. Using this command, it&#8217;s always advisable to use the following options:<\/p>\n<pre class=\"brush:bash\">sudo useradd john_doe -m -s \/bin\/bash\r\n# And, then, set a password!\r\nsudo passwd john_doe<\/pre>\n<p><strong>Friendly wrapper: adduser<\/strong><\/p>\n<p>In any case, generally, this is not the advised way to create users. <code>adduser<\/code> is much more friendly. For example, just executing the following:<\/p>\n<pre class=\"brush:bash\">sudo adduser john_doe<\/pre>\n<p>We can interactively set the password, personal information, creation of the home directory, etc.<\/p>\n<h4>2.1.2. Removing users<\/h4>\n<p>As same as for adding users, for deleting them, we have two options: the native binary, and a friendlier script.<\/p>\n<p><strong>Native binary: userdel<\/strong><\/p>\n<p>For deleting users, just execute:<\/p>\n<pre class=\"brush:bash\">sudo userdel john_doe<\/pre>\n<p>For deleting the user as long with its home directory:<\/p>\n<pre class=\"brush:bash\">sudo userdel -r john_doe<\/pre>\n<p><strong>Friendly wrapper: deluser<\/strong><\/p>\n<p>For just deleting the user:<\/p>\n<pre class=\"brush:bash\">sudo deluser john_doe<\/pre>\n<p>And with its home directory:<\/p>\n<pre class=\"brush:bash\">sudo userdel --remove-home john_doe<\/pre>\n<p>And also every file owned by him:<\/p>\n<pre class=\"brush:bash\">sudo userdel --remove-home --remove-all-files john_doe<\/pre>\n<p><strong>2.1.4. List all the users<\/strong><\/p>\n<p>The users are defined in the <code>\/etc\/passwd<\/code> file, so we can check them with<\/p>\n<pre class=\"brush:bash\">cat \/etc\/passwd<\/pre>\n<p><strong>2.1.5. List all the groups<\/strong><\/p>\n<p>The same as with the users, but in this case with <code>\/etc\/group<\/code> file:<\/p>\n<pre class=\"brush:bash\">cat \/etc\/group<\/pre>\n<p><strong>2.1.6. List the groups a user belongs to<\/strong><\/p>\n<p>For this, we can use the <code>groups<\/code> command, specifying the user:<\/p>\n<pre class=\"brush:bash\">groups &lt;user&gt;<\/pre>\n<p>If we don&#8217;t specify any user, the current one (<code>$USER<\/code>) will be used.<\/p>\n<h3 id=\"section_2_2\">2.2. Permissions<\/h3>\n<p>Another completely essential task is to manage the file permissions. As you probably already know, the permissions in Linux are configured for three &#8220;groups&#8221;: the owner of the file, the group the owner of the file belongs to, and the rest of users.<\/p>\n<p>This section will show how to use the commands regarding the permissions.<\/p>\n<h4>2.2.1. Changing files permissions: chmod<\/h4>\n<p>For changing the permissions within files and directories, <code>chmod<\/code> command is used. For this, we have two options: the octal representation, or the symbolic one.<\/p>\n<p><strong>Octal representation<\/strong><\/p>\n<p>For using the octal representation, we have to know the following:<\/p>\n<ul>\n<li><code>0<\/code> for no permission.<\/li>\n<li><code>1<\/code> is for execution permission.<\/li>\n<li><code>2<\/code> is for write permission.<\/li>\n<li><code>4<\/code> is for read permission.<\/li>\n<\/ul>\n<p>Knowing this, is just a matter of combining the digits to set the permission. For example:<\/p>\n<pre class=\"brush:bash\">sudo chmod 750 foo.txt<\/pre>\n<p>Would result in:<\/p>\n<p>Read, write and execute permission for the user owning the file (<code>7<\/code>).<\/p>\n<p>Read and execution permission for the users belonging to the group the owner of the file belongs to (<code>5<\/code>).<\/p>\n<p>No permission for any others (<code>0<\/code>).<\/p>\n<p><strong>Symbolic representation<\/strong><\/p>\n<p>In the symbolic representation letters and arithmetic operators are used:<\/p>\n<p>For the <strong>users<\/strong>, the symbols are the following:<\/p>\n<ul>\n<li><code>u<\/code>: file owner.<\/li>\n<li><code>g<\/code>: file owner\u2019s group.<\/li>\n<li><code>o<\/code>: other users.<\/li>\n<li><code>a<\/code>: all users.<\/li>\n<\/ul>\n<p>The <strong>actions<\/strong> are represented with the same symbols that we have seen before:<\/p>\n<ul>\n<li><code>r<\/code>: read.<\/li>\n<li><code>w<\/code>: write.<\/li>\n<li><code>x<\/code>: execute.<\/li>\n<\/ul>\n<p>And the operators to set the permissions are:<\/p>\n<ul>\n<li><code>=<\/code>: sets the permissions as specified, overwriting any other previous permissions.<\/li>\n<li><code>+<\/code>: adds permissions.<\/li>\n<li><code>-<\/code>: removes permissions.<\/li>\n<\/ul>\n<p>Taking this into account, the equivalent for the example seen for the octal representation, would be:<\/p>\n<pre class=\"brush:bash\">sudo chmod u=rwx,g=rx,o-rwx foo.txt<\/pre>\n<p>For this specific case, we have to type much more than with the octal representation. But for same cases is more useful. For example, to edit the permissions for all, or for a specific group:<\/p>\n<pre class=\"brush:bash\">sudo chmod a+w foo.txt<\/pre>\n<p>The previous command will set write permissions for all the users.<\/p>\n<p><strong>Note<\/strong><strong>:<\/strong> if we are changing the permissions for directories, we can use the <code>-R<\/code> option to apply those specified permissions to all the objects inside the directory.<\/p>\n<h4>2.2.2. Changing files ownerships: chown<\/h4>\n<p>On the other hand of the permissions, we have the group assignment, which is actually easier than the file permissions. It&#8217;s just about:<\/p>\n<pre class=\"brush:bash\">sudo chown &lt;owning-user&gt;[:&lt;owning-group&gt;] &lt;file|directory&gt;<\/pre>\n<p>For example, to change just the owning user of a file:<\/p>\n<pre class=\"brush:bash\">sudo chown john_doe foo.txt<\/pre>\n<p>And, for changing also the group owner:<\/p>\n<pre class=\"brush:bash\">sudo chown john_doe:john_doe foo.txt<\/pre>\n<p><strong>Note<\/strong><strong>:<\/strong> if we are changing the permissions for directories, we can use the <code>-R<\/code> option to apply those specified permissions to all the objects inside the directory.<\/p>\n<p><strong>2.2.3. Login as other user: su<\/strong><\/p>\n<p>If at any moment we want to login with another user, we will have to use the <code>su<\/code> command. This is actually very easy: for example, to login as <code>root<\/code> command:<\/p>\n<pre class=\"brush:bash\">su - root<\/pre>\n<p>Then, we will be asked for the password of the given user.<\/p>\n<p><strong>2.2.4. Executing a command as superuser: sudo<\/strong><\/p>\n<p>This command, one of the first things learned when starting to use Linux, is for executing a certain command as superuser, as we already have seen before in this tutorial.<\/p>\n<h3 id=\"section_2_3\">2.3. Networking<\/h3>\n<p>From while to while, we also have to deal with network related stuff. Let&#8217;s some commands for this.<\/p>\n<h4>2.3.1. Interface configuration: ifconfig<\/h4>\n<p>Probably the first network command one learns. <code>ifconfig<\/code> stands for <em><strong>i<\/strong>nter<strong>f<\/strong>ace <strong>config<\/strong>uration<\/em>. It&#8217;s easiest usage is without any option, to show the information regarding every interface present in the system:<\/p>\n<pre class=\"brush:bash\">ifconfig<\/pre>\n<p>To show the information related to a specific interface, we can specify it. For example, for <code>eth0<\/code>:<\/p>\n<pre class=\"brush:bash\">ifconfig eth0<\/pre>\n<p>We can also set the interfaces down\/up (this action requires root permissions):<\/p>\n<pre class=\"brush:bash\">sudo ifconfig eth0 up\r\nsudo ifconfig eth0 down<\/pre>\n<p>The remaining useful command would be for assigning IP addresses to the given interface, e.g.:<\/p>\n<pre class=\"brush:bash\">sudo ifconfig eth0 192.168.1.30<\/pre>\n<h4>2.3.2. Network statistics: netstat<\/h4>\n<p>This is probably the most used command in this scope. Let&#8217;s see the most useful examples:<\/p>\n<p><strong>List all the ports<\/strong><\/p>\n<pre class=\"brush:bash\">netstat -a | more<\/pre>\n<p><strong>List just TCP ports<\/strong><\/p>\n<pre class=\"brush:bash\">netstat -at<\/pre>\n<p><strong>List just UDP ports<\/strong><\/p>\n<pre class=\"brush:bash\">netstat -au<\/pre>\n<p><strong>List listening TCP ports<\/strong><\/p>\n<pre class=\"brush:bash\">netstat -lt<\/pre>\n<p><strong>List listening UDP ports<\/strong><\/p>\n<pre class=\"brush:bash\">netstat -lu<\/pre>\n<p><strong>Show the process associated to the port<\/strong><\/p>\n<p>Just adding <code>-p<\/code>:<\/p>\n<pre class=\"brush:bash\">netstat -p\r\nnetstat -ltp<\/pre>\n<h3 id=\"section_2_4\">2.4. Navigation and file management<\/h3>\n<p>These are probably the first learned commands. In any case, let&#8217;s see them.<\/p>\n<p><strong>Navigating through directories: cd<\/strong><\/p>\n<p>Just for changing the directory. We can specify relative or absolute paths:<\/p>\n<pre class=\"brush:bash\">cd foo\r\ncd \/home\/julen\/foo\r\ncd # For going to $HOME.<\/pre>\n<p><strong>Deleting things: rm<\/strong><\/p>\n<p>For both files and directories:<\/p>\n<pre class=\"brush:bash\">rm foo.txt\r\nrm -d foo    # -d option is needed for directories.\r\nrm -d -r foo # -r to remove recursively, if the directory is not empty.<\/pre>\n<p><strong>Creating files: touch<\/strong><\/p>\n<p>Just for creating a files:<\/p>\n<pre class=\"brush:bash\">touch foo.txt\r\ntouch foo.txt foo2.txt<\/pre>\n<p><strong>Creating files with content in one command: echo &gt;<\/strong><\/p>\n<p>Useful for when we want to create files with contents in the fly:<\/p>\n<pre class=\"brush:bash\">echo 'file content' &gt; foo.txt<\/pre>\n<p><strong>Files and directories listing: ls<\/strong><\/p>\n<p>One of the most used Linux commands. For example:<\/p>\n<pre class=\"brush:bash\">ls     # Simple output, just list the files in the current directory.\r\nls -a  #  List also hidden files (starting with '.').\r\nls -l  #  Detailed output (permissions, owner, etc.).\r\nls -lh # List also the size.<\/pre>\n<p><strong>Creating links: ln<\/strong><\/p>\n<p>For creating links between files. In most of the cases, it&#8217;s for creating just symbolic links (a pointer to another file, with a different i-node). The usage is the following:<\/p>\n<pre class=\"brush:bash\">ln -s &lt;source-file-or-directory&gt; &lt;dest-link&gt;<\/pre>\n<p>For example:<\/p>\n<pre class=\"brush:bash\">ln -s a b<\/pre>\n<p><code>b<\/code> will be a symbolic link to <code>a<\/code>.<\/p>\n<h3 id=\"section_2_5\">2.5. Finding things<\/h3>\n<p>A very typical scenario is that when we have to look for something that we don&#8217;t know where it is. In this section we will see commands that will make our life easier in this aspect.<\/p>\n<h4>2.5.1. Finding inside files: grep<\/h4>\n<p>When we need to look for string inside logfiles, source code, etc. <code>grep<\/code> will make the work for us. The syntax is the following:<\/p>\n<pre class=\"brush:bash\">grep \"&lt;string&gt;\" &lt;file&gt;<\/pre>\n<p>For example:<\/p>\n<pre class=\"brush:bash\">grep \"bar\" foo.txt<\/pre>\n<p><strong>Looking recursively in every files of the given directory<\/strong><\/p>\n<pre class=\"brush:bash\">grep -R \"bar\" foo\/<\/pre>\n<p><strong>Showing the line number where each coincidence is<\/strong><\/p>\n<pre class=\"brush:bash\">grep -n \"bar\" foo.txt<\/pre>\n<p><strong>Case insensitiveness<br \/>\n<\/strong><\/p>\n<pre class=\"brush:bash\">grep -i \"BaR\" foo.txt<\/pre>\n<h4>2.5.2. Finding files in the system: find<\/h4>\n<p>On the other hand, for finding files, we have the powerful <code>find<\/code> command, with the following syntax:<\/p>\n<pre class=\"brush:bash\">find &lt;path&gt; &lt;expression&gt;<\/pre>\n<p><strong>Finding by literal name<\/strong><\/p>\n<pre class=\"brush:bash\">find \/home -name foo.txt<\/pre>\n<p><strong>Case insensitiveness<\/strong><\/p>\n<pre class=\"brush:bash\">find \/home -iname foo.txt<\/pre>\n<p><strong>Finding by file extension<\/strong><\/p>\n<pre class=\"brush:bash\">find \/home -name *.txt<\/pre>\n<p><strong>Finding by owner user<\/strong><\/p>\n<pre class=\"brush:bash\">find \/home -user john_doe<\/pre>\n<p><strong>Finding by owner group<\/strong><\/p>\n<pre class=\"brush:bash\">find \/home -group john_doe_group<\/pre>\n<p><strong>Finding by permissions (octal notation)<\/strong><\/p>\n<pre class=\"brush:bash\">find \/home perm 777<\/pre>\n<p><strong>Finding by permissions (symbolic notation)<\/strong><\/p>\n<pre class=\"brush:bash\">find \/home perm a=rwx<\/pre>\n<p><strong>Finding by file type<br \/>\n<\/strong><\/p>\n<pre class=\"brush:bash\">find \/home -type d foo # Directories.\r\nfind \/home -type f foo # Files.<\/pre>\n<p><strong>Finding by size<\/strong><\/p>\n<pre class=\"brush:bash\">find \/home -size +10M # Files bigger than 10 megabytes.<\/pre>\n<h2 id=\"section_3\">3. Summary<\/h2>\n<p>This tutorial has shown the most useful and important Linux commands, with\u00a0examples for each one. We have started understanding how the commands work, and, then, diving into these commands.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Regardless the experience, every Linux user must has, at least, a basic knowledge about the terminal and its usage. This tutorial will explain and show with examples the most used and important commands, after a brief explanation of how the commands work. For this tutorial, Linux Mint 18 has been used. Table Of Contents 1. &hellip;<\/p>\n","protected":false},"author":25,"featured_media":192,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-2207","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Linux Commands With Examples - System Code Geeks - 2026<\/title>\n<meta name=\"description\" content=\"Regardless the experience, every Linux user must has, at least, a basic knowledge about the terminal and its usage. This tutorial will explain and show\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.systemcodegeeks.com\/linux\/linux-commands-examples\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Linux Commands With Examples - System Code Geeks - 2026\" \/>\n<meta property=\"og:description\" content=\"Regardless the experience, every Linux user must has, at least, a basic knowledge about the terminal and its usage. This tutorial will explain and show\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.systemcodegeeks.com\/linux\/linux-commands-examples\/\" \/>\n<meta property=\"og:site_name\" content=\"System Code Geeks\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/systemcodegeeks\" \/>\n<meta property=\"article:published_time\" content=\"2016-12-07T15:15:16+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/linux-logo.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"150\" \/>\n\t<meta property=\"og:image:height\" content=\"150\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Toni\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@systemcodegeeks\" \/>\n<meta name=\"twitter:site\" content=\"@systemcodegeeks\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Toni\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"11 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.systemcodegeeks.com\/linux\/linux-commands-examples\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.systemcodegeeks.com\/linux\/linux-commands-examples\/\"},\"author\":{\"name\":\"Toni\",\"@id\":\"https:\/\/www.systemcodegeeks.com\/#\/schema\/person\/69a7de154310f99cedabb63c580291b2\"},\"headline\":\"Linux Commands With Examples\",\"datePublished\":\"2016-12-07T15:15:16+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.systemcodegeeks.com\/linux\/linux-commands-examples\/\"},\"wordCount\":1805,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.systemcodegeeks.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.systemcodegeeks.com\/linux\/linux-commands-examples\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/linux-logo.jpg\",\"articleSection\":[\"Linux\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.systemcodegeeks.com\/linux\/linux-commands-examples\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.systemcodegeeks.com\/linux\/linux-commands-examples\/\",\"url\":\"https:\/\/www.systemcodegeeks.com\/linux\/linux-commands-examples\/\",\"name\":\"Linux Commands With Examples - System Code Geeks - 2026\",\"isPartOf\":{\"@id\":\"https:\/\/www.systemcodegeeks.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.systemcodegeeks.com\/linux\/linux-commands-examples\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.systemcodegeeks.com\/linux\/linux-commands-examples\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/linux-logo.jpg\",\"datePublished\":\"2016-12-07T15:15:16+00:00\",\"description\":\"Regardless the experience, every Linux user must has, at least, a basic knowledge about the terminal and its usage. This tutorial will explain and show\",\"breadcrumb\":{\"@id\":\"https:\/\/www.systemcodegeeks.com\/linux\/linux-commands-examples\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.systemcodegeeks.com\/linux\/linux-commands-examples\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.systemcodegeeks.com\/linux\/linux-commands-examples\/#primaryimage\",\"url\":\"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/linux-logo.jpg\",\"contentUrl\":\"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/linux-logo.jpg\",\"width\":150,\"height\":150},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.systemcodegeeks.com\/linux\/linux-commands-examples\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.systemcodegeeks.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Linux\",\"item\":\"https:\/\/www.systemcodegeeks.com\/category\/linux\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Linux Commands With Examples\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.systemcodegeeks.com\/#website\",\"url\":\"https:\/\/www.systemcodegeeks.com\/\",\"name\":\"System Code Geeks\",\"description\":\"Operating System Developers Resource Center\",\"publisher\":{\"@id\":\"https:\/\/www.systemcodegeeks.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.systemcodegeeks.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.systemcodegeeks.com\/#organization\",\"name\":\"Exelixis Media P.C.\",\"url\":\"https:\/\/www.systemcodegeeks.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.systemcodegeeks.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png\",\"contentUrl\":\"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png\",\"width\":864,\"height\":246,\"caption\":\"Exelixis Media P.C.\"},\"image\":{\"@id\":\"https:\/\/www.systemcodegeeks.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/systemcodegeeks\",\"https:\/\/x.com\/systemcodegeeks\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.systemcodegeeks.com\/#\/schema\/person\/69a7de154310f99cedabb63c580291b2\",\"name\":\"Toni\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.systemcodegeeks.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/21c1661474c78b4757355b8beef9ab1d14f490ee3a3e67392f4e618d36643d4c?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/21c1661474c78b4757355b8beef9ab1d14f490ee3a3e67392f4e618d36643d4c?s=96&d=mm&r=g\",\"caption\":\"Toni\"},\"url\":\"https:\/\/www.systemcodegeeks.com\/author\/julen-pardo\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Linux Commands With Examples - System Code Geeks - 2026","description":"Regardless the experience, every Linux user must has, at least, a basic knowledge about the terminal and its usage. This tutorial will explain and show","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:\/\/www.systemcodegeeks.com\/linux\/linux-commands-examples\/","og_locale":"en_US","og_type":"article","og_title":"Linux Commands With Examples - System Code Geeks - 2026","og_description":"Regardless the experience, every Linux user must has, at least, a basic knowledge about the terminal and its usage. This tutorial will explain and show","og_url":"https:\/\/www.systemcodegeeks.com\/linux\/linux-commands-examples\/","og_site_name":"System Code Geeks","article_publisher":"https:\/\/www.facebook.com\/systemcodegeeks","article_published_time":"2016-12-07T15:15:16+00:00","og_image":[{"width":150,"height":150,"url":"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/linux-logo.jpg","type":"image\/jpeg"}],"author":"Toni","twitter_card":"summary_large_image","twitter_creator":"@systemcodegeeks","twitter_site":"@systemcodegeeks","twitter_misc":{"Written by":"Toni","Est. reading time":"11 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.systemcodegeeks.com\/linux\/linux-commands-examples\/#article","isPartOf":{"@id":"https:\/\/www.systemcodegeeks.com\/linux\/linux-commands-examples\/"},"author":{"name":"Toni","@id":"https:\/\/www.systemcodegeeks.com\/#\/schema\/person\/69a7de154310f99cedabb63c580291b2"},"headline":"Linux Commands With Examples","datePublished":"2016-12-07T15:15:16+00:00","mainEntityOfPage":{"@id":"https:\/\/www.systemcodegeeks.com\/linux\/linux-commands-examples\/"},"wordCount":1805,"commentCount":0,"publisher":{"@id":"https:\/\/www.systemcodegeeks.com\/#organization"},"image":{"@id":"https:\/\/www.systemcodegeeks.com\/linux\/linux-commands-examples\/#primaryimage"},"thumbnailUrl":"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/linux-logo.jpg","articleSection":["Linux"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.systemcodegeeks.com\/linux\/linux-commands-examples\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.systemcodegeeks.com\/linux\/linux-commands-examples\/","url":"https:\/\/www.systemcodegeeks.com\/linux\/linux-commands-examples\/","name":"Linux Commands With Examples - System Code Geeks - 2026","isPartOf":{"@id":"https:\/\/www.systemcodegeeks.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.systemcodegeeks.com\/linux\/linux-commands-examples\/#primaryimage"},"image":{"@id":"https:\/\/www.systemcodegeeks.com\/linux\/linux-commands-examples\/#primaryimage"},"thumbnailUrl":"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/linux-logo.jpg","datePublished":"2016-12-07T15:15:16+00:00","description":"Regardless the experience, every Linux user must has, at least, a basic knowledge about the terminal and its usage. This tutorial will explain and show","breadcrumb":{"@id":"https:\/\/www.systemcodegeeks.com\/linux\/linux-commands-examples\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.systemcodegeeks.com\/linux\/linux-commands-examples\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.systemcodegeeks.com\/linux\/linux-commands-examples\/#primaryimage","url":"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/linux-logo.jpg","contentUrl":"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/linux-logo.jpg","width":150,"height":150},{"@type":"BreadcrumbList","@id":"https:\/\/www.systemcodegeeks.com\/linux\/linux-commands-examples\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.systemcodegeeks.com\/"},{"@type":"ListItem","position":2,"name":"Linux","item":"https:\/\/www.systemcodegeeks.com\/category\/linux\/"},{"@type":"ListItem","position":3,"name":"Linux Commands With Examples"}]},{"@type":"WebSite","@id":"https:\/\/www.systemcodegeeks.com\/#website","url":"https:\/\/www.systemcodegeeks.com\/","name":"System Code Geeks","description":"Operating System Developers Resource Center","publisher":{"@id":"https:\/\/www.systemcodegeeks.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.systemcodegeeks.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.systemcodegeeks.com\/#organization","name":"Exelixis Media P.C.","url":"https:\/\/www.systemcodegeeks.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.systemcodegeeks.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","contentUrl":"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","width":864,"height":246,"caption":"Exelixis Media P.C."},"image":{"@id":"https:\/\/www.systemcodegeeks.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/systemcodegeeks","https:\/\/x.com\/systemcodegeeks"]},{"@type":"Person","@id":"https:\/\/www.systemcodegeeks.com\/#\/schema\/person\/69a7de154310f99cedabb63c580291b2","name":"Toni","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.systemcodegeeks.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/21c1661474c78b4757355b8beef9ab1d14f490ee3a3e67392f4e618d36643d4c?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/21c1661474c78b4757355b8beef9ab1d14f490ee3a3e67392f4e618d36643d4c?s=96&d=mm&r=g","caption":"Toni"},"url":"https:\/\/www.systemcodegeeks.com\/author\/julen-pardo\/"}]}},"_links":{"self":[{"href":"https:\/\/www.systemcodegeeks.com\/wp-json\/wp\/v2\/posts\/2207","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.systemcodegeeks.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.systemcodegeeks.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.systemcodegeeks.com\/wp-json\/wp\/v2\/users\/25"}],"replies":[{"embeddable":true,"href":"https:\/\/www.systemcodegeeks.com\/wp-json\/wp\/v2\/comments?post=2207"}],"version-history":[{"count":0,"href":"https:\/\/www.systemcodegeeks.com\/wp-json\/wp\/v2\/posts\/2207\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.systemcodegeeks.com\/wp-json\/wp\/v2\/media\/192"}],"wp:attachment":[{"href":"https:\/\/www.systemcodegeeks.com\/wp-json\/wp\/v2\/media?parent=2207"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.systemcodegeeks.com\/wp-json\/wp\/v2\/categories?post=2207"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.systemcodegeeks.com\/wp-json\/wp\/v2\/tags?post=2207"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}