10 Linux Terminal Basic Commands
Ours is an era of extreme desktop environments, it is true, fluid graphics, bright colors and so on and so forth. However, the old command line from time to time (actually not so often …) back to peep between the user’s needs, even less experienced.
Understanding the Linux terminal means having a direct approach on your PC as well as solve problems and situations, often, access to remote systems via ssh or embedded such as routers, access points etc..
But let’s go down to it, here’s a roundup of commands not too famous but very, very useful:
PS
The PS command stands for “process status”, and shows everything to do with the processes, as a kind of task manager. There are many variations of PS, such as PS AUX, which is a list of all running processes. This command, used together with the kill command allows you to terminate processes.
RM-RF
This command is very powerful, as capable of destroying entire systems in case of error. Nevertheless, it is very useful for quickly deleting entire directories.
Think of a folder containing thousands of files on a web hosting space: removing ftp require several minutes or hours, this command through ssh, however, the same takes a second.
For example rm-rf photos deletes the directory “pictures”.
Pstree
The command pstree is another variant of the PS command, and is very useful for those who often work on different machines and servers.
If you need to get a glimpse of the various programs running, and what processes are dependent on other processes, pstree is definitely more useful and organized a regular PS AUX.
HISTORY
We say that a directory suddenly disappears randomly from a user’s computer and we can not tell if someone has touched the terminal. It ‘can use the history command | grep-i command, replacing “command” with the command of which we want to analyze the previous use.
Otherwise you can type only history to have a general overview of all the last commands typed.
APROPOS
The command apropos is used to obtain information from the terminal.
It ‘can get information about images, documents and other such operations, or be suggested (and what type commands) can be used on a particular folder by simply typing apropos folder.
LS
LS is probably the simplest and most used command in a terminal. This is why you see the contents of a folder. LS-LH is also very useful as it displays the sizes of files in a folder in a human readable format rather than opens expressed in bytes.
GREP
The grep command is used mainly to apply a filter so as to restrict what interests us most of the output terminal. And ‘commonly used to find occurrences of a word or words in a series of files.
FIND
The find command is incredibly powerful, especially when used by an administrator.
This command can be used to find anything in the system, and it’s really easy to use.
CRON
CRON is a command that allows you to plan operations, such as running a program, script or anything.
The cron syntax is as follows: minute | hour | day | month | week + command.
You can specify each time component as an integer (eg 1 to 12 for months), or insert one or more components of the character “*” will be interpreted as a wildcard (ie, “*” in the month means that the command to activate a given day and at a time in every month).
For example, if the septum only minutes and hours, it means that every day at the same time you will run the operation that set.
WGET
WGET is a very powerful command. And ‘certainly one of the most useful and versatile for download.
It can be used for example to download even when things are not properly before the PC Program.
There is a huge amount of commands that can be used in combination with wget, and all are designed to make life easier.
A very interesting feature is that WGET to download an offline copy of a website, using the WGET command-M http://www.website.com/
