{"id":9752,"date":"2021-07-21T11:24:16","date_gmt":"2021-07-21T08:24:16","guid":{"rendered":"https:\/\/kifarunix.com\/?p=9752"},"modified":"2021-07-21T11:24:19","modified_gmt":"2021-07-21T08:24:19","slug":"linux-commands-cheat-sheet","status":"publish","type":"post","link":"https:\/\/kifarunix.com\/linux-commands-cheat-sheet\/","title":{"rendered":"Linux Commands Cheat Sheet"},"content":{"rendered":"\n

To have a full grip on your device, it is important to have a reliable operating system.  Managing memory, storage or CPU is a task that a good quality OS will execute easily. When choosing the operating system that meets your needs, you must look at the characteristics and commands that are important to your type of work. Take a look at the following characteristics and decide if Linux is the OS for you.<\/p>\n\n\n\n

What is Linux and Why you Should Use It?<\/h2>\n\n\n\n

According to Milos, an avid user of Linux and webmaster of RealSpyApps<\/a>, Linux is software with an array of tools and functions, based on the Linux kernel. What makes Linux the ideal software for many is the fact that it\u2019s open-source software. It will let you choose and set up preferable components, for example, if you are looking for graphics, you can make it the core component. <\/p>\n\n\n\n


Since the software is open-sourced, it will guarantee you more security. Not only that, but each Linux user must have an ID and a password, making it harder for malware to go through. These specifics make Linux much more secure than other software.<\/p>\n\n\n\n

Linux Commands Cheat Sheet<\/h2>\n\n\n\n

General Commands<\/h3>\n\n\n\n
Command<\/strong><\/td>Description<\/strong><\/td><\/tr>
alias<\/td>Shows all your aliases in a list, allowing you to shift and substitute commands.<\/td><\/tr>
set-x<\/td>This built-in command defines the values in the system.<\/td><\/tr>
\\<\/td>It annuls any aliases.<\/td><\/tr>
script<\/td>The script command records a terminal session and it is captured in the filename typescript.<\/td><\/tr>
~<\/td>An alias referring to a home directory of a user.<\/td><\/tr>
reset<\/td>This command is used to reset and restart the terminal you\u2019re currently working on. <\/td><\/tr>
exit<\/td>Exit is used to close the current terminal\/log out.<\/td><\/tr>
logout<\/td>Same as exit, it logs you out of the terminal. You can also use CTRL + D.<\/td><\/tr>
echo<\/td>The command will repeat all that you type after it.<\/td><\/tr>
history<\/td>History command will show you all the used commands, listed.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n

Combination Keys<\/h3>\n\n\n\n
CTRL + D<\/td>The command is used to exit and\/or log out of the terminal.<\/td><\/tr>
CTRL + Z<\/td>Using this key, the user is able to pause the process and run a different one in the background.<\/td><\/tr>
CTRL + A \/ CTRL +E<\/td>These commands are used as navigation from start to end of the command line.<\/td><\/tr>
CTRL + K<\/td>The key is used to erase anything before the cursor.<\/td><\/tr>
CTRL + Y<\/td>This command will paste the last thing erased.<\/td><\/tr>
CTRL + W<\/td>It is used to delete whole lines of the command line.<\/td><\/tr>
Screen<\/td>Screen command allows you to shift among different virtual terminals.<\/td><\/tr>
CTRL + N<\/td>Go to the following virtual terminal.<\/td><\/tr>
CTRL + P<\/td>Go to the previous virtual terminal.<\/td><\/tr>
CTRL + C<\/td>This command stops\/breaks a current terminal process. <\/td><\/tr>
CTRL + ALT + DEL<\/td>CTRL + ALT + DEL reboots or shuts down the process, It can be done without a logged-in user.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n

Text Commands<\/h3>\n\n\n\n
vi<\/td>Text editor that uses the least possible resources.<\/td><\/tr>
emacs<\/td>Text editor that allows users to browse the internet or do other operations at the same time.<\/td><\/tr>
head<\/td>Presents the first 10 lines of a document, if used without other options.<\/td><\/tr>
tail<\/td>Presents the last 10 lines of a document, if used without other options.<\/td><\/tr>
less<\/td>Presents text and allows scrolling ahead and beyond.<\/td><\/tr>
more<\/td>See one page at a time with this command.<\/td><\/tr>
cat<\/td>The command merges\/combines more files into one.<\/td><\/tr>
tac<\/td>The command merges\/combines more files into one, but they will be combined starting from the last.<\/td><\/tr>
wc<\/td>The command brings back word count in a file.<\/td><\/tr>
style<\/td>It is used to check readability, allowing tests to run on a file.<\/td><\/tr>
cmp<\/td>The use of the cmp command is to detect differences among the files.<\/td><\/tr>
diff<\/td>The diff command, however, determines the differences in texts in the files.<\/td><\/tr>
sdiff<\/td>Presents file contents in two separate columns.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n

Input\/Output<\/h3>\n\n\n\n
><\/td>The command is used to drop the information into a file. <\/td><\/tr>
<<\/td>The command is used to embed information in a text document. When used with more commands, it can gather information.<\/td><\/tr>
>><\/td>Adds data at the end of the document.<\/td><\/tr>
|<\/td>It is used to make the output of one command become the input of a different command. <\/td><\/tr>
Tee<\/td>The command drops the output to standard output.<\/td><\/tr>
&><\/td>Sends output to a distinct location in a  file.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n

Help<\/h3>\n\n\n\n
man<\/td>Uses an online manual to present a brief of a program.<\/td><\/tr>
info<\/td>Tells about a command more precisely.<\/td><\/tr>
whatis<\/td>Specifies a program in a single line.<\/td><\/tr>
apropos<\/td>The command browses the directory for strings.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n

Security<\/h3>\n\n\n\n
md5sum<\/td>This command is used to verify file integrity and authenticity.<\/td><\/tr>
mkpassword-1 10<\/td>Creates custom and random passwords containing 10 characters.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n

Remote administration<\/h3>\n\n\n\n
ssh<\/td>The command connects remotely to a certain system. It can be used to securely read and transfer information.<\/td><\/tr>
scp<\/td>The command is used to duplicate a file from another computer.<\/td><\/tr>
sftp<\/td>The command secure ftp is used to safely relocate online.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n

Conclusion<\/h2>\n\n\n\n

Linux command cheats sheet comes in handy when you’re trying to be as efficient and possible. It saves a lot of time and provides you with an extended number of options. Linux provides its users\u2019 security and reliability above all.<\/p>\n","protected":false},"excerpt":{"rendered":"

To have a full grip on your device, it is important to have a reliable operating system.  Managing memory, storage or CPU is a task<\/p>\n","protected":false},"author":3,"featured_media":9753,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rank_math_lock_modified_date":false,"footnotes":""},"categories":[121,49],"tags":[3879,1107,3878,3877,3876],"class_list":["post-9752","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-howtos","category-command-cheatsheets","tag-cheat-sheet","tag-linux","tag-linux-cheat-sheet","tag-linux-command","tag-linux-command-cheat-sheet","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-50","resize-featured-image"],"_links":{"self":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/9752"}],"collection":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/comments?post=9752"}],"version-history":[{"count":1,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/9752\/revisions"}],"predecessor-version":[{"id":9754,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/9752\/revisions\/9754"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/media\/9753"}],"wp:attachment":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/media?parent=9752"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/categories?post=9752"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/tags?post=9752"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}