Linux Commands With Examples PDF
Linux Commands With Examples PDF
com
Display ssh client version
$ ssh -v
0penSSR_3.9p1, 0penSSL 0.9.7a Ieb 19 2003
More ssh examples: 5 Basic Linux SSH Client Commands
5. sed command exampIes
When you copy a DOS fle to Unix, you could fnd \r\n in the end of each line. This example converts the DOS fle format to Unix fle format using sed command.
$sed `s1.$11` i1lename
Print fle content in reverse order
$ sed -n `1!0,h,$p` lheeeksluii.lxl
Add line number for all non-empty-lines in a fle
$ sed `1.1=` lheeeksluii.lxl ] sed `N, s1\n1 1`
More sed examples: Advanced Sed Substitution Examples
6. awk command exampIes
Remove duplicate lines using awk
$ aWk `!{$0 1n array} { array|$0], pr1nl )` lemp
Print all lines from /etc/passwd that has the same uid and gid
$aWk -I `.` `$3==$4` passWd.lxl
Print only specifc feld from a fle.
$ aWk `{pr1nl $2,$5,)` employee.lxl
More awk examples: 8 Powerful Awk Built-in Variables - FS, OFS, RS, ORS, NR, NF, FILENAME, FNR
7. vim command exampIes
Go to the 143rd line of fle
$ v1m +143 i1lename.lxl
Go to the frst match of the specifed
$ v1m +1search-lerm i1lename.lxl
Open the fle in read only mode.
$ v1m -R 1elc1passWd
More vim examples: How To Record and Play in Vim Editor
8. diff command exampIes
Ignore white space while comparing.
# d1ii -W name_l1sl.lxl name_l1sl_neW.lxl
2c2,3
< John 0oe --- > John M 0oe
> Jason Bourne
More diff examples: Top 4 File Difference Tools on UNIX / Linux - Diff, Colordiff, Wdiff, Vimdiff
9. sort command exampIes
Sort a fle in ascending order
$ sorl names.lxl
Sort a fle in descending order
$ sorl -r names.lxl
Sort passwd fle by 3rd feld.
$ sorl -l. -k 3n 1elc1passWd ] more
10. export command exampIes
To view oracle related environment variables.
$ exporl ] rep 0RACLE
declare -x 0RACLE_BASE="1u011app1oracle"
declare -x 0RACLE_R0ME="1u011app1oracle1producl110.2.0"
declare -x 0RACLE_ST0="med"
declare -x 0RACLE_TERM="xlerm"
To export an environment variable:
$ exporl 0RACLE_R0ME=1u011app1oracle1producl110.2.0
50 Most Frequently Used UNIX / Linux Commands (With... http://www.thegeekstuff.com/2010/11/50-linux-commands/
2 of 20 11/06/2013 11:55 PM
11. xargs command exampIes
Copy all images to external hard-drive
# ls *.p ] xars -n1 -1 cp {) 1exlernal-hard-dr1ve1d1reclory
Search all jpg images in the system and archive it.
# i1nd 1 -name *.p -lype i -pr1nl ] xars lar -cvzi 1maes.lar.z
Download all the URLs mentioned in the url-list.txt fle
# cal url-l1sl.lxl ] xars Wel -c
12. Is command exampIes
Display flesize in human readable format (e.g. KB, MB etc.,)
$ ls -lh
-rW-r----- 1 ramesh leam-dev 8.9M Jun 12 15.27 arch-l1nux.lxl.z
Order Files Based on Last Modifed Time (In Reverse Order) Using ls -ltr
$ ls -llr
Visual Classifcation of Files With Special Characters Using ls -F
$ ls -I
More ls examples: Unix LS Command: 15 Practical Examples
13. pwd command
pwd is Print working directory. What else can be said about the good old pwd who has been printing the current directory name for ages.
14. cd command exampIes
Use "cd -" to toggle between the last two directories
Use "shopt -s cdspell" to automatically correct mistyped directory names on cd
More cd examples: 6 Awesome Linux cd command Hacks
15. gzip command exampIes
To create a *.gz compressed fle:
$ z1p lesl.lxl
To uncompress a *.gz fle:
$ z1p -d lesl.lxl.z
Display compression ratio of the compressed fle using gzip -l
$ z1p -l *.z
compressed uncompressed ral1o uncompressed_name
23709 97975 75.87 asp-palch-rpms.lxl
16. bzip2 command exampIes
To create a *.bz2 compressed fle:
$ bz1p2 lesl.lxl
To uncompress a *.bz2 fle:
bz1p2 -d lesl.lxl.bz2
More bzip2 examples: BZ is Eazy! bzip2, bzgrep, bzcmp, bzdiff, bzcat, bzless, bzmore examples
17. unzip command exampIes
To extract a *.zip compressed fle:
$ unz1p lesl.z1p
View the contents of *.zip fle (Without unzipping it):
$ unz1p -l asper.z1p
Arch1ve. asper.z1p
Lenlh 0ale T1me Name
-------- ---- ---- ----
40995 11-30-98 23.50 META-TNI1MANTIEST.MI
32169 08-25-98 21.07 classes_
15964 08-25-98 21.07 classes_names
10542 08-25-98 21.07 classes_ncomp
18. shutdown command exampIes
Shutdown the system and turn the power off immediately.
# shuldoWn -h noW
Shutdown the system after 10 minutes.
50 Most Frequently Used UNIX / Linux Commands (With... http://www.thegeekstuff.com/2010/11/50-linux-commands/
3 of 20 11/06/2013 11:55 PM
# shuldoWn -h +10
Reboot the system using shutdown command.
# shuldoWn -r noW
Force the flesystem check during reboot.
# shuldoWn -Ir noW
19. ftp command exampIes
Both ftp and secure ftp (sftp) has similar commands. To connect to a remote server and download multiple fles, do the following.
$ ilp TP1hoslname
ilp> mel *.hlml
To view the fle names located on the remote server before downloading, mls ftp command as shown below.
ilp> mls *.hlml -
1ilplesl1iealures.hlml
1ilplesl11ndex.hlml
1ilplesl1olherlools.hlml
1ilplesl1samplereporl.hlml
1ilplesl1usae.hlml
More ftp examples: FTP and SFTP Beginners Guide with 10 Examples
20. crontab command exampIes
View crontab entry for a specifc user
# cronlab -u ohn -l
Schedule a cron job every 10 minutes.
*110 * * * * 1home1ramesh1check-d1sk-space
More crontab examples: Linux Crontab: 15 Awesome Cron Job Examples
21. service command exampIes
Service command is used to run the system V init scripts. i.e Instead of calling the scripts located in the /etc/init.d/ directory with their full path, you can use the service
command.
Check the status of a service:
# serv1ce ssh slalus
Check the status of all the services.
serv1ce --slalus-all
Restart a service.
# serv1ce ssh reslarl
22. ps command exampIes
ps command is used to display information about the processes that are running in the system.
While there are lot of arguments that could be passed to a ps command, following are some of the common ones.
To view current running processes.
$ ps -ei ] more
To view current running processes in a tree structure. H option stands for process hierarchy.
$ ps -eiR ] more
23. free command exampIes
This command is used to display the free, used, swap memory available in the system.
Typical free command output. The output is displayed in bytes.
$ iree
lolal used iree shared buiiers cached
Mem. 3566408 1580220 1986188 0 203988 902960
-1+ buiiers1cache. 473272 3093136
SWap. 4000176 0 4000176
If you want to quickly check how many GB of RAM your system has use the -g option. -b option displays in bytes, -k in kilo bytes, -m in mega bytes.
$ iree -
lolal used iree shared buiiers cached
Mem. 3 1 1 0 0 0
-1+ buiiers1cache. 0 2
SWap. 3 0 3
If you want to see a total memory ( including the swap), use the -t switch, which will display a total line as shown below.
ramesh@ramesh-laplop.~$ iree -l
lolal used iree shared buiiers cached
Mem. 3566408 1592148 1974260 0 204260 912556
50 Most Frequently Used UNIX / Linux Commands (With... http://www.thegeekstuff.com/2010/11/50-linux-commands/
4 of 20 11/06/2013 11:55 PM
-1+ buiiers1cache. 475332 3091076
SWap. 4000176 0 4000176
Tolal. 7566584 1592148 5974436
24. top command exampIes
top command displays the top processes in the system ( by default sorted by cpu usage ). To sort top output by any column, Press O (upper-case O) , which will display all
the possible columns that you can sort by as shown below.
Currenl Sorl I1eld. P ior W1ndoW 1.0ei
Selecl sorl i1eld v1a i1eld leller, lype any olher key lo relurn
a. PT0 = Process Td v. n0RT = 01rly Paes counl
d. uT0 = user Td y. WCRAN = Sleep1n 1n Iuncl1on
e. uSER = user Name z. Ilas = Task Ilas
........
To displays only the processes that belong to a particular user use -u option. The following will show only the top processes that belongs to oracle user.
$ lop -u oracle
More top examples: Can You Top This? 15 Practical Linux Top Command Examples
25. df command exampIes
Displays the fle system disk space usage. By default df -k displays output in bytes.
$ di -k
I1lesyslem 1K-blocks used Ava1lable use7 Mounled on
1dev1sda1 29530400 3233104 24797232 127 1
1dev1sda2 120367992 50171596 64082060 447 1home
df -h displays output in human readable form. i.e size will be displayed in GB`s.
ramesh@ramesh-laplop.~$ di -h
I1lesyslem S1ze used Ava1l use7 Mounled on
1dev1sda1 290 3.10 240 127 1
1dev1sda2 1150 480 620 447 1home
Use -T option to display what type of fle system.
ramesh@ramesh-laplop.~$ di -T
I1lesyslem Type 1K-blocks used Ava1lable use7 Mounled on
1dev1sda1 exl4 29530400 3233120 24797216 127 1
1dev1sda2 exl4 120367992 50171596 64082060 447 1home
26. kiII command exampIes
Use kill command to terminate a process. First get the process id using ps -ef command, then use kill -9 to kill the running Linux process as shown below. You can also use
killall, pkill, xkill to terminate a unix process.
$ ps -ei ] rep v1m
ramesh 7243 7222 9 22.43 pls12 00.00.00 v1m
$ k1ll -9 7243
More kill examples: 4 Ways to Kill a Process - kill, killall, pkill, xkill
27. rm command exampIes
Get confrmation before removing the fle.
$ rm -1 i1lename.lxl
It is very useful while giving shell metacharacters in the fle name argument.
Print the flename and get confrmation before removing the fle.
$ rm -1 i1le*
Following example recursively removes all fles and directories under the example directory. This also removes the example directory itself.
$ rm -r example
28. cp command exampIes
Copy fle1 to fle2 preserving the mode, ownership and timestamp.
$ cp -p i1le1 i1le2
Copy fle1 to fle2. if fle2 exists prompt for confrmation before overwritting it.
$ cp -1 i1le1 i1le2
29. mv command exampIes
Rename fle1 to fle2. if fle2 exists prompt for confrmation before overwritting it.
$ mv -1 i1le1 i1le2
Note: mv -f is just the opposite, which will overwrite fle2 without prompting.
mv -v will print what is happening during fle rename, which is useful while specifying shell metacharacters in the fle name argument.
$ mv -v i1le1 i1le2
50 Most Frequently Used UNIX / Linux Commands (With... http://www.thegeekstuff.com/2010/11/50-linux-commands/
5 of 20 11/06/2013 11:55 PM
30. cat command exampIes
You can view multiple fles at the same time. Following example prints the content of fle1 followed by fle2 to stdout.
$ cal i1le1 i1le2
While displaying the fle, following cat -n command will prepend the line number to each line of the output.
$ cal -n 1elc1lorolale.coni
1 1var1lo1blmp {
2 m1ss1nok
3 monlhly
4 creale 0660 rool ulmp
5 rolale 1
6 )
31. mount command exampIes
To mount a fle system, you should frst create a directory and mount it as shown below.
# mkd1r 1u01
# mounl 1dev1sdb1 1u01
You can also add this to the fstab for automatic mounting. i.e Anytime system is restarted, the flesystem will be mounted.
1dev1sdb1 1u01 exl2 deiaulls 0 2
32. chmod command exampIes
chmod command is used to change the permissions for a fle or directory.
Give full access to user and group (i.e read, write and execute ) on a specifc fle.
$ chmod u+rWx i1le.lxl
Revoke all access for the group (i.e read, write and execute ) on a specifc fle.
$ chmod -rWx i1le.lxl
Apply the fle permissions recursively to all the fles in the sub-directories.
$ chmod -R u+rWx i1le.lxl
More chmod examples: 7 Chmod Command Examples for Beginners
33. chown command exampIes
chown command is used to change the owner and group of a fle. \
To change owner to oracle and group to db on a fle. i.e Change both owner and group at the same time.
$ choWn oracle.dba dbora.sh
Use -R to change the ownership recursively.
$ choWn -R oracle.dba 1home1oracle
34. passwd command exampIes
Change your password from command line using passwd. This will prompt for the old password followed by the new password.
$ passWd
Super user can use passwd command to reset others password. This will not prompt for current password of the user.
# passWd uSERNAME
Remove password for a specifc user. Root user can disable password for a specifc user. Once the password is disabled, the user can login without entering the password.
# passWd -d uSERNAME
35. mkdir command exampIes
Following example creates a directory called temp under your home directory.
$ mkd1r ~1lemp
Create nested directories using one mkdir command. If any of these directories exist already, it will not display any error. If any of these directories doesn`t exist, it will create
them.
$ mkd1r -p d1r11d1r21d1r31d1r41
36. ifcong command exampIes
Use ifconfg command to view or confgure a network interface on the Linux system.
View all the interfaces along with status.
$ 1iconi1 -a
Start or stop a specifc interface using up and down command as shown below.
$ 1iconi1 elh0 up
50 Most Frequently Used UNIX / Linux Commands (With... http://www.thegeekstuff.com/2010/11/50-linux-commands/
6 of 20 11/06/2013 11:55 PM
$ 1iconi1 elh0 doWn
More ifconfg examples: Ifconfg: 7 Examples To Confgure Network Interface
37. uname command exampIes
Uname command displays important information about the system such as - Kernel name, Host name, Kernel release number,
Processor type, etc.,
Sample uname output from a Ubuntu laptop is shown below.
$ uname -a
L1nux ohn-laplop 2.6.32-24-ener1c #41-ubunlu SMP Thu Au 19 01.12.52 uTC 2010 1686 0Nu1L1nux
38. whereis command exampIes
When you want to fnd out where a specifc Unix command exists (for example, where does ls command exists?), you can execute the following command.
$ Where1s ls
ls. 1b1n1ls 1usr1share1man1man11ls.1.z 1usr1share1man1man1p1ls.1p.z
When you want to search an executable from a path other than the whereis default path, you can use -B option and give path as argument to it. This searches for the
executable lsmk in the /tmp directory, and displays it, if it is available.
$ Where1s -u -B 1lmp -i lsmk
lsmk. 1lmp1lsmk
39. whatis command exampIes
Whatis command displays a single line description about a command.
$ Whal1s ls
ls {1} - l1sl d1reclory conlenls
$ Whal1s 1iconi1
1iconi1 {8} - coni1ure a nelWork 1nleriace
40. Iocate command exampIes
Using locate command you can quickly search for the location of a specifc fle (or group of fles). Locate command uses the database created by updatedb.
The example below shows all fles in the system that contains the word crontab in it.
$ locale cronlab
1elc1anacronlab
1elc1cronlab
1usr1b1n1cronlab
1usr1share1doc1cron1examples1cronlab2enl1sh.pl.z
1usr1share1man1man11cronlab.1.z
1usr1share1man1man51anacronlab.5.z
1usr1share1man1man51cronlab.5.z
1usr1share1v1m1v1m721synlax1cronlab.v1m
41. man command exampIes
Display the man page of a specifc command.
$ man cronlab
When a man page for a command is located under more than one section, you can view the man page for that command from a specifc section as shown below.
$ man SECTT0N-NuMBER commandname
Following 8 sections are available in the man page.
General commands 1.
System calls 2.
C library functions 3.
Special fles (usually devices, those found in /dev) and drivers 4.
File formats and conventions 5.
Games and screensavers 6.
Miscellaneous 7.
System administration commands and daemons 8.
For example, when you do whatis crontab, you`ll notice that crontab has two man pages (section 1 and section 5). To view section 5 of crontab man page, do the following.
$ Whal1s cronlab
cronlab {1} - ma1nla1n cronlab i1les ior 1nd1v1dual users {v3}
cronlab {5} - lables ior dr1v1n cron
$ man 5 cronlab
42. taiI command exampIes
Print the last 10 lines of a fle by default.
$ la1l i1lename.lxl
Print N number of lines from the fle named flename.txt
$ la1l -n N i1lename.lxl
View the content of the fle in real time using tail -f. This is useful to view the log fles, that keeps growing. The command can be terminated using CTRL-C.
$ la1l -i lo-i1le
50 Most Frequently Used UNIX / Linux Commands (With... http://www.thegeekstuff.com/2010/11/50-linux-commands/
7 of 20 11/06/2013 11:55 PM
More tail examples: 3 Methods To View tail -f output of Multiple Log Files in One Terminal
43. Iess command exampIes
less is very effcient while viewing huge log fles, as it doesn`t need to load the full fle while opening.
$ less hue-lo-i1le.lo
One you open a fle using less command, following two keys are very helpful.
CTRL+I - iorWard one W1ndoW
CTRL+B - backWard one W1ndoW
More less examples: Unix Less Command: 10 Tips for Effective Navigation
44. su command exampIes
Switch to a different user account using su command. Super user can switch to any other user without entering their password.
$ su - uSERNAME
Execute a single command from a different account name. In the following example, john can execute the ls command as raj username. Once the command is executed, it
will come back to john`s account.
|ohn@dev-server]$ su - ra -c `ls`
|ohn@dev-server]$
Login to a specifed user account, and execute the specifed shell instead of the default shell.
$ su -s `SRELLNAME` uSERNAME
45. mysqI command exampIes
mysql is probably the most widely used open source database on Linux. Even if you don`t run a mysql database on your server, you might end-up using the mysql command
( client ) to connect to a mysql database running on the remote server.
To connect to a remote mysql database. This will prompt for a password.
$ mysql -u rool -p -h 192.168.1.2
To connect to a local mysql database.
$ mysql -u rool -p
If you want to specify the mysql root password in the command line itself, enter it immediately after -p (without any space).
46. yum command exampIes
To install apache using yum.
$ yum 1nslall hllpd
To upgrade apache using yum.
$ yum updale hllpd
To uninstall/remove apache using yum.
$ yum remove hllpd
47. rpm command exampIes
To install apache using rpm.
# rpm -1vh hllpd-2.2.3-22.0.1.el5.1386.rpm
To upgrade apache using rpm.
# rpm -uvh hllpd-2.2.3-22.0.1.el5.1386.rpm
To uninstall/remove apache using rpm.
# rpm -ev hllpd
More rpm examples: RPM Command: 15 Examples to Install, Uninstall, Upgrade, Query RPM Packages
48. ping command exampIes
Ping a remote host by sending only 5 packets.
$ p1n -c 5 ma1l.com
More ping examples: Ping Tutorial: 15 Effective Ping Command Examples
49. date command exampIes
Set the system date:
# dale -s "0113112010 23.59.53"
Once you`ve changed the system date, you should syncronize the hardware clock with the system date as shown below.
# hWclock -syslohc
50 Most Frequently Used UNIX / Linux Commands (With... http://www.thegeekstuff.com/2010/11/50-linux-commands/
8 of 20 11/06/2013 11:55 PM
What about the grep command? Amazingly powerful and helpful.
Thanks for all the other examples
35 bob kraus December 2, 2011 at 3:02 pm
Sorry about the previous grep comment - it was at the top of your 50 and I missed it. Dooh!
36 prabinseth December 7, 2011 at 3:32 am
i think it should be
tar -cvf archive_name.tar dirname/
instead of
tar cvf archive_name.tar dirname/
please correct me if i am wrong.
37 RO December 7, 2011 at 12:02 pm
Re tar options format from the man page:
The frst argument to tar should be a function; either one of the letters
Acdrtux, or one of the long function names. A function letter need not
be prefxed with "-",
I have not used a dash prefx for a long time (maybe since it is not allowed (?) in Solaris version, which is what I use more than Linux for work like that).
38 vinayak January 2, 2012 at 3:40 am
thanks you its very helpful,
39 sukhbir January 19, 2012 at 5:39 am
Great Job!!
40 MYZJ forever... January 30, 2012 at 3:46 am
thanks very much.
very excellent!!!!
41 Munish February 2, 2012 at 10:20 pm
well done
42 foyufugfogfopu February 3, 2012 at 12:13 am
great help
43 chandrashekar February 7, 2012 at 2:14 am
too good, frehsers can learn many things from this
44 hemant February 7, 2012 at 10:24 pm
thanks very much.
my - its very helpful,
45 shesh nath February 9, 2012 at 11:20 pm
this is very helpful suite according to me
46 Chamanlal February 17, 2012 at 9:34 am
Ramesh,
U r not a beginner bro..
47 moses chisanga February 23, 2012 at 8:37 am
This is very good., am a bigginer but i know that very soon will be very far
48 Ramesh Velauthem March 9, 2012 at 6:32 am
Really Very Usefull Commends
Thanks
49 pubudu March 18, 2012 at 9:55 am
Thanks Bro..awesome article very useful
50 Tb March 19, 2012 at 1:38 am
this is awsome for begineers and thanks for that.
51 abhi March 22, 2012 at 3:17 pm
Ramesh,
Nice list. very helpful.
Prabin seth,
you are right.
52 sanvi March 30, 2012 at 4:03 am
50 Most Frequently Used UNIX / Linux Commands (With... http://www.thegeekstuff.com/2010/11/50-linux-commands/
12 of 20 11/06/2013 11:55 PM
sudo command
53 moumita April 4, 2012 at 2:23 am
Hi
I have a question.How can I construct a pipe to execute the following?
Output of who should be displayed on the screen with value of total number of users who have logged in
displayed at the bottom of the list.
Thankx
Moumita
54 Rajendeer April 9, 2012 at 2:44 am
Thnks
55 pathum April 9, 2012 at 2:59 am
nice post i am really lucky to read this post,thanks..
56 Shradha April 9, 2012 at 12:53 pm
too good,getting more infornation,Thx a lot
57 Welly April 26, 2012 at 9:06 pm
thanks, really helpful.
58 Aslam May 3, 2012 at 6:59 am
Thanks
59 Vijay May 13, 2012 at 1:40 am
Very good explanation with examples. Can you provide just brief explanation about command eg, awk what is mean by awk ? (remembering purpose)
Thank you!
60 Ashok May 14, 2012 at 10:50 am
Thank u very much.
61 Prr Suresh May 24, 2012 at 7:03 am
Very useful to beginners like me. You might have included vim editor commands with its useful options and its subcommands
62 Vivek May 27, 2012 at 5:49 pm
Hi, Does anyone know how I can install UNIX on my laptop to practice unix commands?
Vivek.
63 Elex June 1, 2012 at 1:11 am
@vivek - Install one of the linux distribution on your system. Ubuntu will be good for you.
If you want dual boot, Install ubuntu with WUBI that is "windows based ubuntu installer".
If you do not want dual boot, install virtual box on your windows and install ubuntu into it. You can fnd free ubuntu iso fle on ubuntu-website.
64 Wes June 8, 2012 at 1:36 pm
A good reference. Thanks!
If you had links to each command on an index at the beginning, it would make it easier to drill down to each command.
65 b2 June 9, 2012 at 9:24 pm
hmmm,,,really nice collection for beginners.!!!
66 meena June 12, 2012 at 11:33 pm
& command, nice command using linux with example
67 charan nm June 22, 2012 at 6:39 am
very usefull
68 Ashok June 27, 2012 at 7:03 am
Its amazing, very useful to me.. Thank u so much
69 Anonymous June 27, 2012 at 11:14 pm
Hi Ramesh
Excellent
70 Mikkh July 3, 2012 at 2:04 pm
Yum and rpm only really apply to Red Hat/Fedora or rpm distributions - shouldn`t really be in this list IMO unless you also include the equally common apt for Debian
distributions, emerge for Gentoo etc etc.
A command I fnd useful is uname for fnding out various bits of system info but mostly by me for what kernel is currently installed
uname -r - display kernel number installed
uname -a - display all uname info in one string
uname -h - help on all switches available
50 Most Frequently Used UNIX / Linux Commands (With... http://www.thegeekstuff.com/2010/11/50-linux-commands/
13 of 20 11/06/2013 11:55 PM
71 sanjeev July 5, 2012 at 5:54 am
very nice collection for beginners...
72 david July 9, 2012 at 7:22 am
great collection. thanks alot
73 Ebby July 10, 2012 at 3:17 am
hi, Could please help me in getting the UNIX code to display a message box if the fle size is 85% full?
74 Ramesh July 17, 2012 at 3:23 am
awesome bro.
75 Yogesh Choudhary July 19, 2012 at 1:00 pm
Thank,it`s very help for freshers.
76 seyi July 23, 2012 at 8:20 pm
Work well done.
I wish to know if there is a command that can be used to increase the space allocated to an application (e.g a simulator). Help with it.
77 Aravind Reddy Kaithy July 25, 2012 at 8:59 am
Very good list, update more..
78 satish September 6, 2012 at 12:58 pm
thank you so much sir.......
79 OM PRAKASH SINGH September 9, 2012 at 1:19 pm
Hi Dear
I found these commands are very useful and now I am studying. Actually where I am working there Linux, AIX6 and Solaris 10 server is used. I wanted to know how to
connect tata photon in Red hat linux 5. Please help me. I shall remain thankful to
you forever.
thanks
80 pommuraj September 11, 2012 at 10:22 pm
thank you.
81 Ramachandra September 12, 2012 at 1:29 am
It is very use useful to all basic level unix guys....Good
82 Durjoy September 27, 2012 at 12:01 am
Thank U So much...... It is very useful to us.. More information expected..
83 Ramesh September 27, 2012 at 10:32 am
Thanks a lot. If you write another article, please include the below commands.
netstat
tcpdump
route
ntpq
nslookup, dig, host
mail
uptime
84 waleed butt October 11, 2012 at 12:44 am
this is very useful..i learn many commands of linux from this.Thanx
85 snsn October 16, 2012 at 5:28 am
Thanks a lot....
86 vinayak October 17, 2012 at 5:26 am
More useful commands:
echo
pwd
l
whoami
87 MMR October 29, 2012 at 10:14 pm
Great Collection
Thanks
88 farhad November 2, 2012 at 12:46 am
thanks. very good and usefull
89 Subrat N November 15, 2012 at 10:45 am
Really, Great Collection....!!!
Keep it up.
50 Most Frequently Used UNIX / Linux Commands (With... http://www.thegeekstuff.com/2010/11/50-linux-commands/
14 of 20 11/06/2013 11:55 PM
90 Rahul SIngh November 28, 2012 at 1:15 am
how to search in .tgz fle without untar
91 Hareesh December 10, 2012 at 5:54 am
very useful for us....
92 Green December 17, 2012 at 6:36 am
Hi Im new for unix..
Can any one help me out how the sed and awk command working in the example 5 and 6 to get reverse order and Remove duplicate lines using awk.
93 rajendar December 19, 2012 at 3:43 am
i want to know the command for 'lm`
94 sameer December 24, 2012 at 3:02 am
hi,
Thank you for posting useful commands.
95 mahesh bomble January 4, 2013 at 4:34 am
A post for beginers..
96 riten January 8, 2013 at 3:54 am
pls send me how to create log fle(tape wirrten is normal fle, normal fle format only not tar fle format)
97 ismail January 10, 2013 at 1:02 pm
'pwd` print working directory
98 tulasi January 21, 2013 at 5:01 am
thank you
very useful
99 ramac January 23, 2013 at 11:27 pm
very useful & thanks
100 Anoop January 24, 2013 at 5:47 pm
Excellent list .Thank you
101 Corbeaux January 26, 2013 at 9:57 pm
These are often useful to me:
ps -fu user_name
kill `pidof process_name`
ll -tr `locate fle_name`
rsync -avzp -e ssh /local/path/fle username@remote_server:/remote/path/.
102 riten January 28, 2013 at 4:29 am
pls anyone write commond how to create log fle (text fle), fle written by normal format in 3592 tape.
103 sinjish January 29, 2013 at 4:55 am
Good .really helpful..
104 shresta February 4, 2013 at 5:42 am
thanks a lot it helped me:-)
105 amit February 5, 2013 at 8:40 am
1.for replacement of string in single fle
2. for replacemnt of stirng without opening the fle
106 Adam February 7, 2013 at 8:37 am
if you include rpm and yum, how about apt/dpkg and pacman?
107 octopus February 11, 2013 at 6:07 pm
another really common one:
# ln -s target /path/to/link/to/
108 riten February 11, 2013 at 11:56 pm
Mutiple fles write in tape how to create log fle
109 Milan February 14, 2013 at 12:54 am
Good site for learning a gist of commands.
Thanks
110 sudhakar reddy February 15, 2013 at 5:40 am
Really this site helps us a lot ..!
111 raj February 25, 2013 at 11:45 am
50 Most Frequently Used UNIX / Linux Commands (With... http://www.thegeekstuff.com/2010/11/50-linux-commands/
15 of 20 11/06/2013 11:55 PM
very very imp and usefull commands thank you
112 Harikrishna February 26, 2013 at 11:38 pm
Hi
Thanks for thinking and sharing knowledge about collection of things required for Unix user.
113 Ravi March 3, 2013 at 12:41 am
thankyou very much dude ...this really help me in making my college assignment......thankyou once again
114 deepak March 6, 2013 at 11:09 am
Very precise and useful like me beginners. Want to see more commands.
115 pGwtech March 7, 2013 at 12:59 pm
A simple thank you.
116 Anonymous March 8, 2013 at 9:06 am
list is awesome. Thank you
117 Shailendra March 10, 2013 at 3:34 pm
It`s ok not bad for beginer
118 Neeraj March 13, 2013 at 1:02 am
hi,
i m new, this may help me i think, I would like to know the similarity of windows / dos commands with linux / unix commands.
It would be helpful to those who want to use linux in place of windows / dos.
119 siva sankar vara prasad March 15, 2013 at 5:40 am
it is so nice & good for new lernars
120 A.Nagaraju March 23, 2013 at 1:11 am
good !
121 Krishna March 29, 2013 at 12:35 am
Good "
122 meenu tiwari April 14, 2013 at 2:01 am
thanks
123 Aditya Rajawat April 24, 2013 at 3:43 am
Good list.
124 Deep April 26, 2013 at 10:12 pm
This is a really nice article for everyone. I sent the link to every friend who know Unix/Linux. Thanks a lot!
125 Deep April 26, 2013 at 10:13 pm
This is a really nice article for beginners. Thanks
126 Mahesh May 8, 2013 at 3:46 am
Thanks,
This is very help full for beginners,Keep on posting few more.
127 Subba Reddy May 10, 2013 at 2:12 am
Good Work , very helpful to Freshers.
128 dharamvir May 15, 2013 at 3:54 am
great....
129 Anju May 16, 2013 at 2:28 am
good
130 Samah May 16, 2013 at 2:54 am
I am a beginner, this is really very helpful , thank you.
131 Tarakraj bist May 18, 2013 at 8:49 pm
this is helpful for me
132 KAnagaraj May 19, 2013 at 6:49 am
How can i install exe fle in linux (for ex-NHM Writer 1511.exe)
133 Curt May 22, 2013 at 6:37 am
Thanks for the very useful information.
I`m currently trying to grasp the 'fnd` command.
I`d like to see an explanation and examples.
'man fnd` is a huge beast and mostly incomprehensible to someone like me.
50 Most Frequently Used UNIX / Linux Commands (With... http://www.thegeekstuff.com/2010/11/50-linux-commands/
16 of 20 11/06/2013 11:55 PM
EmaiI Me : Use this Contact Form to get in touch me with your comments, questions or suggestions about this site. You can also simply drop me a line to say hello!.
Follow us on Google+
Follow us on Twitter
Become a fan on Facebook
Copyright 2008-2013 Ramesh Natarajan. All rights reserved l Terms of Service
50 Most Frequently Used UNIX / Linux Commands (With... http://www.thegeekstuff.com/2010/11/50-linux-commands/
20 of 20 11/06/2013 11:55 PM