Help command in linux

Int this article we going to see a few Linux Monitoring Commands which Each system or network administrator has a really tough job of controlling and debugging Linux System Performance problems every day. Having been an IT company as a Linux administrator I came to know how hard it is to track and manage and operate systems.

These tools also help you to find the possible causes of a performance problem. A dynamic real-time view of a running machine is given by the top program. It can view machine overview information as well as a list of current Linux kernel processes or threads.

From the last reboot, averages are given from the first report produced. Additional reports provide information on a long delay sampling period. In either case, the process and memory reports will be instantaneous. Htop is a process-viewer and process-manager collaborative system-monitor. It is designed as an alternative to the top of the Unix system. It displays a frequently updated list of processes running on a computer, typically ordered by the amount of CPU usage.

Like a top, instead of the most resource-consuming processes, htop includes a full list of operating operations. Htop uses color which includes a graphics processor, swap and memory state information. The processes can also be shown as a tree by htop. Install htop in your Linux Box, use below commands:. To track and view processes, the Python-based Iotop framework includes Kernel accounting. Install iotop in your Linux Box, use below commands:.

It is often used to identify performance issues with storage devices, including local disks, or remote disks accessed via network file systems such as NFS. It can also be used to provide input and output information about the terminal TTY as well as some basic information about the CPU.

The Ultimate A To Z List of Linux Commands | Linux Command Line Reference

Install iostat in your Linux Box, use below commands:. Iftop Interface top is a free command-line system monitoring application that produces a frequently updated network connection list. The free command gives information on the total amount of physical memory, swap memory, used and unused memory, and it also includes buffer and cache in the device. To get memory usage details in MB. To get memory usage details in GB. Tcpdump is a command-line method for collecting and evaluating network traffic in your system.

As well as a monitoring tool, it is often used to help troubleshoot network problems. Tcpdump can be used in a variety of cases as a powerful and versatile tool that provides several choices and filters. Because it is a command-line tool, it is suitable to run on remote servers or computers that do not have a GUI, to capture data that can be analyzed later.Short Bytes: Linux distributions can leverage an extensive range of commands to accomplish various tasks.

For most Linux distros, Bash bourne again shell is the default command-line interface or shell used to execute these commands. In this A to Z list of Linux commands, we have tried to include as many commands as possible which can be run using bash. In the past, we compiled the list of commands for the CMD command-line interpreter in Microsoft Windows, you can take a look at it below:. The first piece of text you see when you land on the shell is called prompt.

help command in linux

However, the terminal application you see on your Linux systems is an emulator that replicates the jobs of a real-world terminal. Many people often confuse the terms shell and terminal. Take the example of a car; the body of the car is the terminal and the dashboard can be considered as the shell where you perform various operations like acceleration, reverse, shifting, etc.

The car responds to your actions performed using the dashboard. Similarly, the terminal displays responses for the commands executed using the shell or CLI. If you try to run LS instead of ls, it would display an error. There are some advantages of using a case-sensitive command line. It also gives people the flexibility over the choice of the command name.

So, In this post, I have tried to compile a list of commands used in various Linux distributions. As you might be knowing, some or many of these commands may not work on your distribution. The descriptions of these Linux commands are based on their manual pages. To access the man page:. So, this was the compilation of different Linux commands.

I hope this A-Z Linux commands might help you in some way. If you find some command missing or some discrepency, please give your valuable feedback and help me make the overall list better.

Sign in. Forgot your password?

The 50 Most Useful Linux Commands To Run in the Terminal

Get help. Password recovery. How To Upgrade Ubuntu Linux is a Unix-Like operating system. This terminal is just like command prompt of Windows OS. The terminal can be used to accomplish all Administrative tasks.

This includes package installation, file manipulation, and user management. Linux terminal is user-interactive. The terminal outputs the results of commands which are specified by the user itself. Execution of typed command is done only after you press the Enter key.

Writing code in comment? Please use ide. Commands Description. It can be used to check whether a file exists or not accton Used to turn on or turn off the process for accounting or change info process accounting file aclocal Used to automatically generate aclocal. It also allows a complete dump of the ARP cache aspell Used as a spell checker in Linux atd It is a job scheduler daemon that runs jobs scheduled for later execution atrm Used to remove the specified jobs.

It helps us to create, view, concatenate files cc It is used to compile the C language codes and create executables ccrypt It is a command line tool for encryption and decryption of data cd Known as change directory command. The col utility simply reads from the standard input and writes to standard output colcrt Used to format the text processor output so that it can be viewed on Cathode Ray Tube displays colrm Removes selected columns from a file column Used to display the contents of a file in columns comm Compares two sorted files line by line and write to standard output; the lines that are common and the lines that are unique compress Used to reduce the file size.

After compression, the file will be available with an added. This command can copy files to and from archives cpp It is automatically used by C compiler to transform your program before compilation cron A software utility, offered by Linux-like operating system which automates the scheduled task at a predetermined time crontab A list of commands that you want to run on a regular schedule, and also the name of the command used to manage that list csplit Used to split any file into many parts as required by the user ctags It allows quick access across the files For example quickly seeing definition of a function cupsd It is a type of scheduler for CUPS Common Unit Printing System.

It implements the printing system on the basis of the Internet Printing Protocol curl A tool to transfer data to or from a server, using any of the supported protocols cut For cutting out the sections from each line of files and writing the result to standard output cvs Used to store the history of a file.

It is also used to set date and time of the system dc Used to evaluate arithmetic expressions. Using the format option, the list of all fonts can be filtered and sorted out fdisk Format disk is a dialog-driven command in Linux used for creating and manipulating disk partition table fg Used to put a background job in foreground fgrep Used to search for the fixed-character strings in a file file Used to determine the type of a file.

Groups make it easy to manage users with the same security and access privileges grpconv It is used to convert to shadow groups. The grpconv command creates a gshadow from the group and an optionally existing gshadow gs This command invokes Ghostscript, which is an interpreter of Adobe Systems PostScript and Portable Document Format PDF languages gunzip Used to compress or expand a file or a list of files in Linux gzexe Used to compress executable files and also used to automatically uncompress and execute the files gzip This command compresses files.

Each single file is compressed into a single file. Basically, it reboots or stops the system. It results in a list of loaded modules lsof Provides a list of files that are opened lsusb Used to display the information about USB buses and the devices connected to them.

A memory map indicates how memory is spread out poweroff Sends an ACPI signal which instructs the system to power down printf Used to display the given string, number or any other format specifier on the terminal window ps Used to list the currently running processes and their PIDs along with some other information depends on different options pwd It prints the path of the working directory, starting from the root.

This is useful once a program dies leaving a terminal in an abnormal state restore Used for restoring files from a backup created using dump return Used to exit from a shell function. It basically prints the file name of the terminal connected to standard input type Used to describe how its argument would be translated if used as commands.

Each file is stored in single. Load Comments. Used to check whether the calling program has access to a specified file. It can be used to check whether a file exists or not. It provides intelligent power management on a system and is used to notify the user-space programs about the ACPI events.

It is a Linux version of getty, which is a Unix program running on a host computer that manages physical or virtual terminals to allow multi-user access. Provides a high-level CLI Command Line Interface for the package management system and is intended as an interface for the end user which enables some options better suited for interactive usage by default compared to more specialized APT tools like apt-cache and apt-get. It strips directory information and suffixes from file names i.

Help Command in Linux

Used to read commands from standard input or a specified file and execute them when system load levels permit i. A mail notification system for unix that notifies the user at the command line when new mail arrives and tells from whom it is.

It does not have to read the entire input file before starting, so with a large file, it starts up faster. Used to see the calendar of a specific month or a whole year. Reads data from file and gives their content as output.Posted by Surendra Anne Apr 19, Basics 0. Do you know what dmidecode command will do? Ans : Are you going to search in G0ogle about dmidecode? No need to search for it. No need to go any where. The above command will show full help about ls command which is of 10 pages.

This will give full information.

Linux Commands

This will give little bit less descriptive but will provide information which you require, and most of the times each option of a command will be described in one sentence and some times in paragraphs. This will show one line description to a give command. Some times you try to find out info on some commands such cd, pwd etc.

This is due to the inbuilt commands. So with man, info etc commands you can not get much information about the inbuilt commands. If you want to know what an inbuilt command do, you have to use help command. My name is Surendra Kumar Anne. I hail from Vijayawada which is cultural capital of south Indian state of Andhra Pradesh.

I am a Linux evangelist who believes in Hard work, A down to earth person, Likes to share knowledge with others, Loves dogs, Likes photography. At present I work at Bank of America as Sr. Analyst Systems and Administration. You can contact me at surendra linuxnix dot com. This command to support multiple commands to append to it. The help command in Linux Some times you try to find out info on some commands such cd, pwd etc.

Exit Status: Returns 0 unless an invalid option is given or the current directory cannot be read. Exit Status: Returns the status of the last command executed. The exit status of the entire construct is the exit status of the last command executed, or zero if no condition tested true.

help command in linux

Please remember —help or —usage may not work with some commands. Post Views: 9, The following two tabs change content below. Bio Latest Posts. Surendra Anne. You can contact him at surendra linuxnix dot com. Latest posts by Surendra Anne see all. Related Posts. Email Subscribe. Search for:.Any computer operating system or application or software we use has a help tab that contains an inbuilt guide regarding the particular application which is helpful to the users.

Likewise, Linux which is based on command-line utilities also comes up with some helpful options. If someone is using Linux for the first time or having some confusion during their session, one can always use the help option to solve their queries. Before using the help command, we should know what is help command.

To be precise help command displays the information about the built-in commands present in the Linux shell. Here the pattern specifies the command for which we need help.

If the input provided by us matches with any of the built-in shell commands then the help command displays details about that and if the input is not matched then it displays a synopsis of help topics that the user can choose from.

help command in linux

Here d, m, and s are options used with the help command. This option is used in cases when we just need to get an overview of any command built in the shell which means this option just gives a brief description of a command like what it does without providing any details of the options. To display the entire information about the cd command passes the string cd as a parameter to the help command.

To display all the available information about the cd command -m option is used. This is similar to the man command. When you compare the above output with the previous output you can note the difference between both the command outputs. The man command aligns the information in sections. It can be seen that when -d option is used with the help command, the output displayed contains a short description of what the particular command does.

If you want to know about using the cd command or the syntax of the command you can use the —s option. There are two types of commands in a Linux shell: External commands and internal commands. Internal commands are those built-in the shell. They will be automatically installed while installing the shell. The help command can be used only to get help about the internal command. It cannot be used for external commands.

If you provide an external command as a parameter to the help command then the output will display the error message as shown below. For instance, if we provide password command as the parameter for the help command then you will see the error message as shown below. To find out whether a given command is internal or external we have to use which command. The command displays the information about the location of the command which is specified.

We know that internal commands are a part of the Linux shell and they will be directly executed from the shell. If the command specified is an external one, then the installation path of the specified command will be displayed by the which command.

The external command comes with the packages. They will be installed along with their respective packages. Normally when a Linux package instates an external command, it will also install documentation about that command. Using Tab Completion: If we are not sure about the accurate name of a certain command then we can use the tab completion. Now enter the command that you want to know and then hit tab twice and the output is produced as shown below. Now enter the command that you want to check and then press enter.

The output will be displayed which will tell whether the command is installed in the shell or not. If the command is displayed then the output will tell the package in which the command exists.By using our site, you acknowledge that you have read and understand our Cookie PolicyPrivacy Policyand our Terms of Service. It only takes a minute to sign up. I know that these command will help to get syntax and options for commands but my question is that how they differ from each other? It uses internal bash structures to store and retrieve information about bash commands.

The output of processing a single file is sent to a pager by the man command by default. That's an internal documentation system of that shell. Other shells have their own documentation system ksh93 has --help and --man options for its builtins, zsh has a run-help helper that extracts information from manuals in other formats.

Other commands like vim have their own embedded documentation system. That's the traditional Unix documentation system. It's hypertext with links predates the web. An info manual is like a digital book with a concept of table of contents and searchable index which helps locating the information.

There's overlap between the 3. For instance, bash being part of the GNU project has both a man page and an info manual. The size of the manual makes the man system not as appropriate for bash though.

However, the structure of the info manual and index is not very good in bash which makes it not as easy to look information in as in other info manuals like zsh 's. In the case of zsh though, the texinfo is generated from another format yodl.

In Linux distros organized in packages, the relative text is in general provided from the same package providing the command. If you have bash-completion you can take advantage from TAB to see what man pages are available. It is provided mainly for GNU commands and utilities. It don't seem to be widely adopted from others. Sign up to join this community.

The best answers are voted up and rise to the top. Home Questions Tags Users Unanswered. Difference between help, info and man command Ask Question. Asked 8 years, 7 months ago.Joinsubscribers and get a daily digest of news, geek trivia, and our feature articles.

There are quite a few tools built into the terminal to help you along. These tricks will help you find the command to use, figure out how to install it, learn how to use it, and view detailed information about it. None of these tricks require an Internet connection.

For example, if you want to know how to use the wget command, type wget —help or wget -h. This will often print a lot of information to the terminal, which can be inconvenient to scroll through. To read the output more easily, you can pipe it through the less command, which allows you to scroll through it with the arrow keys on your keyboard. To find a specific option, you can pipe the output through the grep command. We can type gnome-session into the terminal and press Tab twice to view commands that match the name.

Once we see the command, option, or file name we want, we can type a few more letters and press the Tab key again. If only one match is available, the Bash shell will fill it in for you.

Tab completion is also a great way to save on keystrokes, even if you know what you want to type. Ubuntu will tell you the package that contains the command and show you the command you can use to install it. We could just type rotate into the terminal and Ubuntu would tell us that we have to install the jigl package to get this command.

This feature was introduced by Ubuntu, and may have made its way into other Linux distributions. The help command shows a short list of the commands built into the Bash shell itself. The man command shows detailed manuals for each command. The whatis command shows a one-line summary of a command, taken from its man page.

The Best Tech Newsletter Anywhere. Joinsubscribers and get a daily digest of news, comics, trivia, reviews, and more. Windows Mac iPhone Android.


Leave a Reply

Your email address will not be published. Required fields are marked *