XARGS - build and execute command lines from standard input or on the output of previous command
FORMAT
xargs [-0prtx] [-E eof-str] [-e[eof-str]] [--eof[=eof-str]] [--null] [-d delimiter] [--delimiter delimiter] [-I replace-str] [-i[replace-str]] [--replace[=replace-str]] [-n max-args] [--max-args=max-args] [--arg-file=file] [command [initial-arguments]]
DESCRIPTION
xargs reads items from the standard input line by line, delimited by blanks (which can be protected with double or single quotes or a backslash) or newlines, and executes the command (default is /bin/ech
...
Read more »
|
Its very strange and delightful to see that when you press F9 in side vi editor, a backup copy of the file is created or when you press F8, the xml file is formatted in readable form.
It is always useful when we map certain keys usually function keys inside VI editor to make our work easy.
In this very article, we shall learn how to map keyboard keys inside vi editor to execute certain commands.
The basic syntax to create mapping is:
cmd attribute lhs rhs
|
CUT- Remove sections from each line of files vertically. This command basically cuts the file vertically and returns a certain field from each line from a file.
FORMAT
cut [OPTION]... [FILE]...
DESCRIPTION
Print selected parts of lines from each FILE to standard output.
Mandatory arguments to long options are mandatory for short options too.
-b, --bytes=LIST
select only these bytes
We are using below file for demo:
...
Read more »
|
pidstat - Report statistics for Linux tasks/processes.
FORMAT
pidstat [ -C comm ] [ -d ] [ -I ] [ -p { pid | SELF | ALL } ] [ -r ] [ -t ] [ -T { TASK | CHILD | ALL } ] [ -u ] [ -V ] [ -w ] [ interval [ count ] ]
DESCRIPTION
The pidstat command is used for monitoring individual tasks currently being managed by the Linux kernel.
It writes to standard output activities for every task selected with option -p or for every task managed by the Linux kernel if option -p ALL has been used.
Not selecting any tasks is equivalent to specifying -p ALL but only active tasks (tasks with non-zero statistics values)
...
Read more »
|
grep, egrep, fgrep - print lines matching a pattern given
FORMAT
grep [options] PATTERN [FILE...]
grep [options] [-e PATTERN | -f FILE] [FILE...]
DESCRIPTION
Grep searches the named input FILEs (or standard input if no files are named, or the file name - is given) for lines containing a match to the given PATTERN.
By default, grep prints the matching lines.
In addition, two variant programs egrep and fgrep are available.
- Egrep is the same as grep -E.
- Fgrep is the same as grep -F.
...
Read more »
|
dmesg - To display or control the kernel ring buffer
Command syntax
dmesg [ -c ] [ -n level ] [ -s bufsize ]
DESCRIPTION
dmesg is used to examine or control the kernel ring buffer. It display the status of device drivers loaded into kernel when the system boots up.
After boot up also, if a new hardware peripheral is connected dmesg displays the message about that peripheral.
The message could be error message like device not connected or a success message.
It is helpful in analysing and debugging any hardware related issu
...
Read more »
|
FORMAT:
ethtool ethX
ethtool -h|--help
ethtool -a|--show-pause ethX
ethtool -i|--driver ethX
ethtool -S|--statistics ethX
ethtool -s ethX [speed 10|100|1000|2500] [duplex half|full] [port tp|aui|bnc|mii] [autoneg on|off] [advertise N] [phyad N] [xcvr internal|external] [wol p|u|m|b|a|g|s|d...] [sopass xx:yy:zz:aa:bb:cc] [msglvl N] ethtool -f|--flash ethX FILE [N]
DESCRIPTION
ethtool is used for querying
...
Read more »
|
Find command: A powerful utility to search for a file or directory on a target directory.
Description:
find searches the directory tree rooted at each given file name by evaluating the given expression from left to right, according to the rules of precedence (see section OPERATORS), until the outcome is known (the left hand side is false for and operations, true for or), at which point find moves on to the next file name.
Category:
Open System-Linux
|
Views:
1631
|
Added by:
shanky
|
Date:
2014-11-07
|
|
xmllint - command line XML tool
FORMAT
xmllint [--format --dtdvalid ..]{XML-FILE(S)... -}
For help: xmllint --help
DESCRIPTION
- The xmllint program parses one or more XML files, specified on the command line as XML-FILE (or the standard input if the filename provided is - ).
- It prints various types of output, depending upon the options selected. It is useful for detecting errors both in XML code and in the XML parser itself.
Examples:
...
Read more »
|
xmlwf - Determines if an XML document is well-formed. It is non- validating parser.
FORMAT
xmlwf [ -s] [ -n] [ -p] [ -x] [ -e encoding] [ -w] [ -d output-dir] [ -c] [ -m] [ -r] [ -t] [ -v] [ file ...]
DESCRIPTION
xmlwf uses the Expat library to determine if an XML document is well-formed. It
| |