Manual Ubuntu (Inglés)
A summary of useful Linux command for Ubun tu
April 2007 Version 3-7.04 https://wiki.ubuntu.com/KentuckyTeam
Starting & Stopping
shutdown -h now 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 r eboot Shutdown the system now and reboot Stop allprocesses and then reboot – same as above Start the X system
rm name rm -rf name cp filename /home/dirname mv filename /home/dirname cat filetoview man -k keyword more filetoview
Remove a file 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 filetoview. Display man pages containing k eyword. 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 filecalled filetoview.
Accessing & mounting file systems
mount -t iso9660 /dev/cdrom /mnt/cdrom mount -t msdos /dev/hdd /mnt/ddrive mount -t vfat /dev/hda1 /mnt/cdrive Mount the device cdrom and call it cdrom under the /mnt dir ectory. 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 /mntdirectory. Unmount the cdrom.
head filetoview head -20 filetoview tail filetoview tail -20 filetoview
umount /mnt/cdrom
Finding files and text within files
find / -name fname find / -name “*fname*” locate missingfilename Starting with the root directory, look for the file called fname. Starting with the root directory, look for the file containing the string fname. Find a file calledmissingfilename 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 t the linux root o directory. Show the subdirectory containing the executable file called missingfilename. Starting with the directory called dir , look for and list all files containing textstringtofind.
UserAdministration
adduser accountname passwd accountname sudo exit Create a new user call accountname. Give accountname a new password. Enable user to execute command as root, if the user is in the admin group. Stop being superuser and revert to normal user.
Installing software for Linux
sudo apt-get update sudo apt-get upgrade sudo apt-get install package sudo apt-get remove package Freshens the packagecache. Does a upgrade of all applications currently installed. Installs the application named “package” and all of its dependencies. Removes (uninstalls) the application named “package”.
updatedb
which missingfilename grep teststringtofind /dir
The X System
xvidtune xF86Setup Xconfigurator xf86config Run the X graphics tuning utility . Run the X configuration menu with automatic probingof graphics cards. Run another X configuration menu with automatic probing of graphics cards. Run a text based X configuration menu.
sudo apt-cache sear keyword Search for a package that contains ch “keyword” in its name or description. sudo apt-cache policy package Lists the currently available version and the currently installed version of the application named “package”. In addition, providesa description of “package”. Decompress the files contained in the zipped and tarred archive called archive.
tar -zxvf archive.tar.gz or tar -zxvf archive.tgz
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 mounting and unmounting file systems.
Moving,...
Regístrate para leer el documento completo.