<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Basic Linux Commands &#8211; TECH POINT MAGAZINE</title>
	<atom:link href="https://techpointmag.com/tag/basic-linux-commands/feed/" rel="self" type="application/rss+xml" />
	<link>https://techpointmag.com</link>
	<description>-Beyond Technology-</description>
	<lastBuildDate>Wed, 19 Apr 2023 18:55:25 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.12</generator>

<image>
	<url>https://techpointmag.com/wp-content/uploads/2019/06/cropped-tech-point-logo@2x-3-32x32.png</url>
	<title>Basic Linux Commands &#8211; TECH POINT MAGAZINE</title>
	<link>https://techpointmag.com</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">141627558</site>	<item>
		<title>Here are the best Top 5 basic Linux Commands you should know</title>
		<link>https://techpointmag.com/here-are-the-best-top-5-basic-linux-commands/</link>
		
		<dc:creator><![CDATA[Staff Editor]]></dc:creator>
		<pubDate>Wed, 19 Apr 2023 18:55:20 +0000</pubDate>
				<category><![CDATA[Guides]]></category>
		<category><![CDATA[Picks]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[Basic Linux Commands]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Linux Commands]]></category>
		<guid isPermaLink="false">https://techpointmag.com/?p=16478</guid>

					<description><![CDATA[Are you new to Linux and wondering where to start? It’s important to keep in check with at least the best top 5 basic Linux commands to get you started. Whether you are a beginner or used to desktop Linux distributions like Ubuntu and Linux Mint that offer a Windows-like experience, the top 5 Linux [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>Are you new to Linux and wondering where to start? It’s important to keep in check with at least the best top 5 basic Linux commands to get you started. Whether you are a beginner or used to <a href="https://techpointmag.com/the-best-5-beginner-friendly-linux-distros/" data-type="post" data-id="12367">desktop Linux distributions</a> like Ubuntu and Linux Mint that offer a Windows-like experience, the top 5 <a href="https://techpointmag.com/how-to-install-powershell-on-linux/" data-type="post" data-id="16328">Linux </a>commands listed in this article can help you do most tasks on the distribution.</p>



<p>The commands discussed in this article are essential for navigating and managing files on your Linux system. By practicing these top 5 basic Linux commands, you will be able to execute regular tasks like a professional user.</p>



<p>Within the wide array of beginner Linux commands, <code>ls</code>, <code>cd</code>, <code>pwd</code>,<code>mkdir</code>, and <code>rm</code> are the top 5 Linux commands you should know as a beginner or intermediate user to carry out terminal operations on your Linux powered system as explained below.</p>



<h2 class="wp-block-heading">The Top 5 basic Linux commands you need</h2>



<h3 class="wp-block-heading">ls &#8211; List</h3>



<p>The <strong>ls</strong> command list the files and directories in your current working directory.  The current working directory is your present cursor position in the file system. By default, it is set to your home directory <code>~</code>.</p>



<pre class="wp-block-code"><code>$ ls</code></pre>



<p>When you enter <strong>ls</strong> in the terminal, a list of all available files and directories display in alphabetical order. The command is essential for navigating and finding files easily, and you can also extend it by showing file sizes as described below.</p>



<p>Long list files with sizes in bytes.</p>



<pre class="wp-block-code"><code>$ ls -l</code></pre>



<p>Long list files with sizes in Megabytes</p>



<pre class="wp-block-code"><code>$ ls -lh</code></pre>



<p>For more information about the <code>ls</code> command, simply read it&#8217;s manual by running the following command.</p>



<pre class="wp-block-code"><code>$ man ls</code></pre>



<h3 class="wp-block-heading">cd &#8211; Change Directory</h3>



<p>The <strong>cd</strong> command is used to change your current working directory by switching to a subdirectory, or to your home directory when run without any argument. It helps you switch to any directory on your system. For example, to switch to your Downloads folder, simply run:</p>



<pre class="wp-block-code"><code>$ cd Downloads</code></pre>



<p>Please note that Linux directories and files are case-sensitive, so, <code>Downloads</code> and <code>downloads</code> are interpreted as two separate directories. For clarity, run the following command to switch to the <code>Documents</code> directory if it&#8217;s available in your home directory.</p>



<pre class="wp-block-code"><code>$ cd Documents</code></pre>



<p>So, the <code>cd</code> command is important for moving around in the file system and accessing different directories on your Linux system. When you run the command directly as below, it will switch your position to the home directory.</p>



<pre class="wp-block-code"><code>$ cd</code></pre>



<p>For more information about the <code>cd</code> command, view its manual as below:</p>



<pre class="wp-block-code"><code>$ man cd</code></pre>



<h3 class="wp-block-heading">pwd &#8211; Print working directory</h3>



<p><code>pwd</code> displays your current working directory path. It&#8217;s a simple yet very essential command that helps you keep track of where you are in the file system. For examole, when you use the <code>cd</code> command, you can switch to different directories. But to know the current path from your main directory, the <code>pwd</code> helps you print the position as below.</p>



<pre class="wp-block-code"><code>$ pwd</code></pre>



<p>Output:</p>



<pre class="wp-block-code"><code>/home/user/myfiles</code></pre>



<p>The <code>pwd</code> command supports several arguments, to find out more on the command, view its manual as below.</p>



<pre class="wp-block-code"><code>$ man pwd</code></pre>



<h3 class="wp-block-heading">mkdir &#8211; Make directory</h3>



<p>If you want to create a new directory or a new subdirectory within a main directory, the <code>mkdir</code> command helps you achieve that. You can either create a directory path away from your current position, or simply add it to your current working directory as below.</p>



<p>Syntax</p>



<pre class="wp-block-code"><code>$ mkdir &#91;option] directory-name</code></pre>



<p>Example</p>



<pre class="wp-block-code"><code>$ mkdir -p myfiles</code></pre>



<p>To create a directory using a path, run the following command as long as your account has write privileges to the destination directory.</p>



<pre class="wp-block-code"><code>$ mkdir ~/Documents/myfiles/hello-directory</code></pre>



<p><code>mkdir</code> is a very important command you can use to organizing files and keeping your file system tidy. For more about the <code>mkdir</code> command, view additional info as below.</p>



<pre class="wp-block-code"><code>$ info mkdir</code></pre>



<h2 class="wp-block-heading">rm &#8211; Remove</h2>



<p><code>rm</code> just like the name sounds gets rid of any files and directories you no longer need. Unlike desktop deleting options, when you <a href="https://techpointmag.com/how-to-delete-files-on-linux-using-the-rm-command/" data-type="post" data-id="16238">remove files using the rm command</a>, they are permanently deleted, and you can use the command as below.</p>



<p>Syntax</p>



<pre class="wp-block-code"><code>$ rm &lt;option> file</code></pre>



<p>Remove a single file. For example <code>hello.txt</code>.</p>



<pre class="wp-block-code"><code>$ rm hello.txt</code></pre>



<p>To remove a directory, use the command recursively with the <code>-r</code> argument as below.</p>



<pre class="wp-block-code"><code>$ rm -r myfiles</code></pre>



<p>To delete everything within your current directory, run the command as below.</p>



<pre class="wp-block-code"><code>$ rm -r *</code></pre>



<p>For more information about the rm command, please view its manual with the following command.</p>



<pre class="wp-block-code"><code>$ man rm</code></pre>



<h2 class="wp-block-heading">Conclusion</h2>



<p>You have learned some of the best top 5 Linux commands every beginner or intermediate user should know. You don’t need to be an expert or developer to use the <a href="https://techpointmag.com/install-a-lemp-stack-on-centos-alma-linux-rocky/" data-type="post" data-id="14961">Linux</a> operating system, you simply need to have commands ready at your finger tips to perform most operations.</p>



<p>To extend your ability, you can use the best Linux commands for system management that entail more commands to automate and execute tasks on your system.</p>
]]></content:encoded>
					
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">16478</post-id>	</item>
	</channel>
</rss>
