
Use the pwd command to find the path of your current working directory.

-h or –host=host runs commands on the host.-g or –group=group runs commands as a specified group name or ID.-k or –reset-timestamp invalidates the timestamp file.If you try to run sudo in the command line without authenticating yourself, the system will log the activity as a security event. By default, every root user can run sudo commands for 15 minutes/session. Then, the Linux system will log a timestamp as a tracker. When using sudo, the system will prompt users to authenticate themselves with a password. Short for superuser do, sudo is one of the most popular basic Linux commands that lets you perform tasks that require administrative or root permissions. Here is the list of basic Linux commands: 1. If you are still unsure, check out our CLI tutorial.Īlthough the steps may differ depending on your Linux distribution, the Terminal application is usually found in the Utilities section. The 40 Most Commonly Used Linux Commandsīefore proceeding to the list of basic commands, you need to open Terminal first. Keep in mind that all Linux commands are case-sensitive. Parameter or argument specifies any necessary information for the command.To invoke it, use hyphens ( –) or double hyphens ( -). Option or flag modifies a command’s operation.CommandName is the rule that you want to perform.

These are the three most common parts of a command: In some cases, it can still run without them. Here’s what a Linux command’s general syntax looks like:Ī command may contain an option or a parameter.

You can run commands to perform various tasks, from package installation to user management and file manipulation. Linux commands are executed on Terminal by pressing Enter at the end of the line. It’s similar to the Command Prompt application in Windows.
COMMAND LINE FIND FILE TYPE LINUX DOWNLOAD
Download a Free Linux Commands Cheat SheetĪ Linux command is a program or utility that runs on the CLI – a console that interacts with the system via texts and processes.The 40 Most Commonly Used Linux Commands.
