Linux

Páginas: 6 (1322 palabras) Publicado: 21 de noviembre de 2011
THE ONE PAGE LINUX MANUAL
A summary of useful Linux commands
Version 3.0 May 1999
rm name

squadron@powerup.com.au
Remove a file or directory called name Kill off an entire directory and all it’s includes files and subdirectories Copy the file called filename to the /home/dirname directory Move the file called filename to the /home/dirname directory Display the file called filetoviewDisplay man pages containing keyword Display the file called filetoview one page at a time, proceed to next page using the spacebar Display the first 10 lines of the file called filetoview Display the first 20 lines of the file called filetoview Display the last 10 lines of the file called filetoview Display the last 20 lines of the file called filetoview

Starting & Stopping
rm -rf name shutdown -hnow halt shutdown -r 5 shutdown -r now reboot startx Shutdown the system now and do not reboot Stop all processes - same as above Shutdown the system in 5 minutes and reboot Shutdown the system now and reboot Stop all processes and then reboot - same as above Start the X system cp filename /home/dirname mv filename /home/dirname cat filetoview man -k keyword more filetoview

Accessing & mountingfile systems
mount -t iso9660 /dev/cdrom /mnt/cdrom mount -t msdos /dev/hdd /mnt/ddrive mount -t vfat /dev/hda1 /mnt/cdrive umount /mnt/cdrom Mount the device cdrom and call it cdrom under the /mnt directory Mount hard disk “d” as a msdos file system and call it ddrive under the /mnt directory Mount hard disk “a” as a VFAT file system and call it cdrive under the /mnt directory Unmount the cdromhead filetoview head -20 filetoview tail filetoview tail -20 filetoview

Installing software for Linux
rpm -ihv name.rpm rpm -Uhv name.rpm rpm -e package rpm -l package rpm -ql package rpm -i --force package Install the rpm package called name Upgrade the rpm package called name Delete the rpm package called package List the files in the package called package List the files and state theinstalled version of the package called package Reinstall the rpm package called name having deleted parts of it (not deleting using rpm -e) Decompress the files contained in the zipped and tarred archive called archive Execute the script preparing the installed files for compiling

Finding files and text within files
find / -name fname find / -name ”*fname*” locate missingfilename Starting withthe root directory, look for the file called fname Starting with the root directory, look for the file containing the string fname Find a file called missingfilename using the locate command - this assumes you have already used the command updatedb (see next) Create or update the database of files on all file systems attached to the linux root directory Show the subdirectory containing theexecutable file called missingfilename Starting with the directory called dir , look for and list all files containing textstringtofind

updatedb

which missingfilename grep textstringtofind /dir

tar -zxvf archive.tar.gz or tar -zxvf archive.tgz ./configure

The X Window System
xvidtune XF86Setup Xconfigurator xf86config Run the X graphics tuning utility Run the X configuration menu withautomatic probing of graphics cards Run another X configuration menu with automatic probing of graphics cards Run a text based X configuration menu

User Administration
adduser accountname passwd accountname su exit Create a new user call accountname Give accountname a new password Log in as superuser from current login Stop being superuser and revert to normal user

Moving, copying, deleting &viewing files
ls -l ls -F ls -laC List files in current directory using long format List files in current directory and indicate the file type List all files in current directory in long format and display in columns

Little known tips and tricks
ifconfig apropos subject usermount List ip addresses for all devices on the machine List manual pages for subject Executes graphical application for...
Leer documento completo

Regístrate para leer el documento completo.

Estos documentos también te pueden resultar útiles

  • Linux
  • Linux
  • Linux
  • Linux
  • Linux
  • Linux
  • linux
  • linux

Conviértase en miembro formal de Buenas Tareas

INSCRÍBETE - ES GRATIS