Reference Card
From ArchWiki
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/rc.conf
- /etc/pacman.conf
- Pacman's configuration file.
- /etc/pacman.conf
- /etc/fstab
- Set mount points here.
- /etc/fstab
Useful bash commands:
- ifconfig [device]
- configure a network device.
- ifconfig [device]
- iwconfig [device]
- configure a wireless network device.
- iwconfig [device]
- iwlist [device] scan
- show all wireless networks within reach
- iwlist [device] scan
- df
- Show disk space usage
- df
- lshwd
- list hardware devices.
- lshwd
- lspci
- list all PCI devices.
- lspci
- diff [file1] [file2]
- display the difference between two files.
- diff [file1] [file2]
- groups
- display which groups current user belongs to.
- groups
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
- Burn a iso image //You'll need cdrtools installed
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)
- abs