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

  • Changing OpenOffice Splash Screen Images
    when we run openoffice will come openoffice splash screen image that was used we see, we may feel bored with the splash screen and want to r...
  • Subject-verb agreement
             Subject-verb agreement is a grammatical rule that states that the verb must agree in number with its subject.  In English,  prese...
  • Copy Seluruh Isi Website Dengan WebHTTrack
    S aat menyulusuri suatu website yang terdapat di internet,misalnya situs berisikan lyric lagu atau situs berisikan cerita komik,terkad...
  • Mengembalikan GRUB bootloader yang hilang pada Ubuntu Linux
        Tutorial ini akan menjelaskan bagaimana mengembalikan grub setelah menginstal Windows 7/Vista/Xp. Jika anda menggunakan dual boot PC de...
  • Make Repository local in Ubuntu and Debian
          The first step we doing when we will make the local Repository is download the complete package Repository. To download the complet...
  • Malin Kundang Story From Padang Indonesia
    Long time ago, in a small village near the beach in West Sumatera, lived a woman and her son, Malin Kundang. Malin Kundang's father ha...
  • Switch to Kubuntu, Xubuntu, or Edubuntu
            To switch to Kubuntu, Xubuntu, or Edubuntu , use Synaptic to search for and install kubuntu-desktop , xubuntu-desktop , or edubuntu...
  • Tangkuban Perahu Part 1
                  Once upon a time in west Java, Indonesia lived a wise king who had a beautiful daughter.   Her name was Dayang Sumbi.  She lik...
  • Grand Thief Auto V
        Grand Thief Auto atau yang sering ita dengar dengan GTA akan muncul dengan seri terbarunya yaitu Grand thief Auto V seri terbaru ini aka...
  • Tugas FPGA (Seven Segment Display)
        Seven segment adalah alat tampilan elektronik yang bisa menampilkan penomoran decimal. Seven segment biasanya diidentifikasi dalam indus...

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