Reference Card

From ArchWiki

Jump to: navigation, search

This is the base of our reference card, hopefully this will end up into something useful.

Important config files:

/etc/rc.conf
The big and almighty config file.
Here you configure things like timezone, daemons to start at boot,
blacklisting of modules and network.
/etc/pacman.conf
Pacman's configuration file.
/etc/fstab
Set mount points here.

Useful bash commands:

ifconfig [device]
configure a network device.
iwconfig [device]
configure a wireless network device.
iwlist [device] scan
show all wireless networks within reach
df
Show disk space usage
lshwd
list hardware devices.
lspci
list all PCI devices.
diff [file1] [file2]
display the difference between two files.
groups
display which groups current user belongs to.

Pacman options:

To install or upgrade a single package or list of packages (including dependencies), issue the following command:
pacman -S package_name1 package_name2
To remove a single package, leaving all of its dependencies installed:
pacman -R package_name
To remove all of the packages dependencies which aren't used by any other installed package:
pacman -Rs package_name
Update entire system
pacman -Syu

General stuff:

Burn a iso image //You'll need cdrtools installed
cdrecord -v dev=/dev/cdrom isoimage.iso
Copy iso from cd
dd if=/dev/cdrom of=/home/user/isoimage.iso
or
cat /dev/cdrom > isoimage.iso

Common groups:

abs
rights to Arch's auto build system
audio
sound
camera
camera devices
disk
block devices not affected by other groups such as optical,floppy,storage.
floppy
floppy drive
kmem
rights to /dev/mem, /dev/port, /dev/kmem
log
access to log files in /var/log
lp
printers
optical
dvd/cd drives
power
right to suspend etc
root
root/admin power (security warning: don't add your user to this unless you know what your doing!)
scanner
scanners
slocate
access to command updatedb
storage
access to external drives (hard drives, flash/jump drives, mp3 players, etc)
thinkpad
for thinkpad users accessing /dev/misc/nvram through e.g. tpb
tty
access to serial/USB devices like modems or handhelds
users
default users group (recommended)
video
DRI/3D acceleration
vmware
right to execute vmware
wheel
right to use sudo (setup with visudo) (PAM also affects this)
Personal tools