Important Redhat Linux Knowledge

ln -s file linknameCreates a symbolic link.
rpm -qaShows all installed RPM packages.
gphoto2 -PDownloads all photos from camera.
gphoto2 -D -RDeletes all photos on camera.
cp -r sourcedir targetdirCopy source directory tree into target directory.
#!/bin/shStarting line of shell scripts.
#!/usr/bin/perlStarting line of PERL script.
/dev/sda1 /mnt/usb auto rw,user,noauto 0 0Line in /etc/fstab to mount USB MP3 player.
grep keyword fileSearches for keyword in file.
PATH=$PATH:directoryAdds directory to path, put in /etc/bashrc.
/etc/rc.d/rc.localPut programs to be started at book time here.
rm -rf directryDeletes directory without needless questions.
rpm -vv --rebuilddbRebuilds RPM database. Delete /var/lib/rpm/_db* first.
find / -name filenameSearches filesystem for this filename.
chown -R user directoryChange ownership of directory and files in there.
rpm -qpi file.rpmDisplays RPM informations.
rpm -qpl file.rpmLists files inside RPM.
/etc/inittabWhere you set the default runlevel.
SET PASSWORD=PASSWORD('pw');Sets password in mysql.
locate -uBuilds the locate file database, starting at root.
smbclient //80.218.116.40/dan_cAccess a windows shared folder,
smbmount //80.218.116.40/dan_c /mnt/laptopMount a windows shared folder,
/etc/rc.d/rc.localAdd your own services to startup file
cat /proc/modulesshows all the loaded modules
mkisofs -r -J -D -f -V "label" -o /tmp/cd.img /burn_dirCreate ISO image for burning.
ixus_capture.tar.bz2Captures images from a CANON IXUS in remote control mode.
mount -t iso9660 -o ro,loop=/dev/loop0 /tmp/cd.img /mnt/test/Test-Mount a CD Image
xhost local:rootDo this, if root can't connect to the X server anymore!
netstat -tulpenWhat ary my open ports and what prog listens there?
avisplit -i film.avi -t 37:00.0-40:00.0[,..] -o stueckFilmteil ausschneiden.
gmplayer -sub subtitles movieView a movie with subtitles on mplayer.
( dump -0f - / ) | ( cd /mnt/linux ; restore -rf - )Copy whole linux partition to another.
install perl module a) CPAN b) ppm (dos) c) Builda) su -c " -MCPAN -e ' install NAME'" b)ppm, install NAME c) perl Build.PL --download=/temp
PS1='\w>'Nice bash prompt. Append this line to .bashrc
mplayer -> audio settings -> sdl -> alsaTo hear mplayer and xmms sound at same time.
http://www.cs.wcupa.edu/~rkline/fc1-notes/reference.htmllinux basic knowlege
mount -t cifs //130.92.40.45/D$ /mnt/lcms -o user=AdministratorMount windows share on FC2 (must be IP!, don't specify pwd in comand)
smbpasswd -a nykAdd a samba password for a linux user.
nano /usr/portage/profiles/package.maskEdit the masked package list of portage.
ssh-keygen -f .ssh/identity -t dsaGenerates private and public key for this machine
rsync -vrpe ssh srcdir user@server:existing_path/maybe_existing_dirCopy srcdir with content to server to to a path with a dir that doesn't exist maybe -> creates it!
ln -s /dev/null /home/nyk/.recently-usedremove .recently-used first. then it stays gone!
/var/lib/portage/worldInstalled portage packages
/usr/portage/sys-kernel/gentoo-dev-sources/ChangelogKernel Changelog
recode MacCentralEurope..ISO-8859-1 file.txtConvert Umlaute from mac to unix
emerge -vp mplayerWhat use flags can be used with this ebuild?
xhost +Solves this problem: Xlib: connection to ":0.0" refused by server
xhost - && xhost +localhostTo make it secure again...
media-fonts/corefontsFor better fonts in openoffice on gentoo.
equery u k3bShow lots of info about USE flags.
ALTER TABLE unfest_weitere DROP PRIMARY KEY;Primary Key entfernen von Tabelle
ssh -L 7777:proxy.unibe.ch:80 fankhaus@ubecx.unibe.chProxy tunnel in die Uni
init-connect="SET NAMES utf8"Make mysql work with UTF8 zope