Basic command for linux

426 views

Published on

Published in: Technology
1 Comment
1 Like
Statistics
Notes
No Downloads
Views
Total views
426
On SlideShare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
8
Comments
1
Likes
1
Embeds 0
No embeds

No notes for slide

Basic command for linux

  1. 1. Basic Command For Linux / BacktrackUbuntu ျကက္ျကက္ Backtrackျကက္ျကက္ Linux Base Systemကိုကုံးကဲ့ကူကိုက္းကိကက့္ကဲ့ အေျကကံ Commandကိုက္းေကးေကြကါအကြက္က်က္ကားကကာေကာ့ကကိုကါကူးကုံးကက္ကဲ့ကျကက္းျကက္းအကြက္ကကြားကါကိက့္ကက္……………….:Pကုံးကားကဲ့ကကားကုံးေကြကကိက္အကက္ျကီးကကုက္ကို့ကာကာကျကက္ေကာ့ကါကူးကက္ကက္ကက္ကက္ကါကက္ကဲကကိုက္ကေအာက္………:PFile Commandls   directory listingls -al   formatted listing with hidden filescd dir   Change directory to dircd   Change to homepwd   show current directory
  2. 2. mkdir dir   create a directory dirrm file   delete filerm -r dir -delete directory dirrm -f file   force remove filerm -rf dir   force remove directory dir*cp file1 file2   copy file1 to file2cp -r dir1 dir2   copy dir1 to dir2 ; create dir2 if it doesn t exitmv file1 file2   rename or move file1 to file2 ;if file2 is an existing directory , move file1 intodirectory file2ln -s file link   create symbolic link link to filetouch file   create or update filecat > file   places standard input into filemore file   output the contents of filehead file   output the first 10 lines of filetail file   out put the last 10 lines of filetail -f file   output the contents of file as it grows, starting with the last 10 linesInstallationInstall form source./ configuremake
  3. 3. make installdpkg -i pkg.deb   install a package (debian)rpm -Uvh pkg.rpm   install a package (RPM)NetworkPing host   ping host and output resultswhois domain   get whois information for domaindig domain   get DNS information for domaindig -x host   reverse lookup hostwget file   download filewget -c file   continue a stopped downloadShortcutsCtrl+C   halts the current commandCtrl+Z   stops the current command resume with fg in the foreground or bg in thebackgroundCtrl+D   log out of current session, similar to exitCtrl+W   erases one word in the current lineCtrl+U   erases the whole lineCtrl+R   type to bring up a recent command ……..repeats the last commandexit   log out of current sessionCompression
  4. 4. tar cf file.tar files   created a tar named file.tar containing filestar xf file.tar -extract the files from file.tartar czf file.tar.gz files   create a tar with Gzip compressiontar xzf file.tar.gz   extract a tar using Gziptar cjf file.tar.bz2   create a tar wiht Bzip2 compressiontar xjf file.tar.bz2- extract a tar using Bzip2gzip file   compresses file and rename it to file.gzgzip -d file.gz   decompress file.gz back to fileSearchinggrep pattern file   search for a pattern in filegrep -r pattern dir   search recursively for pattern in dircommand | grep pattern   search for pattern in the output commandlocate file   find all instances of fileSSHssh user@host   connect to host as userssh -p port user@host   connect to host on port on port as userssh -copy -id user@host- add your key to host for user to enable a keyed or passwordless loginFile Permissionschmod octal file   change the premission of file to octal , which can be found separately foruser,gruop and world by adding :
  5. 5. 4   read (r)2   write (w)1   execute (x)Examples;chmod 777   read, write ,execute for allchmod 755   rwx for owner , rx for group and world For more option see man chmod .Process Managementps   display your currently active processestop   display all running processeskill pid   kill process id pidkillall proc   kill all processes and named proc*bg   lists stopped for background jobs: resume a stopped job in the backgroundfg -brings the most recent job to foregroundfg n   brings job n to the foregroundSystem Infodate   show the current date and timecal - show this month calendaruptime   show current uptimew   display who is onlinewhoami   who you are logged in as
  6. 6. finger user   display information about the useruname -a   show kernel informationcat / proc/ cpuinfo   cpu informationcat / proc/ meminfo   memory informationman command   show the manual for commanddf   show disk usagedu   show directory space usagefree   show memory and swap usagewhois app   show possible location of appwhich app   show which app will be run by defultအေျကကံကို့ေျကာေကကက့္ေကာ္ေကာ့္ကိုကုံကါကက္ကီကာေကြကိုအကုက္ကကွက္ကိကက္ေကာက္ကွကဲကဲေကးေကာ့ကိကားကက့္ကက္ကို့ကက္ကါကက္………..ကက္ကက္ျကိုးကားကါအုံးကက္…

×