apropos searches system commands for a given keywords and displays the result on the standard output.
Syntax:
apropos <keyword>
example :
apropos scan - Gives the output like
clamscan (1) - scan files and directories for viruses
gawk (1) - pattern scanning and processing language
memchr (3) - scan memory for a character
quotacheck (8) - scan a filesystem for disk usage, create, check and repair quota files
scandir (3) - scan a directory for matching entries
scanf (3) - input format conversion
scanf (3p) - convert formatted input
ssh-keyscan (1) - gather ssh public keys
strchr (3p) - string scanning operation
Sunday, January 2, 2011
Saturday, January 1, 2011
alias command
It can be used as an alias(short form) of a command or command with options and arguments.The alias command can be useful if you want to create a 'shortcut' to a command.
Simple examples:
1) alias ls=ls -l
In this case when we give the command ls on terminal it gives the output of ls -l (ie ls with option -l)
2) alias copy="cp /source/path /destination/path"
In this case when we give the copy alias name on terminal it will copy file from predefined source to destination
3)alias disk="df -h"
It will give the output of disk usage in human readable format when giving disk alias rather than df -h
Syntax(Format):
alias <alias option> alias_name="command <with argumens: it is optional>"
alias [-p] [alias name=value]
Alias with no arguments or with the -p option prints the list of aliases in the form alias name=value on standard output.
When arguments are supplied, an alias is defined for each name whose value is given.
-l List the names of all readline functions.
-p Display readline function names and bindings in such a way that they can be re-read.
-P List current readline function names and bindings.
-v Display readline variable names and values in such a way that they can be re-read.
-V List current readline variable names and values.
-s Display readline key sequences bound to macros and the strings they output in such a way that they can be re-read.
-S Display readline key sequences bound to macros and the strings they output.
Simple examples:
1) alias ls=ls -l
In this case when we give the command ls on terminal it gives the output of ls -l (ie ls with option -l)
2) alias copy="cp /source/path /destination/path"
In this case when we give the copy alias name on terminal it will copy file from predefined source to destination
3)alias disk="df -h"
It will give the output of disk usage in human readable format when giving disk alias rather than df -h
Syntax(Format):
alias <alias option> alias_name="command <with argumens: it is optional>"
alias [-p] [alias name=value]
Alias with no arguments or with the -p option prints the list of aliases in the form alias name=value on standard output.
When arguments are supplied, an alias is defined for each name whose value is given.
alias options :
-l List the names of all readline functions.
-p Display readline function names and bindings in such a way that they can be re-read.
-P List current readline function names and bindings.
-v Display readline variable names and values in such a way that they can be re-read.
-V List current readline variable names and values.
-s Display readline key sequences bound to macros and the strings they output in such a way that they can be re-read.
-S Display readline key sequences bound to macros and the strings they output.
creation of aliases with alias command is temporary for that session. To make alias permanent you need to edit your ~/.bashrc file and add line similar to this:
alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'
Solutions for technical issues
Click here to find common linux technical issues and its solutions
Tuesday, December 28, 2010
Important Linux/Unix commands
Click here to find more linux commands
Subscribe to:
Posts (Atom)