Linux For Your Life

  • Subscribe to our RSS feed.
  • Twitter
  • StumbleUpon
  • Reddit
  • Facebook
  • Digg

Monday, 7 September 2009

Debian / Ubuntu Cheat-Sheet

Posted on 19:55 by Unknown
           lists typical commands that are commonly used day-to-day in Ubuntu, along with popular command options. It’s only a brief list, and emphasis is placed on file manipulation commands.
Useful day‐to‐day commands.

Command Description

ls List files and folders.
Typical example: ls ‐l

‐l : Long listing (show permissions, ownerships etc.)
‐a : Show all files, including hidden files
‐h : Show KB, MB etc., rather than bytes

cd Change folder
Type cd .. to change to parent folder.
Typical example: cd Documents

cp Copy file or folder
first specify file (and path if necessary),then specify destination.Typical example: 
cp myfile.doc Desktop/
‐r : Copy folders too, including contents (otherwise
folders will be ignored)

mv Move file or folder
can also be used to rename files/folders if a new destination isn’t specified. Note that, unlike cp, it is not necessary to specify the ‐r option in order to move folders.

Typical example: (moving): mv myfile.doc Desktop/
Typical example: (renaming): mv old.doc new.doc

rm Delete file(s) or folder(s)
multiple files/folders can be specified.

Typical example: rm –rf myfolder

‐r : Delete folder; must be used if a folder is to be deleted
‐f : Force deletion; don’t prompt user for confirmation
when deleting (useful when deleting lots of folders, but must be used with care)
ln Create a link to a file (similar to a shortcut under Windows)
first specify the file (including path if necessary), and then the location where the link should be created. A different filename may be specified for the new link.

Typical example: ln –s myfile.doc ~/Desktop/

‐s : Create symbolic link, rather than hard link. In nearly all situations, a symbolic link is preferable, making this practically a prerequisite command option less Open specified plain text file in a viewer (use cursor keys to scroll; hit Q to quit). Useful for viewing configuration files.

Typical example: less myfile.txt

df Show amount of free disk space on all attached filesystems.

Typical example: df –h
‐h : Show KB, MB, GB etc. rather than bytes

free Show amount of free memory.

Typical example: free –mt
‐m : Show output in megabytes, rather than kilobytes
‐g : Show output in gigabytes
‐t : Show totals column

grep Search through specified file for a word or phrase. First,specify the phrase, and then the file to be searched through.

Typical example: grep –i wireless myfile.txt

‐i : Ignore upper/lowercase when searching

man View the manual (man) page for specified command. A man page is built-in technical documentation—see Appendix B.

Typical example: man ls

nano Simple text editor that’s ideal for creating, editing or viewing files (particularly configuration files); hit Ctrl+J to re-justify current line should you create a line-break during editing.

Typical example: sudo nano /etc/fstab
umount Unmount attached storage device. Not a typo! The command is umount and not unmount. Needs root powers. Specify the mount point.

Typical example: sudo umount /media/cdrom

locate Find specified file
relies on a background database that is periodically and automatically updated. The database can be manually updated by typing the sudo updatedb command.

Typical example: locate filename.doc
‐i : Ignore upper/lowercase when searching
Thank's
By:Mr.Gm
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Posted in Terminal | No comments
Newer Post Older Post Home

0 comments:

Post a Comment

Subscribe to: Post Comments (Atom)

Popular Posts

  • Format USB in linux for use as Live USB
        In the main discussion at this time, you can find a variety of distribution LiveUSB that can be installed in the UFD. However, after an...
  • Active & Passive Sentences
    1.Theory and example from active & passive voice Active Voice         Active voice is where the object recieves the action of the verb.A...
  • Using Guide BackInTime
    In short how to use BackInTime are as follows: 1.On the start page will appear BackInTime some important parameters to fill tone, such a...
  • sitemap
    Applications install Dropbox On Linux What is Dropbox How to install an use Back In Time What is BackInTime Install windows on linux Organiz...
  • How to restore grub boot-loader after installing windows
         This tutorial will explain how to restore Grub after installing Windows 7/Vista/Xp.If you are using dual boot PC with windows,Ubuntu fo...
  • Dahsyat atau Inbox
         Acara musik sekarang ini sudah bukan pembicaraan asing lagi di telinga kita ,dari pagi sampai malam pasti ada acara musik yang menghibu...
  • How To Using Nautilus Scripts
    With script s you can do many things such as : make an enhanced "open with"-alike feature (open some files that match a filter in ...
  • Lakukan apa yang ingin anda lakukan
        Lakukan apa yang ingin anda lakukan ,gunakanlah semua kemampuan anda untuk berfikir , membuka sesuatu ,menjalanka sesuatu dan membuat ap...
  • Download super fast with the command lftp in ubuntu linux
         Simply capitalize a terminal window and lftp program, we've got a manager download manager and download accelerator that can suck a...
  • installation XAMPP
    If you want the integration of the Apache web server, MySQL database server, and PHP / Perl in one package, you can install XAMPP XAMPP is a...

Categories

  • Applications
  • cairo-dock
  • convert Rpm to Deb
  • Desktop
  • Distro
  • Download Manager
  • Fix Crash GUI
  • Format USB
  • game
  • hardware
  • Install Linux
  • internet and Web
  • Linux Intro
  • LiveUSB
  • Local Repository
  • nautilus
  • Optimize Linux system
  • Programming Language
  • Robot
  • Server
  • so
  • Terminal
  • Tips and Trick OpenOffice
  • Tugas Manajemen Proyek dan Risiko
  • Tugas SoftSkill
  • wifi

Blog Archive

  • ►  2012 (5)
    • ►  June (2)
    • ►  May (1)
    • ►  April (1)
    • ►  March (1)
  • ►  2011 (29)
    • ►  December (10)
    • ►  November (2)
    • ►  October (2)
    • ►  May (11)
    • ►  March (2)
    • ►  February (2)
  • ►  2010 (74)
    • ►  December (13)
    • ►  October (4)
    • ►  June (12)
    • ►  May (10)
    • ►  April (6)
    • ►  March (8)
    • ►  February (18)
    • ►  January (3)
  • ▼  2009 (42)
    • ►  October (6)
    • ▼  September (13)
      • How To Install Dropbox
      • Online file storage with Dropbox
      • Using Guide BackInTime
      • Easy Back-Up Data With BackInTime
      • Mandriva 2009.1 (Spring)
      • Linux Mint 7 (Gloria)
      • Sabily 9.04
      • Ubuntu Netbook Remix 9.04
      • Privacy Policy
      • Debian / Ubuntu Cheat-Sheet
      • Recover a damaged desktop
      • Kill a crashed GUI
      • Ubuntu 9.04 LiveUSB
    • ►  August (13)
    • ►  July (10)
Powered by Blogger.

About Me

Unknown
View my complete profile