This is a continuation of my previous article ^^
grep
Global regular expresion parse or grep is command to search for files containing text with the criteria that you specify.
$ Grep <teks> <file>
For example, to search for files containing text "marginal" in the current directory:
$ Grep marginal <file>
diferent.doc: Note: The words used in the vast marginal economics
prob.rtf: by function and function marginal results if the marginal cost function
prob.rtf: if the marginal cost and marginal results are known then the total cost.
gzip
This is a version of GNU zip compression software,the functions are to compress a file. The syntax is very simple:
$ Gzip <FileName>
However you can give certain parameters if you need a better file compression, please see its manual page. See also tar file, unzip and zip.
halt
This command can only be run by the super user or You must be logged in as root. This command tells the kernel in order to shut down the system or shutdown.
hostname
To display the host or domain name system and can also be used to set the hostname of the system.
[flory @ localhost docs] $ hostname
localhost.localdomain
kill
This command will send a signal to a process that we have set. The goal is to stop the process.
$ Kill <signal> <pid>
PID is the process number that will terminate.
less
Its function as more command.
login
To log in to the system by entering a login ID or can also be used to switch from one user to another user.
logout
To get out of the system.
ls
Displays the contents of a directory like the dir command in DOS. You can use several options are provided to adjust the zoom on the screen. When you run this command without any option will display all nonhidden file (file without the leading dot) in the alphabet and the screen widens to fill the column. Option-la means to display all files / all including hidden files (files with a dot prefix) with a long format.
man
To display the manual page or text that explains in detail how to use a command. This command is useful if at any time you forget or do not know the functions and how to use a command.
$ Man <command>
mesg
This command is used by the user to give permission to another user terminal displays the message screen. For example, you mesg y position then other users can display a message on your screen to write or talk.
$ Mesg mesg y or n
Use mesg n if you do not want to be bothered with the display messages from other users.
mkdir
Make a new directory, the same as md command in DOS.
0 comments:
Post a Comment