# Linux Commands

# Linux Command

<details>
   <summary>Touch command</summary>
<ul>
<li>This command is used to make files.</li>
</ul>
<pre><code>
touch  file.txt</code></pre>
<p><a href="https://drive.google.com/file/d/1LMJSdUikb2sBrio5hLD-3aEJ2z5Qwl7-/view?usp=share_link">output</a></p>
<ul>
<li>This command is used to make multiple files.</li>
</ul>
<pre><code>
touch file{1...5}.txt</code></pre>
<p><a href="https://drive.google.com/file/d/1K4DlpjxFdVLtAs5-7vDCAueNDUNzgs4f/view?usp=share_link">output</a></p>
   </details>

<details>
   <summary>Remove command</summary>
<ul>
<li>This command is used to remove files that start with a name file you can put any name instead for the file.</li>
</ul>
<pre><code>
rm file*</code></pre>
<p><a href="https://drive.google.com/file/d/1Vtohtkj_qmBzkwpHNQQTSL-gPXNZoj2r/view?usp=share_link">output</a></p>
   </details>

<details>
   <summary>Move Command</summary>
<ul>
<li>This command is used to change the folder names or move the older folders to new folders.</li>
</ul>
<pre><code>
 mv folder1  folder2</code></pre>
   </details>

<details>
   <summary>Echo Command</summary>
<ul>
<li>This command is used to print anything.</li>
</ul>
<pre><code>
 echo "I am Mohit Singh"</code></pre>
   </details>

<details>
   <summary>Chmod Command</summary>
<ul>
<li>This command is used to give permission to the file.</li>
</ul>
<pre><code>
 chmod  FileName</code></pre>
<p>-Ex: chmod 777  file name1</p>
   </details>

<details>
   <summary>Disk Command</summary>
<ul>
<li>This command is used to check disk space in the PC.</li>
</ul>
<pre><code>
 df -H</code></pre>
   </details>

<details>
   <summary>Mkdir Command</summary>
<ul>
<li>This command is used to make a new directory.</li>
</ul>
<pre><code>
 mkdir folder2</code></pre>
   </details>

<details>
   <summary>Remove Directory Command</summary>
<ul>
<li>This command is used to remove the directory.</li>
</ul>
<pre><code>
 rmdir folder2</code></pre>
   </details>

<details>
   <summary>Ls -la Command</summary>
<ul>
<li>Lists files and directories with detailed information like permissions,size, owner, etc.</li>
</ul>
<pre><code>
 ls -la</code></pre>
   </details>

<details>
   <summary>Cat Command</summary>
<ul>
<li>This command is used to make a file and also is used to show what is inside the file.</li>
</ul>
<pre><code>
 cat &gt; filename
cat filename</code></pre>
<ul>
<li>
<p>The first command is used to make the file and the second command is used to show what content inside the file</p>
 </li></ul></details>
