The One Page Linux Manual

ADVERTISEMENT

THE ONE PAGE LINUX MANUAL
A summary of useful Linux commands
Version 3.0
May 1999
.au
rm name
Remove a file or directory called
name
Starting & Stopping
rm -rf name
Kill off an entire directory and all it’s
includes files and subdirectories
-
Shutdown the system now and do not
shutdown
h now
reboot
cp filename
Copy the file called filename to the
/home/dirname
/home/dirname directory
halt
Stop all processes - same as above
-
Shutdown the system in 5 minutes and
shutdown
r 5
mv filename
Move the file called filename to the
reboot
/home/dirname
/home/dirname directory
-
Shutdown the system now and reboot
shutdown
r now
reboot
Stop all processes and then reboot - same
cat filetoview
Display the file called filetoview
as above
man -k keyword
Display man pages containing
startx
Start the X system
keyword
more filetoview
Display the file called filetoview one
Accessing & mounting file systems
page at a time, proceed to next page
using the spacebar
-
Mount the device cdrom
mount
t iso9660 /dev/cdrom
head filetoview
Display the first 10 lines of the file
and call it cdrom under the
/mnt/cdrom
called filetoview
/mnt directory
-
Display the first 20 lines of the file
head
20 filetoview
-
Mount hard disk “d” as a
mount
t msdos /dev/hdd
called filetoview
msdos file system and call
/mnt/ddrive
tail filetoview
Display the last 10 lines of the file
it ddrive under the /mnt
called filetoview
directory
-
Display the last 20 lines of the file
tail
20 filetoview
-
Mount hard disk “a” as a
mount
t vfat /dev/hda1
called filetoview
VFAT file system and call it
/mnt/cdrive
cdrive under the /mnt
directory
Installing software for Linux
umount /mnt/cdrom
Unmount the cdrom
-
Install the rpm package called name
rpm
ihv name.rpm
Finding files and text within files
-
Upgrade the rpm package called
rpm
Uhv name.rpm
name
-
Starting with the root directory, look
find /
name fname
-
Delete the rpm package called
rpm
e package
for the file called fname
package
-
Starting with the root directory, look
find /
name ”*fname*”
-
List the files in the package called
rpm
l package
for the file containing the string fname
package
locate missingfilename
Find a file called missingfilename
-
List the files and state the installed
rpm
ql package
using the locate command - this
version of the package called
assumes you have already used the
package
command updatedb (see next)
rpm -i --force package
Reinstall the rpm package called
updatedb
Create or update the database of files
name having deleted parts of it (not
on all file systems attached to the linux
deleting using rpm -e)
root directory
tar -zxvf archive.tar.gz or
Decompress the files contained in
which missingfilename
Show the subdirectory containing the
tar -zxvf archive.tgz
the zipped and tarred archive called
executable file called missingfilename
archive
grep textstringtofind
Starting with the directory called dir ,
./configure
Execute the script preparing the
/dir
look for and list all files containing
installed files for compiling
textstringtofind
User Administration
The X Window System
adduser accountname
Create a new user call accountname
xvidtune
Run the X graphics tuning utility
passwd accountname
Give accountname a new password
XF86Setup
Run the X configuration menu with
su
Log in as superuser from current login
automatic probing of graphics cards
exit
Stop being superuser and revert to
Xconfigurator
Run another X configuration menu with
normal user
automatic probing of graphics cards
xf86config
Run a text based X configuration menu
Little known tips and tricks
Moving, copying, deleting & viewing files
ifconfig
List ip addresses for all devices on
-
List files in current directory using
ls
l
the machine
long format
apropos subject
List manual pages for subject
ls -F
List files in current directory and
indicate the file type
usermount
Executes graphical application for
mounting and unmounting file
ls -laC
List all files in current directory in
systems
long format and display in columns

ADVERTISEMENT

00 votes

Related Articles

Related forms

Related Categories

Parent category: Education
Go
Page of 2