Home » Open System-Linux
« 1 2 3 4 5 6 7 »

XARGS - build and execute command lines from standard input or on the output of previous command


       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]]


       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 »

Category: Open System-Linux | Views: 1407 | Added by: shanky | Date: 2014-12-24 | Comments (0)

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

  • cmd           :map, :map!, :unmap, :unmap!,
  • a ... Read more »
Category: Open System-Linux | Views: 1183 | Added by: shanky | Date: 2014-12-22 | Comments (0)

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.

       cut [OPTION]... [FILE]...

       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 »
Category: Open System-Linux | Views: 1166 | Added by: shanky | Date: 2014-12-16 | Comments (0)

pidstat - Report statistics for Linux tasks/processes.

       pidstat [ -C comm ] [ -d ] [ -I ] [ -p { pid | SELF | ALL } ] [ -r ] [ -t ] [ -T { TASK | CHILD | ALL } ] [ -u ] [ -V ] [ -w ] [ interval [ count ] ]

       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 »

Category: Open System-Linux | Views: 1571 | Added by: shanky | Date: 2014-12-05 | Comments (0)

grep, egrep, fgrep - print lines matching a pattern given

       grep [options] PATTERN [FILE...]
       grep [options] [-e PATTERN | -f FILE] [FILE...]

       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 »
Category: Open System-Linux | Views: 1199 | Added by: shanky | Date: 2014-12-03 | Comments (0)

dmesg - To display or control the kernel ring buffer

Command syntax
       dmesg [ -c ] [ -n level ] [ -s bufsize ]

       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 »

Category: Open System-Linux | Views: 1482 | Added by: shanky | Date: 2014-11-25 | Comments (0)


       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]

       ethtool is used for querying ... Read more »

Category: Open System-Linux | Views: 1226 | Added by: shanky | Date: 2014-11-19 | Comments (0)

Share on Google+

Find command: A powerful utility to search for a file or directory on a target directory.

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: 1237 | Added by: shanky | Date: 2014-11-07 | Comments (0)

xmllint - command line XML tool

       xmllint [--format --dtdvalid ..]
{XML-FILE(S)... -}

For help:       xmllint --help



  • 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.


... Read more »

Category: Open System-Linux | Views: 3028 | Added by: shanky | Date: 2014-10-26 | Comments (0)

Share on Google+

xmlwf - Determines if an XML document is well-formed. It is non- validating parser.

       xmlwf  [ -s]  [ -n]  [ -p]  [ -x]  [ -e encoding]  [ -w]  [ -d output-dir]  [ -c]  [ -m]  [ -r]  [ -t]  [ -v] [ file ...]

       xmlwf uses the Expat library to determine if an XML document is well-formed.  It

Category: Open System-Linux | Views: 2145 | Added by: shanky | Date: 2014-10-25 | Comments (0)