Cheat Sheet Linux – Introduction
The Linux is an operating system like Windows. But unlike Windows, it is freely available on market. The computer program that allocates resources and coordinates all the details of the computers internal is called operating system or kernel.
Users communicate with the kernel through a program called Shell. The Shell is command line interpreter, it translates commands entered by the user and converts them into language that is understood by Kernel.
Advantages of using Linux
- Linux is highly reliable and secure operating system, plus it is under constant construction to enhance its security features.
- Due to its security and reliability features, Linux is used in most of the Servers like Amazon, Google and many more.
- Linux has a vast variety of programs or applications to choose from, many of them are free to use.
As Linux is freely available, there are many attempts to hack the system. Due to which many organizations keep their systems private, on the other hand, many other customize their own version and make it publicly available to use by everyone. These types of Linux operating systems are called as Distributions. Each Linux distribution is built for a specific purpose-built to meet the requirements of its target users.
Commands On Cheat Sheet Linux
Below are the Cheat sheet Linux commands mentioned which perform different kinds of operations:
• ls –R
• ls -al
|It shows files and directories in the current directory.
All the files in directories as well as subdirectories.
It gives detailed information about the files.
• catviewing files
|To create a new file use cat > filename, add details, control + d to return to a command prompt.
Shows the content of the file
File1 and file2 are combined into a new file with newfilename.
|Removes the files from systems without any prompt to the user.|
mv filename _newfilelocation
|Moves file into a new location specified, required superuser permission.|
|5||man||Opens up a manual for Linux. If you don’t get any command, you can write man <commandname>. It will give all the explanation of the command.|
|6||history||Shows all the commands you have used in the past for the current terminal session. It helps to refer all old commands you have entered and reuse them in your operations.|
|7||clear||Clears all the data on the terminal and gives you a clean window to work on.|
|8||pr||Helps in formatting your file, when you want to print it.|
|9||sudo||Allows regular users to run programs with the security privileges of superuser.|
|10||mail –s ‘subject’ –c ‘cc-address’ –b ‘bcc-address’ ‘to-address’||Command to send an email.|
|11||apt-get||Command used to install and update packages.|
|12||ping||Checks whether the connection to a server is healthy or not.|
|13||ps||It is similar to Task manager in windows. Displays all the processes running under a user.|
|14||kill PID||Kills the running process on Linux machine.|
|15||bg||Sends a process to background.|
|16||fg||Brings the process to the foreground.|
o uname –a
o uname –r
o hostname –I
o last reboot
|Display Linux system information
Display kernel system information
How long system has been running
IP address of the host
System reboot history
o free –h
o lspci –tv
o lsusb –tv
|Display messages in kernel ring buffer.
Display free and used memory.
Display PCI devices.
Display USB devices.
Free Tips and Tricks While using Cheat Sheet Linux Commands:-
- Cheat Sheet Linux commands are case sensitive. Hence, proper attention should be paid while writing the syntax
- Hidden files in Linux begin with “.” Symbol.
- Bash Shell Terminal is a silent type. It will never give “Command Successfully Executed” message. But it gives the error message for any error that has occurred.
- Cat command can be used to combine files, but only test files can be combined and displayed using this command.
- Every file in Linux has 3 types of Users.
- User: it is the default type. A person who creates the file is assigned in a user group.
- Group: has multiple users. All users in this group have the same permissions on the file.
- Other: any user who has not created the file or belongs to any group that is assigned to the file.
- Linux divides file permissions into reading, write and execute denoted by r, w, and x.
- Read and write permission on a directory means you can list the contents of the directory and add, remove and rename files stored in a directory.
- The assigned permissions can be changed by “chmod” command which can be further divided into Absolute and Symbolic.
- Pipes “|” send the output of one command as input of another command.
- “grep” command can be used to find strings and values in a text document.
- Less, pg and more commands are used for dividing a long file into readable bits.
- Linux can be installed on your system via the below-mentioned methods:
- USB stick
- Live CD
- Virtual Installation
- Communication between cheat sheet Linux and other different computers, networks and remote users as possible.
- FTP is preferred protocol for sending and receiving large files. You can establish an FTP connection to a remote host and then use commands for uploading, downloading files, checking files and browsing them.
- Tenet utility helps to establish a connection between remote Linux computer.
- The priority index of a process is called NICE in Linux. The default value is 0, varies between 20 to -19. The lower the Niceness index, higher would be a priority given to the task.
Cheat sheet Linux is the first open-source operating system. That means anyone can download the code and customize it as per one’s need. Linux doesn’t need to rebooted periodically or slow down due to memory leaks. It gives the best performance and can handle a large number of users simultaneously. It comes in a vast number of distributions giving an opportunity for a user to choose according to needs.
4.5 (2,177 ratings)
Linux gives more control but you need to spend more time getting used to commands. But cheat sheet Linux is one of the most secure operating systems. Linux users have to option to select and safely download software, free of charge from online repositories containing thousands of high-quality packages.
This has been a guide to Cheat sheet Linux here we have discussed the content and command as well as free tips and tricks of cheat sheet Linux. You may also look at the following article to learn more –