{"id":1132,"date":"2024-01-13T12:26:39","date_gmt":"2024-01-13T12:26:39","guid":{"rendered":"https:\/\/www.ucartz.com\/blog\/?p=1132"},"modified":"2025-05-26T09:44:00","modified_gmt":"2025-05-26T09:44:00","slug":"75-essential-linux-commands","status":"publish","type":"post","link":"https:\/\/www.ucartz.com\/blog\/75-essential-linux-commands\/","title":{"rendered":"75 Essential Linux Commands"},"content":{"rendered":"\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"450\" src=\"https:\/\/www.ucartz.com\/blog\/wp-content\/uploads\/2024\/01\/ucartz-75-linux-commands.jpg\" alt=\"75 Linux commands and their usages\" class=\"wp-image-1133\" srcset=\"https:\/\/www.ucartz.com\/blog\/wp-content\/uploads\/2024\/01\/ucartz-75-linux-commands.jpg 800w, https:\/\/www.ucartz.com\/blog\/wp-content\/uploads\/2024\/01\/ucartz-75-linux-commands-300x169.jpg 300w, https:\/\/www.ucartz.com\/blog\/wp-content\/uploads\/2024\/01\/ucartz-75-linux-commands-750x422.jpg 750w, https:\/\/www.ucartz.com\/blog\/wp-content\/uploads\/2024\/01\/ucartz-75-linux-commands-372x208.jpg 372w, https:\/\/www.ucartz.com\/blog\/wp-content\/uploads\/2024\/01\/ucartz-75-linux-commands-360x202.jpg 360w, https:\/\/www.ucartz.com\/blog\/wp-content\/uploads\/2024\/01\/ucartz-75-linux-commands-251x141.jpg 251w, https:\/\/www.ucartz.com\/blog\/wp-content\/uploads\/2024\/01\/ucartz-75-linux-commands-230x129.jpg 230w, https:\/\/www.ucartz.com\/blog\/wp-content\/uploads\/2024\/01\/ucartz-75-linux-commands-203x114.jpg 203w, https:\/\/www.ucartz.com\/blog\/wp-content\/uploads\/2024\/01\/ucartz-75-linux-commands-165x92.jpg 165w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">To work a Linux machine remotely, such as a&nbsp;<strong>virtual private server<\/strong>&nbsp;(VPS) or a server, system administrators mainly use a command-line interface (CLI). Even though some Linux machines offer visual interfaces, such as buttons and windows (GUI), to control basic actions on a server. Still, a command-line interface (CLI) lets system administrators use commands to manage the server more efficiently and flexibly. To utilise Linux commands on a remote server, you must connect via SSH&nbsp;<strong>using PuTTY<\/strong>&nbsp;or Terminal.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">However, using the command-line interface, commonly the bash shell, can be tricky because Linux has many commands for different jobs. To help you get started, we&#8217;ll introduce you to 75 important Linux commands for managing your remote VPS or Servers.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This article lists 75 essential Linux commands. These commands are grouped into categories for easy reference and cover various tasks, from basic file and directory management to advanced network administration and scripting.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">Overview of the 75 essential Linux commands:<\/mark><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>1.&nbsp;<strong>ls:&nbsp;<\/strong>List directory contents.<\/li>\n\n\n\n<li>2.&nbsp;<strong>cd:<\/strong>&nbsp;Change directory.<\/li>\n\n\n\n<li>3.&nbsp;<strong>mkdir:<\/strong>&nbsp;Create a directory.<\/li>\n\n\n\n<li>4.&nbsp;<strong>rmdir:<\/strong>&nbsp;Remove an empty directory.<\/li>\n\n\n\n<li>5.&nbsp;<strong>rm:&nbsp;<\/strong>Delete a file or directory (use with caution!).&nbsp;<\/li>\n\n\n\n<li>6.&nbsp;<strong>cp:&nbsp;<\/strong>Copy a file or directory.<\/li>\n\n\n\n<li>7.&nbsp;<strong>mv:<\/strong>&nbsp;Move or rename a file or directory.<\/li>\n\n\n\n<li>8.&nbsp;<strong>file:&nbsp;<\/strong>Display the type of a file.<\/li>\n\n\n\n<li>9.&nbsp;<strong>cat:<\/strong>&nbsp;To concatenate, and display files.<\/li>\n\n\n\n<li>10.&nbsp;<strong>head:<\/strong>&nbsp;Display the first few lines of a file.<\/li>\n\n\n\n<li>11.&nbsp;<strong>tail:<\/strong>&nbsp;Display the last few lines of a file.<\/li>\n\n\n\n<li>12.&nbsp;<strong>pwd:&nbsp;<\/strong>Prints the&nbsp;<strong>P<\/strong>resent&nbsp;<strong>W<\/strong>orking&nbsp;<strong>D<\/strong>irectory<\/li>\n\n\n\n<li>13.&nbsp;<strong>wc:<\/strong>&nbsp;To count lines, words, and characters in a file.<\/li>\n\n\n\n<li>14.&nbsp;<strong>touch:<\/strong>&nbsp;Creates new empty files<\/li>\n\n\n\n<li>15.&nbsp;<strong>grep:<\/strong>&nbsp;Search for patterns in text files.<\/li>\n\n\n\n<li>16.&nbsp;<strong>tar:<\/strong>&nbsp;Create and extract compressed archives.<\/li>\n\n\n\n<li>17.&nbsp;<strong>less:<\/strong>&nbsp;View a file one page at a time.<\/li>\n\n\n\n<li>18.&nbsp;<strong>more:<\/strong>&nbsp;View a file one page at a time (similar to less).<\/li>\n\n\n\n<li>19.<strong>&nbsp;find:&nbsp;<\/strong>Search files and directories for name, type, size, modification time or more.<\/li>\n\n\n\n<li>20.<strong>&nbsp;diff:&nbsp;<\/strong>Compare two files and show their differences.<\/li>\n\n\n\n<li>21.&nbsp;<strong>nano:<\/strong>&nbsp;Edit text files.<\/li>\n\n\n\n<li>22.&nbsp;<strong>vim:<\/strong>&nbsp;Edit text files (advanced).<\/li>\n\n\n\n<li>23.&nbsp;<strong>tee:&nbsp;<\/strong>Writes the output of a command to both a file and the standard output.<\/li>\n\n\n\n<li>24.&nbsp;<strong>awk:<\/strong>&nbsp;Scripting language for processing text files.<\/li>\n\n\n\n<li>25.&nbsp;<strong>sed:<\/strong>&nbsp;Perform text manipulation and substitution.<\/li>\n\n\n\n<li>26.&nbsp;<strong>locate:&nbsp;<\/strong>Quickly find files by name using a pre-built database (updated regularly by a system service).<\/li>\n\n\n\n<li>27.&nbsp;<strong>cut:<\/strong>&nbsp;Extract specific columns from a text file.<\/li>\n\n\n\n<li>28.&nbsp;<strong>sort:<\/strong>&nbsp;Sort lines of text.<\/li>\n\n\n\n<li>29.&nbsp;<strong>sudo:&nbsp;<\/strong>Run a command with root privileges.<\/li>\n\n\n\n<li>30.&nbsp;<strong>chmod:&nbsp;<\/strong>Change file and directory permissions (control who can read, write, or execute them).<\/li>\n\n\n\n<li>31.&nbsp;<strong>su:<\/strong>&nbsp;Switch to another user.<\/li>\n\n\n\n<li>32.&nbsp;<strong>uname:<\/strong>&nbsp;Show the currently logged-in user.<\/li>\n\n\n\n<li>33.&nbsp;<strong>chown:<\/strong>&nbsp;Change file and directory ownership (assign them to different users or groups).<\/li>\n\n\n\n<li>34.&nbsp;<strong>useradd, userdel:<\/strong>&nbsp;Purpose: Manage user accounts on the system.<\/li>\n\n\n\n<li>35.&nbsp;<strong>passwd:<\/strong>&nbsp;Change your password.<\/li>\n\n\n\n<li>36.&nbsp;<strong>groups:<\/strong>&nbsp;Show the groups you belong to.<\/li>\n\n\n\n<li>37.&nbsp;<strong>top:&nbsp;<\/strong>Monitor system resource usage.<\/li>\n\n\n\n<li>38.&nbsp;<strong>free:<\/strong>&nbsp;Show memory usage.<\/li>\n\n\n\n<li>39.&nbsp;<strong>df:&nbsp;<\/strong>Show disk space usage.<\/li>\n\n\n\n<li>40.&nbsp;<strong>ps:&nbsp;<\/strong>Show running processes.<\/li>\n\n\n\n<li>41.&nbsp;<strong>kill:&nbsp;<\/strong>Terminate a running process.<\/li>\n\n\n\n<li>42.&nbsp;<strong>reboot:&nbsp;<\/strong>Reboot the system.<\/li>\n\n\n\n<li>43.&nbsp;<strong>du:<\/strong>&nbsp;Reports disk space usage for files and directories.<\/li>\n\n\n\n<li>44.&nbsp;<strong>htop:<\/strong>&nbsp;Provides a real-time overview of system processes and resource usage.<\/li>\n\n\n\n<li>45.&nbsp;<strong>hostname:&nbsp;<\/strong>Prints or sets the system&#8217;s hostname<\/li>\n\n\n\n<li>46.&nbsp;<strong>time:&nbsp;<\/strong>Measures the execution time of a command or script.<\/li>\n\n\n\n<li>47.&nbsp;<strong>systemctl:<\/strong>&nbsp;Manages systemd services and units.<\/li>\n\n\n\n<li>48.&nbsp;<strong>watch:&nbsp;<\/strong>Executes a command repeatedly, displaying its output in real-time.<\/li>\n\n\n\n<li>49.&nbsp;<strong>jobs:<\/strong>&nbsp;Lists currently running background jobs in the shell.<\/li>\n\n\n\n<li>50.&nbsp;<strong>whoami:<\/strong>&nbsp;Prints the current user&#8217;s username.<\/li>\n\n\n\n<li>51.&nbsp;<strong>id:&nbsp;<\/strong>Show your user ID and group ID.<\/li>\n\n\n\n<li>52.&nbsp;<strong>shutdown:&nbsp;<\/strong>Shut down the system.<\/li>\n\n\n\n<li>53.&nbsp;<strong>ping:<\/strong>&nbsp;Test network connectivity to a host.<\/li>\n\n\n\n<li>54.&nbsp;<strong>traceroute:&nbsp;<\/strong>Attempts to trace the route taken by packets (IP) to a host.<\/li>\n\n\n\n<li>55.&nbsp;<strong>netstat:&nbsp;<\/strong>Show network connections and statistics.<\/li>\n\n\n\n<li>56.&nbsp;<strong>ifconfig:<\/strong>&nbsp;Show network interface configuration.<\/li>\n\n\n\n<li>57.&nbsp;<strong>route:&nbsp;<\/strong>Show and manipulate the routing table.<\/li>\n\n\n\n<li>58.&nbsp;<strong>wget:&nbsp;<\/strong>Download files from the internet.<\/li>\n\n\n\n<li>59.&nbsp;<strong>curl:&nbsp;<\/strong>Transfer data over the internet.<\/li>\n\n\n\n<li>60.&nbsp;<strong>scp:&nbsp;<\/strong>Securely copies files between hosts using SSH.<\/li>\n\n\n\n<li>61.&nbsp;<strong>rsync:<\/strong>&nbsp;synchronizes files and directories between hosts.<\/li>\n\n\n\n<li>62.&nbsp;<strong>nslookup:<\/strong>&nbsp;resolve hostnames and IP addresses<\/li>\n\n\n\n<li>63.&nbsp;<strong>dig:<\/strong>&nbsp;DNS lookup tool with more options than nslookup<\/li>\n\n\n\n<li>64.&nbsp;<strong>gzip:&nbsp;&nbsp;<\/strong>For compress files to reduce their size.<\/li>\n\n\n\n<li>65.&nbsp;<strong>gunzip:<\/strong>&nbsp;Decompress files compressed with gzip.<\/li>\n\n\n\n<li>66.&nbsp;<strong>zip:&nbsp;<\/strong>Create compressed archives in ZIP format.<\/li>\n\n\n\n<li>67.&nbsp;<strong>unzip:&nbsp;<\/strong>Extract files from ZIP archives.<\/li>\n\n\n\n<li>68.&nbsp;<strong>apt-get:<\/strong>&nbsp;Install, remove, and manage software packages.<\/li>\n\n\n\n<li>69.&nbsp;<strong>yum:<\/strong>&nbsp;Package manager for RPM-based systems<\/li>\n\n\n\n<li>70.&nbsp;<strong>pacman:<\/strong>&nbsp;Lightweight and simple package manager.<\/li>\n\n\n\n<li>71.&nbsp;<strong>alias:&nbsp;<\/strong>Create custom aliases for frequently used commands.&nbsp;<\/li>\n\n\n\n<li>72.<strong>&nbsp;history:&nbsp;<\/strong>Show your command history.<\/li>\n\n\n\n<li>73.&nbsp;<strong>man:&nbsp;<\/strong>Show the manual page for a command.<\/li>\n\n\n\n<li>74.&nbsp;<strong>which:<\/strong>&nbsp;Find the location of a command.<\/li>\n\n\n\n<li>75.&nbsp;<strong>whereis:<\/strong>&nbsp;Find the location of a command or file.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Now let&#8217;s check each command listed above and understand the usage of each Linux command.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-cyan-blue-color\">File and Directory Management Linux Commands<\/mark><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">In this section will discover the basic Linux commands used for file and directory management.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-purple-color\">1. ls command<\/mark><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The ls command lists current directory contents. With the ls command, you can see the files and folders within the current directory or a specified directory. Use ls -l for a more detailed listing with file permissions and sizes.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Syntax for ls command:<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><mark style=\"background-color:#8ed1fc\" class=\"has-inline-color\">ls [\/directory\/folder\/path]<\/mark><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Other Options with the ls command:<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Add the following options, to modify the command.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>-l<\/strong>: option provides a detailed listing that includes additional information such as file permissions, owner, group, file size, and modification date.<\/li>\n\n\n\n<li><strong>-a<\/strong>: option includes hidden files and directories in the listing.&nbsp;<\/li>\n\n\n\n<li><strong>-lh<\/strong>: option makes file sizes more human-readable by using units like KB, MB, or GB.<\/li>\n\n\n\n<li><strong>-R<\/strong>: option lists files and directories recursively, displaying the contents of subdirectories as well.<\/li>\n\n\n\n<li><strong>-lt<\/strong>: options sorts files by modification time, showing the most recently modified files first.<\/li>\n\n\n\n<li><strong>-lr<\/strong>: option reverses the order of the listing, showing files in reverse order.<\/li>\n\n\n\n<li><strong>-d *\/<\/strong>: option is used to list directories only.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-purple-color\">2. cd command<\/mark><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The cd command is used for&nbsp;<strong>the Change directory.<\/strong>&nbsp;It means you can navigate through your file system using cd followed by the directory path.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Syntax for cd command:<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><mark style=\"background-color:#8ed1fc\" class=\"has-inline-color\">cd \/path\/to\/directory<\/mark><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Other Options with the cd command:<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Add the following options, to modify the command.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>cd ..<\/strong>: This command permits you to move up one level in the directory hierarchy to the parent directory.<\/li>\n\n\n\n<li><strong>cd &#8211;&nbsp;<\/strong>: This command lets you switch to the last working directory. It is useful for toggling between two directories.<\/li>\n\n\n\n<li><strong>cd relative\/path<\/strong>: This command changes the current working directory based on a relative path from the current location.<\/li>\n\n\n\n<li><strong>cd $HOME<\/strong>: Environment variables can be used to represent paths. In this example, $HOME is the home directory of the current user.<\/li>\n\n\n\n<li><strong>cd ~username<\/strong>: This command changes the current working directory to directory of the specified user.<\/li>\n\n\n\n<li><strong>cd &#8220;directory with spaces&#8221;<\/strong>: If a directory name contains spaces, enclose the directory name in double quotes.<\/li>\n\n\n\n<li><strong>cd &#8211;<\/strong>: This command moves to the previous directory in the shell history.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">It is important to understand how to use it efficiently to move between directories and organise files and directories effectively.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-purple-color\">3. mkdir command<\/mark><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The mkdir command is used for creating a one or multiple directories and along with their permissions. Use mkdir followed by the directory name to create a new folder.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Syntax for mkdir command:<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><mark style=\"background-color:#8ed1fc\" class=\"has-inline-color has-black-color\">mkdir [options] directory_name<\/mark><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Other Options with the mkdir command:<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Add the following options, to modify the command<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>-p<\/strong>: Create parent directories as needed.<\/li>\n\n\n\n<li><strong>-m<\/strong>: Set permissions for the directory.<\/li>\n\n\n\n<li><strong>-v<\/strong>: Be verbose, print a message for each created directory.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-purple-color\">4. rmdir command<\/mark><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The command rmdir is used to remove an empty directories (folders)<strong>.<\/strong>&nbsp;It stands for &#8220;remove directory&#8221; and it works only if the directory is empty. Use rmdir followed by the directory path to delete an empty folder. Be careful, as this cannot be undone!&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Syntax for rmdir command:<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><mark style=\"background-color:#8ed1fc\" class=\"has-inline-color\">rmdir [options] directory_name<\/mark><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Other Options with the rmdir command:<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Add the following options, to modify the command.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>-p<\/strong>: Remove parent directories as well. This option allows rmdir to remove the particular directory (folder) and its parent directories if they become empty after the removal.<\/li>\n\n\n\n<li><strong>&#8211;ignore-fail-on-non-empty<\/strong>: Ignore directories that are not empty and continue removing other directories.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Note:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>rmdir will not remove a directory(folder) if it contains any files or subdirectories. For non-empty directories, you should use the rm command with the -r (recursive) option.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-purple-color\">5. mv command<\/mark><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The command mv is used to moves or renames a file or directory. Use mv followed by the old and new names or paths. For example, mv file.txt new_file.txt renames the file, and mv file.txt ..\/folder moves the file to the folder named &#8220;folder&#8221; one level up.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Syntax for mv command:<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><mark style=\"background-color:#8ed1fc\" class=\"has-inline-color has-black-color\">mv [options] source destination<\/mark><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Other Options with the mv command:<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Add the following options, to modify the command<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>-i<\/strong>: It means Interactive mode. Prompt before overwriting files.<\/li>\n\n\n\n<li><strong>-u<\/strong>: It stands for Update. Allows to move only when the source file is new or the destination file is missing.<\/li>\n\n\n\n<li><strong>-b<\/strong>: Allow to create a backup of the destination file before overwriting.<\/li>\n\n\n\n<li><strong>-n<\/strong>: It means No clobber. It doesn&#8217;t allow to overwrite an existing file.<\/li>\n\n\n\n<li><strong>&#8211;backup[=CONTROL]<\/strong>: Make backups according to the specified CONTROL. The possible values for CONTROL are:\n<ul class=\"wp-block-list\">\n<li><strong>none or off<\/strong>: No backups.<\/li>\n\n\n\n<li><strong>numbered or t<\/strong>: Make numbered backups.<\/li>\n\n\n\n<li><strong>existing or nil<\/strong>: Make numbered backups of files that already have them, simple backups of the others.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-purple-color\">6. cp command<\/mark><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The cp command allows to copy a file or directory. Use cp followed by the source and destination paths. For example, cp file.txt backup.txt creates a copy of the file named &#8220;backup.txt&#8221;.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Syntax for cp command:<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><mark style=\"background-color:#8ed1fc\" class=\"has-inline-color\">cp [options] source destination<\/mark><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Other Options with the cp command:<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Add the following options, to modify the command<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>-u<\/strong>: Enables to copy only when the source file is new than the destination file or when the destination file is missing.<\/li>\n\n\n\n<li><strong>-r or -R<\/strong>: Copy directories and their contents recursively.<\/li>\n\n\n\n<li><strong>-a<\/strong>: Preserves the original file&#8217;s ownership, timestamps, and permissions.<\/li>\n\n\n\n<li><strong>-l<\/strong>: Link. Create hard links instead of copying.<\/li>\n\n\n\n<li><strong>-b<\/strong>: Allow to make a backup of each existing destination file.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-purple-color\">7. rm command\u00a0<\/mark><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The rm command is used to Delete file or directory (use with caution!). So, be very careful with the rm command, as it permanently deletes files and cannot be regained.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Syntax for rm command:<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><mark style=\"background-color:#8ed1fc\" class=\"has-inline-color\">rm [options] file1 file2\u00a0<\/mark><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Other Options with the rm command:<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Add the following options, to modify the command<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>-i<\/strong>: It stands for Interactive mode. Prompt before each removal.<\/li>\n\n\n\n<li><strong>-f<\/strong>: It stands for Force. Ignore nonexistent files and do not prompt.<\/li>\n\n\n\n<li><strong>-r&nbsp;<\/strong>or&nbsp;<strong>-R<\/strong>: It stands for Recursive. Remove directories and their contents recursively.<\/li>\n\n\n\n<li><strong>&#8211;preserve-root<\/strong>: Do not remove \/ (root directory).<\/li>\n\n\n\n<li><strong>&#8211;no-preserve-root<\/strong>: Allow removing \/ (root directory).<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-purple-color\">8. file command<\/mark><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The file command helps to display the type of a file. Use file followed by the filename to identify the file type, such as text, image, or executable.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Syntax for file command:<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><mark style=\"background-color:#8ed1fc\" class=\"has-inline-color\">file [options] file1 file2<\/mark><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Other Options with the file command:<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Add the following options, to modify the command<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>-b<\/strong>: It stands for brief mode. Do not prepend filenames to output lines.<\/li>\n\n\n\n<li><strong>-i<\/strong>: It stands for mime type. Instead of printing the file type, print the MIME type.<\/li>\n\n\n\n<li>&#8211;<strong>z<\/strong>: It stands for compressed files. Decompress the input files before trying to read them.<\/li>\n\n\n\n<li><strong>-L<\/strong>: It stands for symbolic links. If a file is a symbolic link, follow the link and try to process the file to which the link points.<\/li>\n\n\n\n<li><strong>-h<\/strong>&nbsp;or&nbsp;<strong>&#8211;help<\/strong>: Display help information.<\/li>\n\n\n\n<li><strong>&#8211;version<\/strong>: Display version information.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-purple-color\">9. cat command<\/mark><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The cat command is often used for displaying the content of files, combining files, or redirecting output to other files. You need to use command cat followed by the filename to view the file&#8217;s contents.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Syntax for cat command:<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><mark style=\"background-color:#8ed1fc\" class=\"has-inline-color\">cat [options] file1 file2<\/mark><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Some examples of how to use the cat command:<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">1. To display the contents of a file:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>cat filename.txt<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">2. To concatenate multiple files:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>cat file1.txt file2.txt<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">3. To create a new file:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>cat &gt; newfile<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">4. To append content to an existing file:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>cat &gt;&gt; existingfile<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">5. To redirect output to a file:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>cat filename &gt; outputfile<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">6. To view the content of a file in the terminal:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>cat filename | more<\/strong><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Other Options with the cat command<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Add the following options, to modify the command<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>-A, &#8211;show-all<\/strong>: Prints out all the characters and is equivalent to -vET.<\/li>\n\n\n\n<li><strong>-b, &#8211;number-nonblank<\/strong>: It shows non-blank output lines. Also, can be override using -n.<\/li>\n\n\n\n<li><strong>-e<\/strong>: Equivalent to -vE.<\/li>\n\n\n\n<li><strong>-E, &#8211;show-ends<\/strong>: Displays with a &#8220;$&#8221; at the end of each line.<\/li>\n\n\n\n<li><strong>-n, &#8211;number<\/strong>: Display Number to all output lines.<\/li>\n\n\n\n<li><strong>-s, &#8211;squeeze-blank<\/strong>: Suppress repeated empty output lines.<\/li>\n\n\n\n<li><strong>-T, &#8211;show-tabs<\/strong>: Display TAB characters as ^I.<\/li>\n\n\n\n<li><strong>-v, &#8211;show-nonprinting<\/strong>: It is use ^ and M- notation, except for LFD and TAB.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-purple-color\">10. head command<\/mark><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The head command displays the first few lines of a file. Use head followed by the filename and a number (optional) to view the first few lines.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Syntax for head command:<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><mark style=\"background-color:#8ed1fc\" class=\"has-inline-color\">head [options] file1 file2<\/mark><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Some examples of how to use the head command:<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">1. Display the first 10 lines of file<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>head -n 10 myfile.txt<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">2. Display first 500 bytes of a file<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>head -c 500 myfile.txt<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">3. Display the first 10 lines of multiple files<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>head -n 10 myfile1.txt myfile2.txt<\/strong><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Other Options with the head command<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>-n<\/strong>: Displays the first N lines of each file. If no number is defined, it defaults to 10.<\/li>\n\n\n\n<li><strong>-c<\/strong>: Displays the first N bytes or kilobytes of each file.<\/li>\n\n\n\n<li><strong>-q<\/strong>,&nbsp;<strong>&#8211;quiet<\/strong>,&nbsp;<strong>&#8211;silent<\/strong>: Never print headers, even when more than one file is specified.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-purple-color\">11. tail command<\/mark><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">It is used to displays the last few lines of a file. Use tail followed by the filename and a number (optional) to view the last few lines; for example, tail -n 5 file.txt shows the last 5 lines.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Syntax for tail command:<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><mark style=\"background-color:#8ed1fc\" class=\"has-inline-color\">tail [options] file1 file2 &#8230;<\/mark><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Some examples of how to use the tail command:<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">1. Display the last 20 lines of file<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>head -n 20 myfile.txt<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">2. Display last 300 bytes of a file<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>head -c 300 myfile.txt<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">3. Display the last 15 lines of multiple files<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>head -n 15 myfile1.txt myfile2.txt<\/strong><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Other Options with the tail command<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>-n<\/strong>: Display the last N lines of each file. If no number is specified, it defaults to 10.<\/li>\n\n\n\n<li><strong>-c<\/strong>: Display the last N bytes or kilobytes of each file.<\/li>\n\n\n\n<li><strong>-f, &#8211;follow[={name|descriptor}]<\/strong>: Output appended data as the file grows.<\/li>\n\n\n\n<li><strong>-q, &#8211;quiet, &#8211;silent<\/strong>: Never print headers, even when more than one file is specified.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-purple-color\">12. pwd command<\/mark><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">It&#8217;s a simple yet fundamental Linux command for understanding position within the file hierarchy. A pwd command prints the&nbsp;<strong>P<\/strong>resent&nbsp;<strong>W<\/strong>orking&nbsp;<strong>D<\/strong>irectory, indicating the full path of your current location within the file system.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Syntax for pwd command:<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><mark style=\"background-color:#8ed1fc\" class=\"has-inline-color\">pwd [option]<\/mark><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-purple-color\">13. wc command\u00a0<\/mark><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">A wc command is used to counts lines, words, and characters in a file. Use wc followed by the filename to get a count of lines, words, and characters.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Syntax for wc command:<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><mark style=\"background-color:#8ed1fc\" class=\"has-inline-color\">wc [options] file1 file2 &#8230;<\/mark><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Some examples of how to use the wc command:<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">1. To count lines, words, and characters in a file:&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>wc filename.txt<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">2. To count lines in multiple files:&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>wc -l file1.txt file2.txt<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">3. To count words in a file:&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>wc -w filename.txt<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">4. To count characters in a file:&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>wc -c filename.txt<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">5. To display the length of the longest line in a file:&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>wc -L filename.txt<\/strong><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Other Options with the wc command<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>-l<\/strong>: Count lines only.<\/li>\n\n\n\n<li><strong>-w:<\/strong>&nbsp;Count words only.<\/li>\n\n\n\n<li><strong>-c<\/strong>: Count characters only.<\/li>\n\n\n\n<li><strong>-m<\/strong>: Count characters, including newlines.<\/li>\n\n\n\n<li><strong>-L<\/strong>: Display the length of the longest line.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><\/h2>\n\n\n\n<h2 class=\"wp-block-heading\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-purple-color\">14. touch command<\/mark><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">A touch command is used to create empty files or to update the timestamps of existing files and directories.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-purple-color\"><a href=\"https:\/\/www.ucartz.com\/clients\/knowledgebase\/1811\/How-to-Count-Word-Occurrences-in-a-Text-File.html\" target=\"_blank\" rel=\"noreferrer noopener\">15. grep command<\/a><\/mark><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">A grep command is used to searches for patterns in text files. Use grep followed by the pattern and filename to find lines that match the pattern.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Syntax for grep command:<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><mark style=\"background-color:#8ed1fc\" class=\"has-inline-color\">grep [options] pattern file1 file2 &#8230;<\/mark><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Other Options with the grep command<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>-i<\/strong>: Ignore case distinctions.<\/li>\n\n\n\n<li><strong>-n<\/strong>: Print the line number with output lines.<\/li>\n\n\n\n<li><strong>-c<\/strong>: Print only the count of lines that contain the pattern.<\/li>\n\n\n\n<li><strong>-l<\/strong>: Prints only the names of files that have the pattern.<\/li>\n\n\n\n<li><strong>-r, -R<\/strong>: Recursively search subdirectories.<\/li>\n\n\n\n<li><strong>-w<\/strong>: Match whole words.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-purple-color\">16. tar command<\/mark><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">A tar command is used to create and extract compressed archive files. Use tar to create archives (.tar) or extract them (.tar.gz, .zip).<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Syntax for tar command:<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><mark style=\"background-color:#8ed1fc\" class=\"has-inline-color\">tar [options] [file]<\/mark><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Other Options with the tar command<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Creating Archives:<\/strong>\n<ul class=\"wp-block-list\">\n<li><strong>-c<\/strong>: Create a new archive.<\/li>\n\n\n\n<li><strong>-f<\/strong>: Specify the archive file name.<\/li>\n\n\n\n<li><strong>-v<\/strong>: Verbose mode, show progress and file names.<\/li>\n\n\n\n<li><strong>-z<\/strong>: Use gzip compression.<\/li>\n\n\n\n<li><strong>-j<\/strong>: Use bzip2 compression.<\/li>\n\n\n\n<li><strong>-J<\/strong>: Use xz compression.<\/li>\n\n\n\n<li><strong>-t<\/strong>: List the contents of an archive.<\/li>\n\n\n\n<li><strong>-r<\/strong>: Append files to an existing archive.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Extracting Archives:<\/strong>\n<ul class=\"wp-block-list\">\n<li><strong>-x<\/strong>: Extract files from an archive.<\/li>\n\n\n\n<li><strong>-C<\/strong>: Change to the specified directory before extracting.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-cyan-blue-color\">Text Processing and Searching Linux Commands<\/mark><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The following section explores several Linux commands for processing and searching text.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-purple-color\">17. less command<\/mark><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The less command is used to view and navigate(scroll up &amp; down, search ) through the contents of a file. You will be able to view a file one page at a time.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Syntax for less command:<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><mark style=\"background-color:#8ed1fc\" class=\"has-inline-color\">less [options] [file]<\/mark><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Other Options with the less command:<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>-N<\/strong>: line numbers<\/li>\n\n\n\n<li><strong>-f<\/strong>: follow the file as it grows<\/li>\n\n\n\n<li><strong>-Q<\/strong>: quit if the file is read<\/li>\n\n\n\n<li><strong>-S<\/strong>: chop long lines<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-purple-color\">18. more command\u00a0<\/mark><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The less command is used to view a file one page at a time, similar to less but with fewer features.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Syntax for more command:<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><mark style=\"background-color:#8ed1fc\" class=\"has-inline-color\">more [options] [file]<\/mark><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Other Options with more command:<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>-d<\/strong>: helps to display prompt&nbsp;<\/li>\n\n\n\n<li><strong>-s<\/strong>: used to squeeze multiple blank lines<\/li>\n\n\n\n<li><strong>-f<\/strong>: helps to count lines<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-purple-color\">19. find command<\/mark><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">A find command is a Linux command that searches for files and directories. It allows you to define various criteria to make searching for different tasks easier. The multiple criteria are based on name, location, modification time, size, permissions, and content.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Syntax for find command:<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><mark style=\"background-color:#8ed1fc\" class=\"has-inline-color\">find [option] [path] [expression]<\/mark><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-purple-color\"><a href=\"https:\/\/www.ucartz.com\/clients\/knowledgebase\/1816\/How-to-Compare-Local-and-Remote-Files-in-Linux.html\">20. diff command\u00a0<\/a><\/mark><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The diff command compares two files or directories line by line and highlights the differences between them.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Syntax for diff command:<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><mark style=\"background-color:#8ed1fc\" class=\"has-inline-color\">diff [option] file1 file2<\/mark><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Other Options with diff command:<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>-u:&nbsp;<\/strong>used to make it easier to read with context lines<\/li>\n\n\n\n<li><strong>-y:<\/strong>&nbsp;for Side-by-side comparison.<\/li>\n\n\n\n<li><strong>-i:&nbsp;<\/strong>&nbsp;To Ignore case differences.<\/li>\n\n\n\n<li><strong>-w:<\/strong>&nbsp;To Ignore whitespace differences.<\/li>\n\n\n\n<li><strong>-n:<\/strong>&nbsp;Number each line for easier reference.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-purple-color\">21. jet, vi, nano command<\/mark><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The nano, jet, and vi are command-line text editors. They are simple text editor and are user-friendly for beginners. It is suggested to use&nbsp;<strong>nano&nbsp;<\/strong>to work fast and edit text files. The&nbsp;<strong>vi<\/strong>&nbsp;and&nbsp;<strong>jed<\/strong>&nbsp;are used for scripting and programming purposes.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Syntax for nano is:<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><mark style=\"background-color:#8ed1fc\" class=\"has-inline-color\">nano [options] [file]<\/mark><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Syntax for vi is:<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><mark style=\"background-color:#8ed1fc\" class=\"has-inline-color\">vi filename<\/mark><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><\/h2>\n\n\n\n<h2 class=\"wp-block-heading\">Syntax for jed is:<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><mark style=\"background-color:#8ed1fc\" class=\"has-inline-color\">jed filename<\/mark><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Other Options with the nano command:<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Ctrl+O (save), Ctrl+X (exit), Ctrl+G (go to line), Ctrl+W (search)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-purple-color\">22. vim command<\/mark><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The vim command stands for Vi IMproved. It is a powerful text editor with extensive features and a steep learning curve. A vim interface offers three modes, namely Normal (commands), Insert (text entry), Visual (text selection).<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Syntax for vim command:<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><mark style=\"background-color:#8ed1fc\" class=\"has-inline-color\">vim [options] [file]<\/mark><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Other Options with the vim command:<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">There are numerous commands and options; common ones include:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>:w &#8211;<\/strong>&nbsp;used for saving<\/li>\n\n\n\n<li><strong>:q &#8211;&nbsp;<\/strong>used for quitting<\/li>\n\n\n\n<li><strong>:wq &#8211;<\/strong>&nbsp;used for saving and quitting<\/li>\n\n\n\n<li><strong>i &#8211;&nbsp;<\/strong>used for insert mode&nbsp;<\/li>\n\n\n\n<li><strong>Esc &#8211;&nbsp;<\/strong>used for normal mode<\/li>\n\n\n\n<li><strong>:q! &#8211;<\/strong>&nbsp;used to quit without saving<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-purple-color\">23. tee command<\/mark><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The tee command is a powerful Linux command for manipulating data streams. It allows you to duplicate the output of a command to both a file and the standard output simultaneously, making it incredibly useful for various tasks.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Syntax for tee command:<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><mark style=\"background-color:#8ed1fc\" class=\"has-inline-color\">command | tee [-a] file1 [file2&#8230;]<\/mark><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-purple-color\">24. awk command<\/mark><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The awk command is used to filter, format, and manipulate text data. Awk is a general-purpose scripting language used for a various tasks, including data mining, report generation, and more. Awk allows the user to use variables, numeric functions, string functions, and logical operators.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Using the awk command, one can perform mathematical operations, apply conditional statements (using&nbsp;<strong>if), loop<\/strong>&nbsp;with&nbsp;<strong>for &amp; while,<\/strong>&nbsp;output expressions such as&nbsp;<strong>print<\/strong>&nbsp;and&nbsp;<strong>delete<\/strong>&nbsp;commands. It also contains the&nbsp;<strong>$n<\/strong>&nbsp;notation, a field in the current file line.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Syntax for awk command:<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><mark style=\"background-color:#8ed1fc\" class=\"has-inline-color\">awk &#8216;pattern { action }&#8217; [file]\u00a0<\/mark><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-purple-color\">25. sed command<\/mark><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">A sed stands for&nbsp;<strong>Stream EDitor.&nbsp;<\/strong>A sed command is used to perform text manipulation and substitution. It helps in operations like selecting the text, substituting text, modifying an original file, adding lines to the text, or deleting lines without using a text editor.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Syntax for sed command:<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><mark style=\"background-color:#8ed1fc\" class=\"has-inline-color\">sed [options] &#8216;s\/old\/new\/&#8217; [file]<\/mark><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Other Options with the sed command:<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>d:<\/strong>&nbsp;used to delete lines<\/li>\n\n\n\n<li><strong>p:<\/strong>&nbsp;used to print lines<\/li>\n\n\n\n<li><strong>s\/pattern\/replacement\/<\/strong>: used to substitute<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-purple-color\">26. locate command<\/mark><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Using a locate command, you can quickly find files and directories by name within a database.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Syntax for locate command:<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><mark style=\"background-color:#8ed1fc\" class=\"has-inline-color\">locate [options]<\/mark><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-purple-color\">27. cut command<\/mark><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The cut command is a Linux command-line utility that extracts sections of a selected file and prints the result to standard output. This command cuts parts of a line by field, delimiter, byte position, and character.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Syntax for cut command:<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><mark style=\"background-color:#8ed1fc\" class=\"has-inline-color\">cut [options] [file]<\/mark><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Other Options with the cut command:<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>-d:<\/strong>&nbsp;for specifying a delimiter&nbsp;<\/li>\n\n\n\n<li><strong>-f:<\/strong>&nbsp;for selecting fields.<\/li>\n\n\n\n<li><strong>-b:<\/strong>&nbsp;option specifies the byte positions to cut.&nbsp;<\/li>\n\n\n\n<li><strong>-c:<\/strong>&nbsp;option specifies the character positions to cut.&nbsp;<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Some examples of how to use the cut command:<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">1. To extract the first and third fields of a file:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">cut -d, -f1,3 file.txt<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">2. To remove leading whitespace from a line:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">cut -b 2- file.txt<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-purple-color\">28. sort command<\/mark><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The sort command is used to sort lines of text alphabetically or numerically. It prints lines of input text files in an arranged and specified order(sorted manner).&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Syntax for sort command:<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><mark style=\"background-color:#8ed1fc\" class=\"has-inline-color\">sort [options] [file]<\/mark><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Other Options with the sort command:<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>-n:<\/strong>&nbsp;option can be used for numerical sorting&nbsp;<\/li>\n\n\n\n<li><strong>-r:<\/strong>&nbsp;option can be used for reversing the order<\/li>\n\n\n\n<li><strong>-k:<\/strong>\u00a0option can be used for sorting by specific field<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Some examples of how to use the sort command:<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">1. Sorting a file in descending order:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">sort -r file.txt<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">2. Sorting file specifying column:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">sort -k2 file.txt<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">3. Sort a file numerically:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">sort -n file.txt<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-cyan-blue-color\">User and Permission Management Linux Commands<\/mark><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Below are several Linux commands for managing the system&#8217;s users and permissions.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-purple-color\"><a href=\"https:\/\/www.ucartz.com\/clients\/knowledgebase\/2151\/How-To-Add-User-To-A-Group-In-Linux.html\" target=\"_blank\" rel=\"noreferrer noopener\">29. sudo command<\/a><\/mark><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">A sudo command&nbsp;<strong>permits you to run commands with the privileges of another user (<\/strong>Run a command with root privileges).<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Syntax for sudo command:<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><mark style=\"background-color:#8ed1fc\" class=\"has-inline-color\">sudo [command]<\/mark><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Other Options with the sudo command:<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">There are no specific options, but they are combined with the command to be executed.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The root password will be requested by Terminal when you execute a sudo command. You can also run the sudo command using useradd. Here is the syntax for that:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-black-color\">sudo useradd username<\/mark><\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Caution! Using sudo access to run a command will change all the settings on your system. Be careful when executing this command, as misusing it can damage your system and do so only if you understand the possible consequences.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-purple-color\">30. chmod command<\/mark><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">A chmod command is used to assign the permissions to a file or directory. Using this Linux command, one can allocate control over a file, such as who can read, write, or execute a file.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Syntax for chmod command:<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><mark style=\"background-color:#8ed1fc\" class=\"has-inline-color\">chmod &lt;options> &lt;mode> &lt;file><\/mark><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-purple-color\">31. su command<\/mark><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The su command, short for substitute user, enables users to switch to another user account. It is often used to switch to the root account with administrative privileges.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Syntax for su command:<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><mark style=\"background-color:#8ed1fc\" class=\"has-inline-color\">su [options] [user]<\/mark><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Other Options with the su command:<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>-:<\/strong>\u00a0to start a login shell after switching.<\/li>\n\n\n\n<li><strong>-l:<\/strong>&nbsp;login as the target user<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Use the &#8220;<strong>whoami<\/strong>&#8221; command to view the user account for the current shell.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-purple-color\">32. uname command<\/mark><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The uname command is used to prints basic information about the operating system name and system hardware. It is commonly used to determine the processor architecture.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Syntax for uname command:<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><mark style=\"background-color:#8ed1fc\" class=\"has-inline-color\">uname [option]<\/mark><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Other Options with the uname command:<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>-a:&nbsp;<\/strong>Prints all available information about the system.<\/li>\n\n\n\n<li><strong>-m:<\/strong>&nbsp;Prints the processor type.<\/li>\n\n\n\n<li><strong>-n:<\/strong>&nbsp;Prints the system name (hostname).<\/li>\n\n\n\n<li><strong>-r:<\/strong>&nbsp;Prints the kernel release.<\/li>\n\n\n\n<li><strong>-s:<\/strong>&nbsp;Prints the kernel name.<\/li>\n\n\n\n<li><strong>-v:&nbsp;<\/strong>Prints the kernel version.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">To use the uname command, simply type uname in a terminal window. You can also use the uname command with one or more options listed above to get more specific information about the system.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-purple-color\">33. chown command<\/mark><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The chown command, short for &#8220;change owner,&#8221;. It is a powerful Linux command that allows users to change the owner of files and directories. This command is commonly helpful in scenarios where administrators need to grant or revoke access to specific resources.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Syntax for chown command:<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><mark style=\"background-color:#8ed1fc\" class=\"has-inline-color\">chown [option]&#8230; &lt;owner>:&lt;group> &lt;file><\/mark><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-purple-color\">34. useradd,userdel<\/mark><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">A <strong>useradd command<\/strong> is used to create user accounts and configure primary settings. The essential use of the &#8220;useradd&#8221; command is too simple: A user can be added just by providing their username.\u00a0<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>E.g.<\/strong>\u00a0to add a user called &#8220;ashu&#8221;, type the following command:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">useradd ashu<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Once the above command is executed, a new user account with the &#8220;ashu&#8221; name will be created. This user will have a home directory created under \/home\/ashu, and assigned with the primary group.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>userdel command<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">A userdel command is used to delete user accounts &amp; other related files. To delete a user account, just type the command as follows:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">userdel username<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>E.g.\u00a0<\/strong>to delete the created user account &#8220;ashu&#8221;, type command as mentioned below:\u00a0<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">userdel ashu<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-purple-color\">35. passwd command<\/mark><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The passwd command is used to change your password.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Syntax for passwd command:<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><mark style=\"background-color:#8ed1fc\" class=\"has-inline-color\">passwd<\/mark><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Other Options with the passwd command:<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">There are no specific options.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-purple-color\">36. groups command<\/mark><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The group command is used to shows the groups you belong to.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Syntax for groups command:<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><mark style=\"background-color:#8ed1fc\" class=\"has-inline-color\">groups [user]<\/mark><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Other Options with the groups command:<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">There are no specific options.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-purple-color\">37. top command<\/mark><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">A top command allows you to display and update sorted information about processes. In simple terms, it monitors running processes and system resource usage (CPU, memory, etc.) in real-time.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Syntax for top command:<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">top&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Other Options with the top command:<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>-c, &#8211;command:&nbsp;<\/strong>Displays the command line for each process.<\/li>\n\n\n\n<li><strong>-u, &#8211;user=USERNAME:<\/strong>&nbsp;Displays only the processes owned by the specified user.<\/li>\n\n\n\n<li><strong>-p, &#8211;pid=PID:<\/strong>&nbsp;Displays only the specified process.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-purple-color\">38. free command<\/mark><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The free command is used to display the amount of free and used memory in the system(RAM and swap).<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Syntax for free command:<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><mark style=\"background-color:#8ed1fc\" class=\"has-inline-color has-black-color\">free<\/mark><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Other Options with the free command:<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>-k:<\/strong>&nbsp;This option displays the output in kilobytes.<\/li>\n\n\n\n<li><strong>-m:<\/strong>&nbsp;This option displays the output in megabytes.<\/li>\n\n\n\n<li><strong>-g:&nbsp;<\/strong>This option displays the output in gigabytes.<\/li>\n\n\n\n<li><strong>-t:&nbsp;<\/strong>This option displays the total memory.<\/li>\n\n\n\n<li><strong>-s:&nbsp;<\/strong>This option displays the output in a single column.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-purple-color\">39. df command<\/mark><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The df command is used to show the information about disk space usage on mounted file systems in percentage and kilobyte (<strong>KB<\/strong>).<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Syntax for df command:<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><mark style=\"background-color:#8ed1fc\" class=\"has-inline-color\">df [options] [file|directory]<\/mark><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Other Options with the df command:<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>-h:&nbsp;<\/strong>human-readable output.<\/li>\n\n\n\n<li><strong>-T:&nbsp;<\/strong>show file system types.<\/li>\n\n\n\n<li><strong>-m<\/strong>&nbsp;\u2013 show information on the file system used in megabytes (<strong>MB<\/strong>).<\/li>\n\n\n\n<li><strong>-k<\/strong>&nbsp;\u2013 outputs file system used in kilobyte (<strong>KB<\/strong>).<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-purple-color\">40. ps command<\/mark><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The ps command is used to show running processes.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Suppose you execute the ps command without an option or argument. In that case, the shell will report the processes that are currently executing along with the following details, such as unique process ID(PID), The terminal&#8217;s type (TTY), Duration of operation (TIME) and the command (CMD) that starts the procedure.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Syntax for ps command:<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><mark style=\"background-color:#8ed1fc\" class=\"has-inline-color\">ps [options]<\/mark><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Other Options with the ps command:<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>-a:&nbsp;<\/strong>option shows all processes.<\/li>\n\n\n\n<li><strong>-u:&nbsp;<\/strong>option displays user-owned processes.<\/li>\n\n\n\n<li><strong>-x:&nbsp;<\/strong>option displays<strong>&nbsp;<\/strong>processes without controlling terminals.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-purple-color\">41. kill command<\/mark><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The kill command permits you to terminate a running process. It sends a signal to a process, often terminating it using its identification number (PID). To get the PID, run the following command:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">ps ux<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Syntax for kill command:<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><mark style=\"background-color:#8ed1fc\" class=\"has-inline-color\">kill [options] [PID]<\/mark><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To terminate a program, there are 64 signals available. On this, SIGTERM and SIGKILL are the most common. SIGTERM is the default signal that allows the program to save its progress before quitting. SIGKILL now forces systems to abort and discard unsaved progress.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Other Options with the kill command:<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>&#8211;<strong>s:<\/strong>&nbsp;option is used to specify the signal name.<\/li>\n\n\n\n<li><strong>-n:<\/strong>&nbsp;option is used to specify the signal name<\/li>\n\n\n\n<li><strong>-l:&nbsp;<\/strong>option lists the signal names<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">The most often used signals are as follows:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>1 (SIGHUP) &#8211;<\/strong>&nbsp;Terminates the operation.<\/li>\n\n\n\n<li><strong>9 (SIGKILL) &#8211;<\/strong>&nbsp;Ends the process unconditionally.<\/li>\n\n\n\n<li><strong>15 (SIGTERM) &#8211;<\/strong>&nbsp;Stops an active process.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-purple-color\">42. reboot command<\/mark><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The reboot command is utilised to restart the system. It is similar to the shutdown command, but it does not provide any options for scheduling or extending the timing of the notification.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Syntax for reboot command:<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><mark style=\"background-color:#8ed1fc\" class=\"has-inline-color\">reboot\u00a0<\/mark><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-purple-color\"><a href=\"https:\/\/www.ucartz.com\/clients\/knowledgebase\/2149\/How-to-check-the-size-of-directory-or-file-on-linux.html\" target=\"_blank\" rel=\"noreferrer noopener\">43. du command<\/a><\/mark><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The du command stands for &#8220;disk usage&#8221;. It is a Linux command that calculates file and directory size. It is a very useful command for managing disk space.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Syntax for du command:<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><mark style=\"background-color:#8ed1fc\" class=\"has-inline-color\">du [option] [file|directory]<\/mark><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-purple-color\">44. htop command<\/mark><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The htop command is the advanced version of the &#8220;top&#8221; command. It provides a user-friendly interface for monitoring your system&#8217;s performance.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Syntax for htop command:<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><mark style=\"background-color:#8ed1fc\" class=\"has-inline-color\">htop [options]<\/mark><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Other Options with the htop command:<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>-d&nbsp;<\/strong>\u2013 displays the delay between updates in tenths of seconds.<\/li>\n\n\n\n<li><strong>-C&nbsp;<\/strong>\u2013 allows monochrome mode.<\/li>\n\n\n\n<li><strong>-h&nbsp;<\/strong>\u2013 reveals the help message and exits.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-purple-color\">45. hostname command<\/mark><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The hostname command is used to print or set the system&#8217;s hostname.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Syntax for hostname command:<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><mark style=\"background-color:#8ed1fc\" class=\"has-inline-color\">hostname [HOSTNAME]<\/mark><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Other Options with the hostname command:<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>-f:<\/strong>&nbsp;Print the fully qualified domain name (FQDN).<\/li>\n\n\n\n<li><strong>-i:&nbsp;<\/strong>Print all network addresses for the host.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-purple-color\">46. time command<\/mark><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The time command helps to measure the execution time of a command or script.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Syntax for time command:<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><mark style=\"background-color:#8ed1fc\" class=\"has-inline-color\">time [COMMAND]<\/mark><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The result displays elapsed real time, user CPU time, and system CPU time.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-purple-color\">47. systemctl command<\/mark><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The systemctl command is a tool used to manage and control systemd services and units. Systemd is a system and service manager in Linux that launches services.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Syntax for systemctl command:<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><mark style=\"background-color:#8ed1fc\" class=\"has-inline-color\">systemctl [commandname] [service_name]<\/mark><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The common actions performed using the systemctl command is to start, stop, restart, enable, disable, mask, unmask, and reload services.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-purple-color\">48. watch command<\/mark><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The watch command lets the user execute a command repeatedly, displaying its output in real-time.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Syntax for watch command:<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><mark style=\"background-color:#8ed1fc\" class=\"has-inline-color\">watch [option] command<\/mark><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-purple-color\">49. jobs command<\/mark><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The jobs command lists the currently running background jobs in the shell. It can help list all jobs, running, stopped, or completed jobs.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Syntax for jobs command:<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><mark style=\"background-color:#8ed1fc\" class=\"has-inline-color has-black-color\">jobs [options] jobID<\/mark><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-purple-color\">50. whoami command<\/mark><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">A whoami command is used to print the current user&#8217;s username.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Syntax for whoami command:<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><mark style=\"background-color:#8ed1fc\" class=\"has-inline-color\">whoami [option]<\/mark><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-purple-color\">51. id command<\/mark><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The id command is used to display your user ID and group ID.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Syntax for id command:<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><mark style=\"background-color:#0693e3\" class=\"has-inline-color\">id [user]<\/mark><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-purple-color\">52. shutdown command<\/mark><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The shutdown Linux command lets you shut down, restart, or put your system to sleep. It can also be used to end a user session.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Syntax for shutdown command:<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><mark style=\"background-color:#8ed1fc\" class=\"has-inline-color\">shutdown [option] [time]\u00a0<\/mark><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Other Options with the shutdown command:<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>shutdown now:&nbsp;<\/strong>Option allows your system to shut down and power off immediately&nbsp;<\/li>\n\n\n\n<li><strong>shutdown -h now: <\/strong>Similar to the option &#8220;shutdown now&#8221;. Explicitly mention halt. For halt, all modern systems power off the system.<\/li>\n\n\n\n<li><strong>shutdown -h &lt;time&gt;:<\/strong>&nbsp;Indicates the desired shutdown (power down) time.&nbsp;<\/li>\n\n\n\n<li><strong>shutdown -P:<\/strong>&nbsp;This option works like the -h option on most contemporary systems. Switch off the system&#8217;s power.&nbsp;<\/li>\n\n\n\n<li><strong>shutdown -c:&nbsp;<\/strong>Terminates a planned shutdown.&nbsp;<\/li>\n\n\n\n<li><strong>shutdown -r:&nbsp;<\/strong>This causes a one-minute system reboot.&nbsp;<\/li>\n\n\n\n<li><strong>shutdown -r &lt;time&gt;:&nbsp;<\/strong>command restarts the computer at the given time.<\/li>\n\n\n\n<li><strong>Shutdown -r now:<\/strong>&nbsp;Quickly restarts the computer.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-cyan-blue-color\">Network Management and Troubleshooting Linux Commands<\/mark><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Here are commonly used Linux commands for managing and troubleshooting network connections.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-purple-color\">53. ping command<\/mark><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">A ping command allows you to test network connectivity to a host by sending ICMP echo requests. This can also assist you in determining packet loss and troubleshooting communication difficulties.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The following are the main functions of the ping command:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Verify the status of the server.<\/li>\n\n\n\n<li>Determine DNS problems.<\/li>\n\n\n\n<li>Verify the Internet and LAN connections as well as network connectivity.<\/li>\n\n\n\n<li><\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Syntax for ping command:<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><mark style=\"background-color:#8ed1fc\" class=\"has-inline-color\">ping hostname or ping IP_address<\/mark><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Other Options with the ping command:<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>-c:&nbsp;<\/strong>option indicates how many packets to deliver before the command is terminated.<\/li>\n\n\n\n<li><strong>-i:<\/strong>&nbsp;Defines the time between packet sends.<\/li>\n\n\n\n<li><strong>-s:&nbsp;<\/strong>Indicates the ICMP packet size in bytes.<\/li>\n\n\n\n<li><strong>-t:<\/strong>&nbsp;Modifies the packets&#8217; Time-to-Live (TTL) value.<\/li>\n\n\n\n<li><strong>-q:&nbsp;<\/strong>Shows a summary and suppresses most of the output.<\/li>\n\n\n\n<li><strong>-W:<\/strong>&nbsp;Defines the wait time in seconds for a response.<\/li>\n\n\n\n<li><strong>-v:<\/strong>&nbsp;Makes the output more verbose.<\/li>\n\n\n\n<li><strong>-A:&nbsp;<\/strong>A loud ping. This option provides an audio indication of successful pings by producing a sound for each successful answer.<\/li>\n\n\n\n<li><strong>-I:&nbsp;<\/strong>Indicates the IP address to use as the source for sending ping packets.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-purple-color\">54. traceroute command<\/mark><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">A traceroute command attempts to trace the route taken by packets (IP) when they move from one host to another over a network. It provides you with trip time and router-associated information.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Syntax for traceroute command:<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><mark style=\"background-color:#8ed1fc\" class=\"has-inline-color\">traceroute hostname or traceroute IP_address<\/mark><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Other Options with the traceroute command:<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">For more thorough packet monitoring, include the following options:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>-m:&nbsp;<\/strong>option supplies<strong>&nbsp;<\/strong>each packet&#8217;s maximum hops.<\/li>\n\n\n\n<li><strong>-n:<\/strong>&nbsp;stops the command from resolving IP addresses to hostnames for quicker tracing.<\/li>\n\n\n\n<li><strong>-I:&nbsp;<\/strong>modifies the default UDP packets to UCMP.<\/li>\n\n\n\n<li><strong>-w:<\/strong>&nbsp;adds a timeout in seconds.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-purple-color\">55. netstat command<\/mark><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The netstat command displays network status, routing tables, interface statistics, masquerade connections, and more. This Linux command can also be used as a monitoring tool for checking the network connections.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Syntax for netstat command:<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><mark style=\"background-color:#8ed1fc\" class=\"has-inline-color\">netstat [options]<\/mark><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Other Options with the netstat command:<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>-a:<\/strong>&nbsp;option to display all sockets.<\/li>\n\n\n\n<li><strong>-t:&nbsp;<\/strong>option to display TCP sockets.<\/li>\n\n\n\n<li><strong>-u:<\/strong>&nbsp;option to display UDP sockets.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-purple-color\">56. ifconfig command<\/mark><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The ifconfig command is a network configuration tool to configure network interfaces, set IP addresses, and manage network connections.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Syntax for ifconfig command:<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><mark style=\"background-color:#8ed1fc\" class=\"has-inline-color\">ifconfig [interface] [option]<\/mark><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Other Options with the ifconfig command:<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>up:&nbsp;<\/strong>Carry an interface up.<\/li>\n\n\n\n<li><strong>down:&nbsp;<\/strong>Carry an interface down.<\/li>\n\n\n\n<li><strong>add:&nbsp;<\/strong>add an IP address.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-purple-color\">57. route command<\/mark><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The route command is used to view and manipulate the IP routing table. A route command is a powerful Linux command which allows you to view, add, or delete entries in the routing table, determining the path that network traffic will take.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Syntax for with route command:<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><mark style=\"background-color:#8ed1fc\" class=\"has-inline-color\">route [option]<\/mark><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Other Options with the route command:<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>-n:<\/strong>\u00a0for displaying the routing table<\/li>\n\n\n\n<li><strong>-d:\u00a0<\/strong>too delete a route<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-purple-color\">58. wget<\/mark><\/strong><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The goal of the wget command is to download files from the web.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Syntax for with wget command:<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><mark style=\"background-color:#8ed1fc\" class=\"has-inline-color\">wget [OPTIONS] URL<\/mark><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-purple-color\">59. curl<\/mark><\/strong><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">A curl command in Linux is meant to transfer data to\/from servers, with more features than wget.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Syntax for with curl command:<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><mark style=\"background-color:#8ed1fc\" class=\"has-inline-color\">curl [OPTIONS] URL<\/mark><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Other Options with the curl command:<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>-o:<\/strong> Specify output filename.<\/li>\n\n\n\n<li><strong>-X:<\/strong> Specify HTTP method (GET, POST, etc.).<\/li>\n\n\n\n<li><strong>-L:<\/strong> Follow redirects.<\/li>\n\n\n\n<li><strong>-u: <\/strong>Provide username and password for authentication.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-purple-color\">60. scp<\/mark><\/strong><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Using SSH, the scp command is used to transfer data securely between hosts.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Syntax for with scp command:<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><mark style=\"background-color:#8ed1fc\" class=\"has-inline-color\">scp [OPTIONS] SOURCE DESTINATION<\/mark><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Other Options with the scp command:<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>-r: <\/strong>Recursively copy directories.<\/li>\n\n\n\n<li><strong>-P: <\/strong>Specify SSH port.<\/li>\n\n\n\n<li><strong>-i: <\/strong>Specify identity file for authentication.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-purple-color\">61. rsync<\/mark><\/strong><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">To effectively synchronize files and directories between hosts, use the rsyns command.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Syntax for with rsync command:<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">rsync [OPTIONS] SOURCE DESTINATION<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Other Options with the rsync command:<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>-a: <\/strong>Archive mode (preserve permissions, ownership, etc.).<\/li>\n\n\n\n<li><strong>-v: <\/strong>Verbose output.<\/li>\n\n\n\n<li><strong>-z: <\/strong>Compress data during transfer.<\/li>\n\n\n\n<li><strong>-e: <\/strong>Specify remote shell to use (e.g., ssh).<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-purple-color\">62. nslookup<\/mark><\/strong><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">In order to resolve hostnames and IP addresses, DNS servers are consulted using the nslookup command.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Syntax for with nslookup command:<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><mark style=\"background-color:#8ed1fc\" class=\"has-inline-color\">nslookup [OPTIONS] HOSTNAME<\/mark><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Other Options with the nslookup command:<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>-type=TYPE: Specify query type (e.g., A, MX, NS).<\/li>\n\n\n\n<li>-server=SERVER: Use a specific DNS server.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-purple-color\">63. dig<\/mark><\/strong><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">A dig command is used to flexible the DNS lookup tool with more options than nslookup.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Syntax for with dig command:<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><mark style=\"background-color:#8ed1fc\" class=\"has-inline-color\">dig [OPTIONS] @SERVER HOSTNAME<\/mark><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Other Options with the dig command:<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>+short: <\/strong>Display only the answer section.<\/li>\n\n\n\n<li><strong>+trace:<\/strong> Trace the DNS query path.<\/li>\n\n\n\n<li><strong>+noall: <\/strong>Suppress most output except the answer section.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-cyan-blue-color\">File Compression Linux Commands<\/mark><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Below are the commonly used Linux commands for file compression purposes.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-purple-color\">64. gzip Command:<\/mark><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">A gzip command compresses files using the Lempel-Ziv (LZ77) algorithm\u2014typical Use Cases: General-purpose compression, saving disk space, and archiving files. The file extension will be .gz.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Syntax for with gzip command:<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><mark style=\"background-color:#8ed1fc\" class=\"has-inline-color\">gzip [option]&#8230; file&#8230;<\/mark><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Other Options with the gzip command:<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>-d:<\/strong> Decompress (equivalent to gunzip).<\/li>\n\n\n\n<li><strong>-c: <\/strong>Write output to standard output.<\/li>\n\n\n\n<li><strong>-r: <\/strong>Recurse into directories.<\/li>\n\n\n\n<li><strong>-v: <\/strong>Verbose output.<\/li>\n\n\n\n<li><strong>-9: <\/strong>Maximum compression level.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-purple-color\">65. gunzip:<\/mark><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">A gunzip is used for decompressing gzip-compressed files.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Syntax for with gunzip command:<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><mark style=\"background-color:#8ed1fc\" class=\"has-inline-color\">gunzip [option]&#8230; file&#8230;<\/mark><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Other Options with the gunzip command:<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>-c: <\/strong>Write output to standard output.<\/li>\n\n\n\n<li><strong>-f: <\/strong>Force decompression even if the file has multiple links.<\/li>\n\n\n\n<li><strong>-v: <\/strong>Verbose output.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-purple-color\">66. zip:<\/mark><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Purpose: Compresses files into a single archive using various algorithms (often DEFLATE). Typical Use Cases: Cross-platform compatibility, creating self-extracting archives. The file extension is .zip.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Syntax for with zip command:<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><mark style=\"background-color:#8ed1fc\" class=\"has-inline-color\">zip [option]&#8230; zipfile file&#8230;<\/mark><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Other Options with the zip command:<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>-r: <\/strong>Recurse into directories.<\/li>\n\n\n\n<li><strong>-j: <\/strong>Store only the file name, not the full path.<\/li>\n\n\n\n<li>&#8211;<strong>q: <\/strong>Quiet mode (no output).<\/li>\n\n\n\n<li><strong>-P:<\/strong> Set a password for the archive.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-purple-color\">67. unzip:<\/mark><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">A unzip command is used to decompresses zip archives.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Syntax for with unzip command:<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><mark style=\"background-color:#8ed1fc\" class=\"has-inline-color\">unzip [option]&#8230; zipfile<\/mark><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Other Options with the unzip command:<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>-l: <\/strong>List archive contents.<\/li>\n\n\n\n<li><strong>-d: <\/strong>Extract files to a specific directory.<\/li>\n\n\n\n<li><strong>-o: <\/strong>Overwrite existing files without prompting.<\/li>\n\n\n\n<li><strong>-j: <\/strong>Junk paths (extract only the file names).<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-cyan-blue-color\">Package Managers Linux Commands<\/mark><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Below are the commonly used Linux commands for package management purposes.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-purple-color\">68. apt-get command:<\/mark><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The purpose of an apt-get Linux command is to be a main package manager for Debian and Ubuntu distributions.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Syntax for apt-get command:<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><mark style=\"background-color:#8ed1fc\" class=\"has-inline-color has-black-color\">apt-get [COMMAND] PACKAGE_NAME&#8230;<\/mark><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Common apt-get Commands:<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>install:<\/strong>&nbsp;Install packages.<\/li>\n\n\n\n<li><strong>remove:<\/strong>&nbsp;Remove packages.<\/li>\n\n\n\n<li><strong>update:<\/strong>&nbsp;Update package lists.<\/li>\n\n\n\n<li><strong>upgrade:&nbsp;<\/strong>Upgrade installed packages.<\/li>\n\n\n\n<li><strong>search:<\/strong>&nbsp;Search for packages.<\/li>\n\n\n\n<li><strong>autoremove:&nbsp;<\/strong>Remove unused packages.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-purple-color\">69. yum command:<\/mark><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The purpose of the yum Linux command is to manage Package for Red Hat and CentOS distributions.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Syntax for yum command:<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><mark style=\"background-color:#8ed1fc\" class=\"has-inline-color\">yum [COMMAND] PACKAGE_NAME&#8230;<\/mark><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Common yum Commands:<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>install:<\/strong> Install packages.<\/li>\n\n\n\n<li><strong>remove: <\/strong>Remove packages.<\/li>\n\n\n\n<li><strong>update:<\/strong> Update package lists.<\/li>\n\n\n\n<li><strong>upgrade: <\/strong>Upgrade installed packages.<\/li>\n\n\n\n<li><strong>search:<\/strong> Search for packages.<\/li>\n\n\n\n<li><strong>clean:<\/strong> Clean up cached package files.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-purple-color\">70. pacman (Arch Linux):<\/mark><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The main purpose of the Pacman Linux command is to roll out the release package manager for Arch Linux.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Syntax for pacman command:<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">pacman [COMMAND] PACKAGE_NAME&#8230;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Common pacman Commands:<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>-S:<\/strong> Install packages.<\/li>\n\n\n\n<li><strong>-R: <\/strong>Remove packages.<\/li>\n\n\n\n<li><strong>-Syu: <\/strong>Update and upgrade all packages.<\/li>\n\n\n\n<li><strong>-Qs: <\/strong>Search for packages.<\/li>\n\n\n\n<li><strong>-Sy:<\/strong> Download packages without installing.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-cyan-blue-color\">Shell Utilities Linux Commands:<\/mark><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">This section will examine basic Linux commands for Shell Utilities management.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-purple-color\">71. alias command:<\/mark><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">An alias command is used to create shortcuts for frequently used commands.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Syntax for alias command:<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><mark style=\"background-color:#8ed1fc\" class=\"has-inline-color\">alias SHORTCUT=&#8221;COMMAND&#8221;<\/mark><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Example: alias ll=&#8221;ls -l&#8221; creates &#8220;ll&#8221; as a shortcut for &#8220;ls -l&#8221;.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The main benefits of the &#8220;alias&#8221; Linux command are that it saves time and improves command-line efficiency.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-purple-color\">72. history command:<\/mark><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">A history command is used to display a list of previously executed commands. One can quickly review past commands, troubleshoot errors, and reuse commands with the history command.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Syntax for history command:<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><mark style=\"background-color:#8ed1fc\" class=\"has-inline-color\">history<\/mark><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Other Options with the history command:<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>-c:<\/strong> Clear the history.<\/li>\n\n\n\n<li><strong>-n: <\/strong>Show only the last n commands.<\/li>\n\n\n\n<li><strong>-i: <\/strong>Edit a specific command from the history.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-purple-color\">73. man command:<\/mark><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The purpose of the man Linux command is to access manual pages for shell commands and libraries. The main benefit of man command is to learn detailed information about commands, options, and syntax.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Syntax for man command:<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><mark style=\"background-color:#8ed1fc\" class=\"has-inline-color has-black-color\">man COMMAND<\/mark><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-cyan-blue-color\">Linux Commands for Searching File and Command Locations\u00a0<\/mark><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">There are Linux commands, such as &#8220;whereis&#8221;, &#8220;which&#8221; are available for locating files and commands in the Linux system. Let&#8217;s learn more about these Linux commands as they share some similarities while they serve distinct purposes:<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-purple-color\"><strong>74. whereis command<\/strong>:\u00a0<\/mark><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">A whereis is a Linux command used to quickly find files by name using a pre-built database. It also quickly searches for the location of files related to a command (executable, source code, manual page).<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Syntax for whereis command:<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><mark style=\"background-color:#8ed1fc\" class=\"has-inline-color\">whereis COMMAND<\/mark><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-purple-color\"><strong>75. which command<\/strong>:\u00a0<\/mark><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Using a which command, you can quickly locate the path of a given command and, with this, find the exact path of an executable command from your system&#8217;s search path.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Syntax for which command:<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><mark style=\"background-color:#8ed1fc\" class=\"has-inline-color\">which COMMAND<\/mark><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">Tips and Tricks &#8211; Linux Commands<\/mark><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Below are some quick tips and shortcuts to make your Linux command-line experience smoother and more efficient:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>&#8211;help:<\/strong>&nbsp;Use with any command to get a detailed usage guide.<\/li>\n\n\n\n<li><strong>exit:&nbsp;<\/strong>Use to close the terminal.<\/li>\n\n\n\n<li><strong>clear:&nbsp;<\/strong>Use to clean the Terminal screen.<\/li>\n\n\n\n<li><strong>tab:&nbsp;<\/strong>Use to autofill after entering a command with an argument.<\/li>\n\n\n\n<li><strong>ctrl+c:&nbsp;<\/strong>Use Ctrl + C to terminate a running command.<\/li>\n\n\n\n<li><strong>ctrl+z:&nbsp;<\/strong>Use&nbsp;<strong>Ctrl + Z<\/strong>&nbsp;to pause a working command.<\/li>\n\n\n\n<li><strong>ctrl+a:&nbsp;<\/strong>Use to quickly position your cursor at the start of the current line.<\/li>\n\n\n\n<li><strong>ctrl+e:&nbsp;<\/strong>Use<strong>&nbsp;<\/strong>to efficiently move the cursor to the end of the line.<\/li>\n\n\n\n<li><strong>; or &amp;&amp;:&nbsp;<\/strong>Use to separate multiple commands<\/li>\n\n\n\n<li><strong>&#8211;version:&nbsp;<\/strong>Display version information.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion:<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Gone are the days of clunky GUIs limiting our system interactions.\u00a0<strong>Linux commands empower us with a robust, flexible way to control and enhance our <a href=\"https:\/\/www.ucartz.com\/ucartz-kvm-vps\" target=\"_blank\" rel=\"noreferrer noopener\">VPS <\/a>&amp; <a href=\"https:\/\/www.ucartz.com\/ucartz-buy-unmanaged-dedicated-server\" target=\"_blank\" rel=\"noreferrer noopener\">Dedicated Server <\/a>experience.<\/strong>\u00a0They unlock hidden features, automate tasks, and provide granular control over every aspect of our virtual server.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This guide has served as your gateway to this invaluable world, highlighting over 75 essential Linux commands. We&#8217;ve explored how they&#8217;re built \u2013 with their command names, flags, and arguments \u2013 and dived into various categories:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>File Management Linux commands:<\/strong>&nbsp;Navigate your directories with finesse using ls, cd, mkdir, and more. Edit text files with precision using nano, sed, and awk.<\/li>\n\n\n\n<li><strong>System Administration Linux commands:<\/strong>&nbsp;Monitor performance with uptime, free, and top. Manage users and permissions with chmod, chown, and useradd.<\/li>\n\n\n\n<li><strong>Networking Linux commands:<\/strong>&nbsp;Stay connected with ping, traceroute, and netstat. Transfer files effortlessly with scp and rsync.<\/li>\n\n\n\n<li><strong>Package Management Linux commands:<\/strong>&nbsp;Install and update software seamlessly with apt-get, yum, or pacman.<\/li>\n\n\n\n<li><strong>Searching and Locating Linux commands:<\/strong>&nbsp;Find what you need instantly with locate, which, and whereis.<\/li>\n\n\n\n<li><strong>Miscellaneous Tools Linux commands:<\/strong>&nbsp;Automate tasks with watch, create shortcuts with alias, and explore further with man.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Remember, mastering these Linux commands isn&#8217;t just about efficiency; it&#8217;s about unlocking the full potential of your VPS &amp; Dedicated Servers. Whether you use a Terminal or an SSH client, these Linux commands are your key to aspects for efficiently managing your VPS &amp; Server experience. So, dive deeper, experiment, and unlock the true power of Linux!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>To work a Linux machine remotely, such as a&nbsp;virtual private server&nbsp;(VPS) or a server, system administrators mainly use a command-line interface (CLI). Even though some Linux machines offer visual interfaces, such as buttons and windows (GUI), to control basic actions on a server. Still, a command-line interface (CLI) lets system administrators use commands to manage [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":1134,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":"[]"},"categories":[400],"tags":[464,394,325],"class_list":["post-1132","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials","tag-cli","tag-linux","tag-ssh"],"blocksy_meta":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>75 Essential Linux Commands - Web Hosting and IT Consultancy Services<\/title>\n<meta name=\"description\" content=\"Unlock the power of your VPS &amp; Servers with 70+ essential Linux commands. Master file management, system control, networking, and more!\" \/>\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.ucartz.com\/blog\/75-essential-linux-commands\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"75 Essential Linux Commands - Web Hosting and IT Consultancy Services\" \/>\n<meta property=\"og:description\" content=\"Unlock the power of your VPS &amp; Servers with 70+ essential Linux commands. Master file management, system control, networking, and more!\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.ucartz.com\/blog\/75-essential-linux-commands\/\" \/>\n<meta property=\"og:site_name\" content=\"Web Hosting and IT Consultancy Services\" \/>\n<meta property=\"article:published_time\" content=\"2024-01-13T12:26:39+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-05-26T09:44:00+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.ucartz.com\/blog\/wp-content\/uploads\/2024\/01\/ucartz-75-linux-commands-1.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"800\" \/>\n\t<meta property=\"og:image:height\" content=\"450\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Ithal P. Rajagopal\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Ithal P. Rajagopal\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"32 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.ucartz.com\\\/blog\\\/75-essential-linux-commands\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.ucartz.com\\\/blog\\\/75-essential-linux-commands\\\/\"},\"author\":{\"name\":\"Ithal P. Rajagopal\",\"@id\":\"https:\\\/\\\/www.ucartz.com\\\/blog\\\/#\\\/schema\\\/person\\\/37f73849744c1ddfeef537e3560e8d5e\"},\"headline\":\"75 Essential Linux Commands\",\"datePublished\":\"2024-01-13T12:26:39+00:00\",\"dateModified\":\"2025-05-26T09:44:00+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.ucartz.com\\\/blog\\\/75-essential-linux-commands\\\/\"},\"wordCount\":7308,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.ucartz.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.ucartz.com\\\/blog\\\/75-essential-linux-commands\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.ucartz.com\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/01\\\/ucartz-75-linux-commands-1.jpg\",\"keywords\":[\"cli\",\"Linux\",\"ssh\"],\"articleSection\":[\"Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.ucartz.com\\\/blog\\\/75-essential-linux-commands\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.ucartz.com\\\/blog\\\/75-essential-linux-commands\\\/\",\"url\":\"https:\\\/\\\/www.ucartz.com\\\/blog\\\/75-essential-linux-commands\\\/\",\"name\":\"75 Essential Linux Commands - Web Hosting and IT Consultancy Services\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.ucartz.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.ucartz.com\\\/blog\\\/75-essential-linux-commands\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.ucartz.com\\\/blog\\\/75-essential-linux-commands\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.ucartz.com\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/01\\\/ucartz-75-linux-commands-1.jpg\",\"datePublished\":\"2024-01-13T12:26:39+00:00\",\"dateModified\":\"2025-05-26T09:44:00+00:00\",\"description\":\"Unlock the power of your VPS & Servers with 70+ essential Linux commands. Master file management, system control, networking, and more!\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.ucartz.com\\\/blog\\\/75-essential-linux-commands\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.ucartz.com\\\/blog\\\/75-essential-linux-commands\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.ucartz.com\\\/blog\\\/75-essential-linux-commands\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.ucartz.com\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/01\\\/ucartz-75-linux-commands-1.jpg\",\"contentUrl\":\"https:\\\/\\\/www.ucartz.com\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/01\\\/ucartz-75-linux-commands-1.jpg\",\"width\":800,\"height\":450,\"caption\":\"75 Essential Linux Commands & how to use these 75 linux commands\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.ucartz.com\\\/blog\\\/75-essential-linux-commands\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.ucartz.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"VPS file management commands with Linux\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.ucartz.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.ucartz.com\\\/blog\\\/\",\"name\":\"Web Hosting and IT Consultancy Services\",\"description\":\"Discover the Potential of Digital Transformation through Effortless Hosting and Professional IT Consulting!\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.ucartz.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.ucartz.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.ucartz.com\\\/blog\\\/#organization\",\"name\":\"Web Hosting and IT Consultancy Services\",\"url\":\"https:\\\/\\\/www.ucartz.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.ucartz.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.ucartz.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/08\\\/ucartzLogo-1.png\",\"contentUrl\":\"https:\\\/\\\/www.ucartz.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/08\\\/ucartzLogo-1.png\",\"width\":165,\"height\":50,\"caption\":\"Web Hosting and IT Consultancy Services\"},\"image\":{\"@id\":\"https:\\\/\\\/www.ucartz.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.ucartz.com\\\/blog\\\/#\\\/schema\\\/person\\\/37f73849744c1ddfeef537e3560e8d5e\",\"name\":\"Ithal P. Rajagopal\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/36b6ebcee3af6aa6b878a9f454df31a69ac4938094d7d932b148b1f8f6786ce7?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/36b6ebcee3af6aa6b878a9f454df31a69ac4938094d7d932b148b1f8f6786ce7?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/36b6ebcee3af6aa6b878a9f454df31a69ac4938094d7d932b148b1f8f6786ce7?s=96&d=mm&r=g\",\"caption\":\"Ithal P. Rajagopal\"},\"description\":\"Hi, I'm Ithal! I write tech and hosting blogs at Ucartz.com, where I share insights, tips, and the latest updates from the world of web hosting and technology. Whether it's about server setups, control panels, or tools to power your online presence, I break things down in a way that's easy to understand\u2014even if you're just starting out.\",\"url\":\"https:\\\/\\\/www.ucartz.com\\\/blog\\\/author\\\/ithal\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"75 Essential Linux Commands - Web Hosting and IT Consultancy Services","description":"Unlock the power of your VPS & Servers with 70+ essential Linux commands. Master file management, system control, networking, and more!","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.ucartz.com\/blog\/75-essential-linux-commands\/","og_locale":"en_US","og_type":"article","og_title":"75 Essential Linux Commands - Web Hosting and IT Consultancy Services","og_description":"Unlock the power of your VPS & Servers with 70+ essential Linux commands. Master file management, system control, networking, and more!","og_url":"https:\/\/www.ucartz.com\/blog\/75-essential-linux-commands\/","og_site_name":"Web Hosting and IT Consultancy Services","article_published_time":"2024-01-13T12:26:39+00:00","article_modified_time":"2025-05-26T09:44:00+00:00","og_image":[{"width":800,"height":450,"url":"https:\/\/www.ucartz.com\/blog\/wp-content\/uploads\/2024\/01\/ucartz-75-linux-commands-1.jpg","type":"image\/jpeg"}],"author":"Ithal P. Rajagopal","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Ithal P. Rajagopal","Est. reading time":"32 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.ucartz.com\/blog\/75-essential-linux-commands\/#article","isPartOf":{"@id":"https:\/\/www.ucartz.com\/blog\/75-essential-linux-commands\/"},"author":{"name":"Ithal P. Rajagopal","@id":"https:\/\/www.ucartz.com\/blog\/#\/schema\/person\/37f73849744c1ddfeef537e3560e8d5e"},"headline":"75 Essential Linux Commands","datePublished":"2024-01-13T12:26:39+00:00","dateModified":"2025-05-26T09:44:00+00:00","mainEntityOfPage":{"@id":"https:\/\/www.ucartz.com\/blog\/75-essential-linux-commands\/"},"wordCount":7308,"commentCount":0,"publisher":{"@id":"https:\/\/www.ucartz.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.ucartz.com\/blog\/75-essential-linux-commands\/#primaryimage"},"thumbnailUrl":"https:\/\/www.ucartz.com\/blog\/wp-content\/uploads\/2024\/01\/ucartz-75-linux-commands-1.jpg","keywords":["cli","Linux","ssh"],"articleSection":["Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.ucartz.com\/blog\/75-essential-linux-commands\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.ucartz.com\/blog\/75-essential-linux-commands\/","url":"https:\/\/www.ucartz.com\/blog\/75-essential-linux-commands\/","name":"75 Essential Linux Commands - Web Hosting and IT Consultancy Services","isPartOf":{"@id":"https:\/\/www.ucartz.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.ucartz.com\/blog\/75-essential-linux-commands\/#primaryimage"},"image":{"@id":"https:\/\/www.ucartz.com\/blog\/75-essential-linux-commands\/#primaryimage"},"thumbnailUrl":"https:\/\/www.ucartz.com\/blog\/wp-content\/uploads\/2024\/01\/ucartz-75-linux-commands-1.jpg","datePublished":"2024-01-13T12:26:39+00:00","dateModified":"2025-05-26T09:44:00+00:00","description":"Unlock the power of your VPS & Servers with 70+ essential Linux commands. Master file management, system control, networking, and more!","breadcrumb":{"@id":"https:\/\/www.ucartz.com\/blog\/75-essential-linux-commands\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.ucartz.com\/blog\/75-essential-linux-commands\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.ucartz.com\/blog\/75-essential-linux-commands\/#primaryimage","url":"https:\/\/www.ucartz.com\/blog\/wp-content\/uploads\/2024\/01\/ucartz-75-linux-commands-1.jpg","contentUrl":"https:\/\/www.ucartz.com\/blog\/wp-content\/uploads\/2024\/01\/ucartz-75-linux-commands-1.jpg","width":800,"height":450,"caption":"75 Essential Linux Commands & how to use these 75 linux commands"},{"@type":"BreadcrumbList","@id":"https:\/\/www.ucartz.com\/blog\/75-essential-linux-commands\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.ucartz.com\/blog\/"},{"@type":"ListItem","position":2,"name":"VPS file management commands with Linux"}]},{"@type":"WebSite","@id":"https:\/\/www.ucartz.com\/blog\/#website","url":"https:\/\/www.ucartz.com\/blog\/","name":"Web Hosting and IT Consultancy Services","description":"Discover the Potential of Digital Transformation through Effortless Hosting and Professional IT Consulting!","publisher":{"@id":"https:\/\/www.ucartz.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.ucartz.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.ucartz.com\/blog\/#organization","name":"Web Hosting and IT Consultancy Services","url":"https:\/\/www.ucartz.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.ucartz.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.ucartz.com\/blog\/wp-content\/uploads\/2021\/08\/ucartzLogo-1.png","contentUrl":"https:\/\/www.ucartz.com\/blog\/wp-content\/uploads\/2021\/08\/ucartzLogo-1.png","width":165,"height":50,"caption":"Web Hosting and IT Consultancy Services"},"image":{"@id":"https:\/\/www.ucartz.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.ucartz.com\/blog\/#\/schema\/person\/37f73849744c1ddfeef537e3560e8d5e","name":"Ithal P. Rajagopal","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/36b6ebcee3af6aa6b878a9f454df31a69ac4938094d7d932b148b1f8f6786ce7?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/36b6ebcee3af6aa6b878a9f454df31a69ac4938094d7d932b148b1f8f6786ce7?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/36b6ebcee3af6aa6b878a9f454df31a69ac4938094d7d932b148b1f8f6786ce7?s=96&d=mm&r=g","caption":"Ithal P. Rajagopal"},"description":"Hi, I'm Ithal! I write tech and hosting blogs at Ucartz.com, where I share insights, tips, and the latest updates from the world of web hosting and technology. Whether it's about server setups, control panels, or tools to power your online presence, I break things down in a way that's easy to understand\u2014even if you're just starting out.","url":"https:\/\/www.ucartz.com\/blog\/author\/ithal\/"}]}},"_links":{"self":[{"href":"https:\/\/www.ucartz.com\/blog\/wp-json\/wp\/v2\/posts\/1132","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ucartz.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ucartz.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ucartz.com\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ucartz.com\/blog\/wp-json\/wp\/v2\/comments?post=1132"}],"version-history":[{"count":13,"href":"https:\/\/www.ucartz.com\/blog\/wp-json\/wp\/v2\/posts\/1132\/revisions"}],"predecessor-version":[{"id":1155,"href":"https:\/\/www.ucartz.com\/blog\/wp-json\/wp\/v2\/posts\/1132\/revisions\/1155"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.ucartz.com\/blog\/wp-json\/wp\/v2\/media\/1134"}],"wp:attachment":[{"href":"https:\/\/www.ucartz.com\/blog\/wp-json\/wp\/v2\/media?parent=1132"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ucartz.com\/blog\/wp-json\/wp\/v2\/categories?post=1132"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ucartz.com\/blog\/wp-json\/wp\/v2\/tags?post=1132"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}