Linux Commands   Copyrights | SkilledInterns.com
ls – shows list of files & directories• fanaticgeek:~ gaurangaggarwal$ mkdir  shishpal• mkdir – creates a new directory   ...
• fanaticgeek:~ gaurangaggarwal$ cd shishpal/• cd – change directory                  Copyrights | SkilledInterns.com
• fanaticgeek:shishpal gaurangaggarwal$ ls• ls shows all the files and directories except the  hidden files               ...
• fanaticgeek:shishpal gaurangaggarwal$ mkdir  shishpal is a good boy• mkdir can create multiple directories at same  time...
• fanaticgeek:shishpal gaurangaggarwal$ ls• a     boy     good is       shishpal• ls now showing all the 5 directories cre...
now ls –l shows every detail about files            and directories• fanaticgeek:shishpal gaurangaggarwal$ ls -l• total 0•...
• drwxr-xr-x are the permissions of the file or  folder  – 1-2-3  – user-group-others• w – write• x – execute• r – read   ...
• fanaticgeek:shishpal gaurangaggarwal$ ls -a• . a      good shishpal• ..    boy     is• ls –a =       shows hidden files ...
•   fanaticgeek:shishpal gaurangaggarwal$ ls -la•   total 0•   drwxr-xr-x 7 gaurangaggarwal staff 238 Jul 5 09:26 .•   drw...
mv• mv is for moving the files or folder•   mv file1 to file2•   file1 will be deleted•   and renamed to file2•   only fil...
cp• cp file1 file2• you will be having 2 files• file1 , file2                   Copyrights | SkilledInterns.com
Ctrl Z• is used for stopping the currently running  command                  Copyrights | SkilledInterns.com
Up key• shows previous commands               Copyrights | SkilledInterns.com
man• man <command name>• shows manual / help page of the command• eg : man ls• it shows help page of “ls” command         ...
Ctrl R• if you remember some alphabets of past  commands then type that after pressing Ctrl R  .                  Copyrigh...
top•   shows all the processes running in your terminal•   Processes: 154 total, 4 running, 1 stuck, 149 sleeping, 902 thr...
Upcoming SlideShare
Loading in...5
×

Linux commands

395

Published on

Linux commands

0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
395
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
31
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Linux commands

  1. 1. Linux Commands Copyrights | SkilledInterns.com
  2. 2. ls – shows list of files & directories• fanaticgeek:~ gaurangaggarwal$ mkdir shishpal• mkdir – creates a new directory Copyrights | SkilledInterns.com
  3. 3. • fanaticgeek:~ gaurangaggarwal$ cd shishpal/• cd – change directory Copyrights | SkilledInterns.com
  4. 4. • fanaticgeek:shishpal gaurangaggarwal$ ls• ls shows all the files and directories except the hidden files Copyrights | SkilledInterns.com
  5. 5. • fanaticgeek:shishpal gaurangaggarwal$ mkdir shishpal is a good boy• mkdir can create multiple directories at same time . Copyrights | SkilledInterns.com
  6. 6. • fanaticgeek:shishpal gaurangaggarwal$ ls• a boy good is shishpal• ls now showing all the 5 directories created using just one command Copyrights | SkilledInterns.com
  7. 7. now ls –l shows every detail about files and directories• fanaticgeek:shishpal gaurangaggarwal$ ls -l• total 0• drwxr-xr-x 2 gaurangaggarwal staff 68 Jul 5 09:26 a• drwxr-xr-x 2 gaurangaggarwal staff 68 Jul 5 09:26 boy• drwxr-xr-x 2 gaurangaggarwal staff 68 Jul 5 09:26 good• drwxr-xr-x 2 gaurangaggarwal staff 68 Jul 5 09:26 is• drwxr-xr-x 2 gaurangaggarwal staff 68 Jul 5 09:26 shishpal Copyrights | SkilledInterns.com
  8. 8. • drwxr-xr-x are the permissions of the file or folder – 1-2-3 – user-group-others• w – write• x – execute• r – read Copyrights | SkilledInterns.com
  9. 9. • fanaticgeek:shishpal gaurangaggarwal$ ls -a• . a good shishpal• .. boy is• ls –a = shows hidden files and folders• . & .. are the hidden files Copyrights | SkilledInterns.com
  10. 10. • fanaticgeek:shishpal gaurangaggarwal$ ls -la• total 0• drwxr-xr-x 7 gaurangaggarwal staff 238 Jul 5 09:26 .• drwxr-xr-x+ 69 gaurangaggarwal staff 2346 Jul 5 09:25 ..• drwxr-xr-x 2 gaurangaggarwal staff 68 Jul 5 09:26 a• drwxr-xr-x 2 gaurangaggarwal staff 68 Jul 5 09:26 boy• drwxr-xr-x 2 gaurangaggarwal staff 68 Jul 5 09:26 good• drwxr-xr-x 2 gaurangaggarwal staff 68 Jul 5 09:26 is• drwxr-xr-x 2 gaurangaggarwal staff 68 Jul 5 09:26 shishpal• details are shown for hidden files as well because of –a Copyrights | SkilledInterns.com
  11. 11. mv• mv is for moving the files or folder• mv file1 to file2• file1 will be deleted• and renamed to file2• only file2 will be shown Copyrights | SkilledInterns.com
  12. 12. cp• cp file1 file2• you will be having 2 files• file1 , file2 Copyrights | SkilledInterns.com
  13. 13. Ctrl Z• is used for stopping the currently running command Copyrights | SkilledInterns.com
  14. 14. Up key• shows previous commands Copyrights | SkilledInterns.com
  15. 15. man• man <command name>• shows manual / help page of the command• eg : man ls• it shows help page of “ls” command Copyrights | SkilledInterns.com
  16. 16. Ctrl R• if you remember some alphabets of past commands then type that after pressing Ctrl R . Copyrights | SkilledInterns.com
  17. 17. top• shows all the processes running in your terminal• Processes: 154 total, 4 running, 1 stuck, 149 sleeping, 902 threads 09:38:54• Load Avg: 0.81, 0.90, 0.86 CPU usage: 6.71% user, 3.35% sys, 89.92% idle• SharedLibs: 3916K resident, 6656K data, 0B linkedit.• MemRegions: 74165 total, 2118M resident, 40M private, 725M shared.• PhysMem: 1134M wired, 1964M active, 961M inactive, 4059M used, 29M free.• VM: 323G vsize, 1043M framework vsize, 6354631(13) pageins, 1719226(0) pageouts.• Networks: packets: 2754466/2096M in, 2972528/824M out.• Disks: 3441373/73G read, 1767764/81G written.• PID COMMAND %CPU TIME #TH #WQ #PORT #MREGS RPRVT RSHRD RSIZE• 6462 top 15.1 00:00.90 1/1 0 24 33 1596K 244K 2176K• 6458 fontd 0.0 00:00.11 3 1 78 115 4244K 616K 5288K• 6456- mdworker32 0.0 00:00.23 3 1 53 136 2872K 5772K 7496K Copyrights | SkilledInterns.com
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×