Posts Tagged ‘Commands’

We do so much technical and serious stuffs. Fun is equally important. Following are few cool stuffs I found, so sharing with yo guys…

Fork Bomb

Type the following in the terminal (at your own risk). This repeatedly creates the child process.

:(){ :|:& };:

This is same as the following in C.

while (true) {

Screenshot from 2013-09-23 01:34:30

yes command

This command prints the parameter passed repeatedly until interrupted (ctrl+c).

#yes print this line

Screenshot from 2013-09-23 01:15:08


Listen to the e-voice. Turn on your speakers before you execute this command. (To install espeak, #apt-get install espeak).

#espeak “Hello there, how are you”

Screenshot from 2013-09-23 02:19:17


How many have played with the batch file and were crazy about the matrix rain as the startup guys in windows? Why did we stop this in with Linux? Try cmatrix… (To install cmatrix, #apt-get install cmatrix).

#cmatrix -b (this is cool.)

Screenshot from 2013-09-23 00:58:06


Like fire? (To install aafire, #apt-get install aafire).


Screenshot from 2013-09-23 01:00:27


Love cute graphic? Try oneko (To install, #apt-get install oneko).


Screenshot from 2013-09-23 00:59:14


I know, funny name… But this is used for graphical word art. (To install, #apt-get install toilet).

#toilet ginger

Screenshot from 2013-09-23 01:04:47


ASCII cow art. Fans of cDc and people used to metasploit framework would be used to this cow… (To install, #apt-get install cowsay).

#cowsay Ahoy

Screenshot from 2013-09-23 01:07:00


Pure graphics implementation. (To install, #apt-get install xcowsay).

#xcowsay linux

Screenshot from 2013-09-23 01:10:35

funny manpages

This is damn funny!! Install this (#apt-get install funny-manpages). And try the following list…

grope, egrope, fgrope 

#man celibacy

Here is the screenshot for #man celibacy
Try others, it is really funny!!

Screenshot from 2013-09-23 02:15:50

Complimentary :P

Screenshot from 2013-09-23 01:22:41

And also…, this :

Online Command line fm for geeks…, do check it out…


Basic Unix/Linux

Posted: July 25, 2013 in LAMP, Linux, Unix/Linux
Tags: , ,

Linux is primarily used through a command line interface. Throughout we will use command line interface. Open a terminal shell.

Screenshot from 2013-07-25 23:05:22


$ -> indicates that you have logged in as a normal user.

# -> indicates that you have the root access or administrative privilege.


~ is your home directory.

. is the current director.

.. is the directory above the current directory.

man is an interface to the on-line reference manual.

$man command_name ; $man man #this gives the manual for the command man (anything after # is considered as comment.)

who Logs of users.


whoami Current user who has been logged in.


pstree Process tree.


top CPU usage.


ps Current running processes. ps -a, displays all the process that are running, including the system processes.

$ps ; $ps -a

kill Terminate the process using kill command.

$kill process_id ; $kill 1880

uptime How long the system has been running?


last Login history


cd Change directory.

$cd directory_name ; $cd /home/monsi/Desktop

mkdir Make a new directory.

$mkdir directory_name ; $mkdir new_dir

pwd Print working directory. Where am I?


echo Print the given string.

$echo “string to be printed” ; $echo “Ahoy!”

which Gives the location of the command.

$which command_name ; $which pwd

type Tells whether the mentioned command is a shell built in or user defined.

$type command_name ; $type cd

env Prints current environment variables in the shell.


ls List the files in the current directory. ls command with options are really useful. ls -a, ls  -l and ls -F.

$ls ; $ls -a ; $ls -l; $ls -F

mv Move the file. This command serves as rename. mv -i is useful for interactive, which prompts before overwriting another file.

$mv file_name new_file_name ; $mv foo foo1 #renames foo as foo1

rm Remove. rm -r, can be used to recursively remove files., in other words, remove a directory.

$rm file_name ; $rm foo

cp Copy the file/directory.

$cp file_name path ; $cp foo /home/monsi/Desktop/foo1

ln Create a link to another file. This is like shortcut in Windows. ln creates hard link, ln -s creates symbolic link.

$ln file_name link_name ; $ln foo foo2

df Disk free. This command indicates how much disk space is being used.


du Disk usage. This command indicates how big are the files in the current directory.


grep Meant for pattern matching., or find a pattern/string within a file. This is a powerful command.

$grep pattern file_name_in_which_pattern_needs_to_be_searched ; $grep monsi /etc/passwd

locate Find all files on the computer with names matching the given patter/string. This is similar to find command.

$locate foo

more, less Page through a file without using an editor. Example,

$locate config | more

uname Basic system description.


ifconfig Configure a network interface.


netstat Prints network statistics (which includes, network connections, routing tables, interface statistics, masquerade connections and multicast memberships)