The Linux command line, also known as the terminal, can be an intimidating place. But it can also be your most effective tool.
Text commands often work regardless of which Linux-based operating system you use, and the results are often faster than what a graphical desktop interface can offer.
Linux Commands Cheat Sheet For Interview
Yet even for long-time users, there are too many commands to commit to memory. That’s why we’ve prepared this handy cheat sheet of Linux commands. And if you want to run several of them, check out how to multitask on the Linux terminal with Screen.
The Linux Command Line Cheat Sheet
More Linux Terminal Commands
As comprehensive as this Linux commands cheat sheet may be, the list is only scratching the surface. There is far more you can do in the terminal than we could ever hope to fit on one page. Plus many commands change depending on your Linux-based operating system or require installing additional programs. The commands above are likely to work out-of-the-box on most Linux machines.
Linux Commands Cheat Sheet Grep
All the items in this cheat sheet are useful, but there are other Linux commands that are just plain fun9 Quirky Linux Commands You Need to Know (And Will Love)9 Quirky Linux Commands You Need to Know (And Will Love)Make ASCII art, talk to your computer and play text adventures. Your Linux command line isn't just for work: it can be weirdly entertaining, if you know the right commands.Read More. Then, on the flip side, there are commands that no one should ever run9 Lethal Linux Commands You Should Never Run9 Lethal Linux Commands You Should Never RunYou should never run a Linux command unless you know exactly what it does. Here are some of the deadliest Linux commands that you'll, for the most part, want to avoid.Read More.
Ilfan blog: free download resident evil unlocker. Explore more about: Cheat Sheet, Keyboard, Linux Commands, Terminal.
What you do when you are not sure of the command you are running especially in case of complex commands which uses a lot of options. We use man pages to get some help in such situation. Some of the other options may include commands like ‘help‘, ‘whereis‘ and ‘whatis‘. But all has their Pros and Cons.
While going through man pages for options and help, the description in man pages are too lengthy to understand specially in short span of time.
Similarly, ‘help‘ command may not give you desired output.
Help Command
A ‘whereis‘ command hardly tells anything other than the location of Installed Binaries (May be Important at time).
A ‘whatis‘ command gives strict and one liner answer which is not much helpful other than acknowledging the purpose of the command, Moreover it never says a single word about the available options.
Whatis Command
We have used all these options till date to solve our issue in the dilemma but here comes an interactive cheat-sheet application ‘cheat‘ which is going to lead all the rest.
What is cheat?
Cheat is an interactive cheat-sheet application released under GNU General Public License for Linux Command line users which serves the purpose of showing, use cases of a Linux command with all the options and their short yet understandable function.
Installing ‘Cheat’ in Linux Systems
‘Cheat‘ has two major dependency – ‘python‘ and ‘pip‘. Make sure you have installed python and pip before installing ‘cheat‘ on the system.
Install PythonInstall Pip
NOTE: pip is an easy install replacement and is intended to be an improved Python package installer.
Download and Install Cheat
We will be downloading ‘cheat’ from Git. Make sure you have package ‘git’ installed, if not better install this first.
Next, install the required python dependencies by running following command.
Now, clone the Git repository of cheat.
Move to the cheat directory and run ‘setup.py‘ (a python script).
If installation goes smoothly, you should be able to see a cheat version installed on the system.
Required Configuration for Cheat
You must have an ‘EDITOR‘ environment variable set in ‘~/.bashrc’ file. Open the user ‘.bashrc‘ file and add the following line to it.
You can use your favourite editor here in place of ‘nano‘. Save the file and logout. Again Login to make the changes taken into effect.
Next, add the cheat autocompletion feature to enable command-line autocompletion for different shells. To enable autocompletion, simply clone the ‘cheat.bash‘ script and copy the script to the appropriate path in your system.
NOTE: The team has uploaded other shell’s auto completion scrip to Git, which may be cloned and used in case of respective Shell. Use the following link for other shell’s auto completion script.
Optionally, you can also enable syntax highlighting, if desired. To active syntax highlighting feature, add a CHEATCOLORS environment variable in your ‘.bashrc‘ file.
The Cheat application default program only serves the basic and most used commands. The content of cheat-sheet resides at location ~/.cheat/. Manual Cheatsheets can be added to this location to make the application rich.
This will open xyz cheat-sheet if available. If not it will create one. The cheat-sheet will be opened in the default EDITOR, we set in .bashrc in the configuration stage, above.
Usage of Cheat with Some Commands
A tarball may be *.gz or *.bz2 or *.zip or *.xz. So, what option to be used where?
tar command options
I never run dd command, no matter how much sure I am about the command before consulting and cross checking it at more than one location. The things seems to be easy now.
A ‘uname‘ command help.
uname command options
A short ifconfig command line tutorial, in action.
A ‘top‘ command, one of the most important command for Admin and Normal User.
top command options
How about Cheating the cheat command (though the other sense)? Get a list of available commands, the cheat-sheet of which is installed in the System.
Search Cheat-sheet with specific keyword.
Search Cheat Sheet
See the location of built-in cheat-sheets for all the commands.
Copy the in-built cheat-sheet to your native directory.
Conclusion
This wonderful project is a life Saviour in many-a-situation. It just gives you information that is required, nothing extra, nothing vague and to the point. This is a must tool for everyone. Easy to build, easy to install, easy to run and easy to understand, this project seems promising.
This Git project has added a wonderful gag which I am not going to explain but leave on you to interpret.
That’s all for now. I’ll be here again with another interesting article you people will love to read. Till then stay tuned and connected to Tecmint. Don’t forget to provide us with your valuable feedback in the comment section below.
Don’t Miss: Understanding Shell Commands Easily Using “Explain Shell” Script
Share
Related articles:
Load more
Open-source Linux is a popular alternative to Microsoft Windows, and if you choose to use this low-cost or free operating system, you need to know some basic Linux commands to configure, operate, and interact with your system smoothly.
When dealing with the Linux operating system, commands are required as inputs to inform or direct a computer program to perform a specific operation. Understanding the most basic Linux commands will allow you to successfully navigate directories, manipulate files, change permissions, display information such as disk space, and more. Obtaining basic knowledge of the most common commands will help you easily execute tasks via the command line.
Find the most common Linux commands in this table:
As an alternative to more widespread operating system, open-source Linux is a little different, but that doesn’t mean you can’t do normal things, such as playing DVDs with it. You may need to get familiar with the Linux commands, but Linux offers easy ways to find help.
Common Linux Commands
Open-source Linux is a popular alternative to Microsoft Windows, and if you choose to use this low-cost or free operating system, you need to know some basic Linux commands to configure, operate, and interact with your system smoothly.
When dealing with the Linux operating system, commands are required as inputs to inform or direct a computer program to perform a specific operation. Understanding the most basic Linux commands will allow you to successfully navigate directories, manipulate files, change permissions, display information such as disk space, and more. Obtaining basic knowledge of the most common commands will help you easily execute tasks via the command line.
Find the most common Linux commands in this table:
How to Use CDs and DVDs with Linux
Just because you’re using open-source Linux as your operating system is no reason to think you can’t play CDs or watch DVDs on your computer. To access or remove disks, just follow these procedures:
To access your CDs/DVDs:
To remove your CDs/DVDs:
How to Get Help on Linux
You may find yourself needing more help using Linux than you do using more pervasive operating systems, like Windows. Fortunately, Linux provides fairly easy ways to find help, as shown here:
The Fedora Documentation Project is growing its collection of help manuals for Fedora users. In addition, there’s the Fedora Forum, Fedora News, and the Unofficial Fedora FAQ. If you’re tapping into Ubuntu, the Ubuntu Wiki Project provides basic information on how to get started with most common desktop tasks and has a community documentation project where Ubuntu users can contribute their own guides and tutorials.
Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |