Less Known Commands and Facts: Linux

Need some questions to impress your office colleagues? Or simply going to take a telephonic interview? Below are some less know Linux commands:

1. grep -e and grep -E

The -e option to grep simply says that the following argument is the regular expression

e.g. :  grep -e 'apple.*mango' -r -l

The -E option changes the regular expressions from 'basic' to 'extended'. It can be used with -e:

grep   -E -e "[0-9]{3}-[0-9]{3}-[0-9]{4}" pineapple.txt


2. DSH: ( The Distributed Shell )

A program which runs a single command on multiple computers at the same time.

Simply put the list of servers in /etc/dsh/machines.list and run command like:

#dsh -a -c -- uname -a ( This will run on all machines )

3. CSSH (ClusterSSH )

CSSH is a client program that allows systems administrators to login to one or many remote ssh servers and perform tasks from one central location using either straight command line or configuration files

4. MTR 

mtr combines the functionality of the traceroute and ping in a single tool.

5. DIG

 It can query DNS name servers for your DNS lookup related tasks.

e.g. dig funability.blogspot.com

6. Netcat

Netcat is a computer networking service for reading from and writing to network connections using TCP or UDP

echo -n "$1" | nc -4u -w1 $HOST $PORT.

You can even transfer a file using this.

 7. Http Debuggers:

 
Allows you to monitor, trace, debug and analyze HTTP/HTTPS traffic in real-time. Software like

HTTP Analyzer will be an example of such software


  
8. Screen Command

Screen command offers the ability to detach a long running process (or program, or shell-script) from a session and then attach it back at a later time.
 

e.g. :screen unix-command-to-be-executed When the command is executing, press CTRL+A followed by d to detach the screen.

 

9. Tmux

It is similar to screen as it lets you run numerous TTY’s in the same terminal window.It can allow you to run different panes in same terminal.
 


10.Interprocess Communication Mechanisms:

Processes communicate with each other and with the kernel to coordinate their activities. Linux supports a number of Inter-Process Communication (IPC) mechanisms. Signals and pipes are two of them but Linux also supports the System V IPC mechanisms named after the Unix TM release in which they first appeared.


Signals are one of the oldest inter-process communication methods used by Unix TM systems.
   

11. Chef:
Configuration management to your entire infrastructure. Cookbooks and recipes automate common infrastructure tasks

 


Comments