40 Most Frequently Used UNIX / Linux Commands (part-1)

by Ismail.EL
0 comment


40 Most Frequently Used UNIX / Linux Commands (part-1)

In this article i introduce you with examples a ten most frequently used commands in Linux / UNIX.

in general the lesson is divided into five parts,in each part I give you 10 command:

1. wget command examples :

this is a quick and effective method to download anything from the interent

example:

you can download and store it with a different name (withe option “o”).

wget  -o image_name.jpg http://img.fondosypantallas.com/wp-content/uploads/2008/04/1600ct_3002.jpg

2. date command examples :

Date command is helpful to display date in several formats. It also allows you to set systems date and time.

example:

Set the system date:

3. ping command examples :

About ping:
Sends ICMP ECHO_REQUEST packets to network hosts.

ping is a simple way to send network data to, and receive network data from, another computer on a network.

example:

4. su command examples :

The su command is used to become another user during a login session. Invoked without a username, su defaults to becoming the superuser.

example:

Switch to a different user account using su command. Super user can switch to any other user without entering their password.

* to execute a command in a user account without leaving the current session:

5. less command examples :

less is very efficient while viewing huge log files, as it doesn’t need to load the full file while opening.
example

6. tail command examples :

The tail command in unix or linux system is used to print the last N lines from the file on the terminal. Tail command is especially used with log files to read the last few lines to know about the error messages. 

* Print the last 10 lines of a file by default:

* To print N number of lines from the file named filename.txt:

* To view the content of the file in real time using tail -f. The command can be terminated using CTRL-C.

7. man command examples :

On Linux and other Unix-like operating systems, man is the interface used to view the system’s reference manuals.

example:

Display the man page of a specific command.

CAT(1)                                                          User Commands                                                         CAT(1)
NAME
       cat – concatenate files and print on the standard output
SYNOPSIS
       cat [OPTION]… [FILE]…
DESCRIPTION
       Concatenate FILE(s), or standard input, to standard output.
       -A, –show-all

8. locate command examples :

The locate command is often the simplest and quickest way to find the locations of files and directories on Linux and other Unix-like operating systems.

example:

The example below shows all files in the system that contains the word log in it.

9. whatis command examples :

whatis displays short manual page descriptions.

example:

10. whereis command examples :

The whereis command is used to locate the binary, the source code and the online manual page for any specified program.

example:

Find out where a specific Unix command exists You can execute the following command.

40 Most Frequently Used UNIX / Linux Commands (part-2)

5. Conclusion

In this post, i have explained a 40 Most Frequently Used UNIX / Linux Commands (part-1)
If you have any questions or feedback, feel free to leave a comment.
As always, if you found this post useful, then click like and share it 🙂

21280cookie-check40 Most Frequently Used UNIX / Linux Commands (part-1)

Related Posts

Leave a Comment