Common Linux Commands

Document Sample
Common Linux Commands Powered By Docstoc
					                                   Preparation Time 0 minutes
                                   Run / Task Time 0 minutes




       Linux How To Document for

   Australian Associated Computer Club




Common Linux Commands
Table of Contents
Aim ..........................................................................................................................................................3
Overview ................................................................................................................................................. 3
How To Do It ............................................................................................................................................ 3
   Operational / Startup Commands .......................................................................................................3

   Superuser Commands .........................................................................................................................3

   Additional Information / References ..................................................................................................5

Document specific information ...............................................................................................................6
   Acronyms used ....................................................................................................................................6

   Change History ....................................................................................................................................6




Linux How To Document                                                     Page 2 of 6
C:\AACC\How To Master Documents\Linux How To Document - Common Linux Commands.doc

9 February 2009
Aim
This document details common Linux commands used by members of the AACC and acts as a ready
reference for tutorials, workshops and general learning.




Overview
The information is currently split into two sections as follows:

     1. A set of commands to be keyed in during normal operation or startup.

     2. Commands to be used in Superuser (SU) mode.




How To Do It
Operational / Startup Commands
drakconf
Runs Mandrake Control Center to allow configuration of Mandrake Linux

xconf

alsamixer
Used to adjust sound settings and volume

harddrake /sndconf
Used to configure ISA PnP devices

lspci
Prints details about all PCI buses and devices




Superuser Commands
Commands to be entered in a terminal (Konsole) as "root".

Note: the "#" indicates you are in "Root" and it does not have to be typed. If you are in a terminal as "user" you will be
shown a "$" instead.

To enter "root" in the terminal:

     •    Type su - (press enter)
     •    At the prompt, type in your root password and press Enter


Linux How To Document                                                     Page 3 of 6
C:\AACC\How To Master Documents\Linux How To Document - Common Linux Commands.doc

9 February 2009
mount -t vfat /dev/sda1 /mnt/removable
Mount a USB flash stick

mount -t iso9660 /dev/cdrom       /mnt/cdrom
Mount a CD/DVD ROM

mkfs vfat -c /dev/sda1
Format a USB Flash stick

mkfs
Make a filing system

urpmi –auto-select
Upgrade your OS

urpmi –update kernel
Upgrade your kernel

urpmi task-kde3 #urpmi kde3 –a
Install KDE3

urpmf     #urpme task-kde4
Delete KDE4

urpme –auto-orphans
Delete orphan files

update-menus –v
Update the menu list on your computer

tar -zxvf (file name .tar.gz)
Unarchive a program, followed by: ./configure

tar -jxvf (file name .tar.bz2)
Unarchive a program, followed by: make clean, make, make install. This will compile the program
into "your computer". You must have a compiler installed.

/RPMS# rpm -Uvih *rpm
Install an "rpm" file from the terminal. Normally you just have to click on the "RPM" icon and it will
install automatically.

./configure
make clean; make; make install; (installation commands - see above)

chmod a+x (file name .bin) ./(file)
Install a .bin file


Linux How To Document                                                     Page 4 of 6
C:\AACC\How To Master Documents\Linux How To Document - Common Linux Commands.doc

9 February 2009
cfdisk /dev/sda
Check filing system in a flash disk

shutdown -h now
Shut down the computer




Additional Information / References
In addition to this information, go to http://www.digilife.be/quickreferences/QRC/The One Page
Linux Manual.pdf. This is very good "The One Page LINUX Manual". It is in .pdf format, so you can
print it.




Linux How To Document                                                     Page 5 of 6
C:\AACC\How To Master Documents\Linux How To Document - Common Linux Commands.doc

9 February 2009
Document specific information
Acronyms used
AACC     Australian Associated Computer Club



Change History
        Date          Comments                                     Changed By
 9th February, 2009   Document created                             Colin Phelps




Linux How To Document                                                     Page 6 of 6
C:\AACC\How To Master Documents\Linux How To Document - Common Linux Commands.doc

9 February 2009

				
DOCUMENT INFO
Shared By:
Categories:
Stats:
views:49
posted:3/25/2010
language:English
pages:6
Description: Common Linux Commands