| ln -s file linkname | | Creates a symbolic link.
|
| rpm -qa | | Shows all installed RPM packages.
|
| gphoto2 -P | | Downloads all photos from camera.
|
| gphoto2 -D -R | | Deletes all photos on camera.
|
| cp -r sourcedir targetdir | | Copy source directory tree into target directory.
|
| #!/bin/sh | | Starting line of shell scripts.
|
| #!/usr/bin/perl | | Starting line of PERL script.
|
| /dev/sda1 /mnt/usb auto rw,user,noauto 0 0 | | Line in /etc/fstab to mount USB MP3 player.
|
| grep keyword file | | Searches for keyword in file.
|
| PATH=$PATH:directory | | Adds directory to path, put in /etc/bashrc.
|
| /etc/rc.d/rc.local | | Put programs to be started at book time here.
|
| rm -rf directry | | Deletes directory without needless questions.
|
| rpm -vv --rebuilddb | | Rebuilds RPM database. Delete /var/lib/rpm/_db* first.
|
| find / -name filename | | Searches filesystem for this filename.
|
| chown -R user directory | | Change ownership of directory and files in there.
|
| rpm -qpi file.rpm | | Displays RPM informations.
|
| rpm -qpl file.rpm | | Lists files inside RPM.
|
| /etc/inittab | | Where you set the default runlevel.
|
| SET PASSWORD=PASSWORD('pw'); | | Sets password in mysql.
|
| locate -u | | Builds the locate file database, starting at root.
|
| smbclient //80.218.116.40/dan_c | | Access a windows shared folder,
|
| smbmount //80.218.116.40/dan_c /mnt/laptop | | Mount a windows shared folder,
|
| /etc/rc.d/rc.local | | Add your own services to startup file
|
| cat /proc/modules | | shows all the loaded modules
|
| mkisofs -r -J -D -f -V "label" -o /tmp/cd.img /burn_dir | | Create ISO image for burning.
|
| ixus_capture.tar.bz2 | | Captures 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:root | | Do this, if root can't connect to the X server anymore!
|
| netstat -tulpen | | What ary my open ports and what prog listens there?
|
| avisplit -i film.avi -t 37:00.0-40:00.0[,..] -o stueck | | Filmteil ausschneiden.
|
| gmplayer -sub subtitles movie | | View 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) Build | | a) 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 -> alsa | | To hear mplayer and xmms sound at same time.
|
| http://www.cs.wcupa.edu/~rkline/fc1-notes/reference.html | | linux basic knowlege
|
| mount -t cifs //130.92.40.45/D$ /mnt/lcms -o user=Administrator | | Mount windows share on FC2 (must be IP!, don't specify pwd in comand)
|
| smbpasswd -a nyk | | Add a samba password for a linux user.
|
| nano /usr/portage/profiles/package.mask | | Edit the masked package list of portage.
|
| ssh-keygen -f .ssh/identity -t dsa | | Generates private and public key for this machine
|
| rsync -vrpe ssh srcdir user@server:existing_path/maybe_existing_dir | | Copy 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-used | | remove .recently-used first. then it stays gone!
|
| /var/lib/portage/world | | Installed portage packages
|
| /usr/portage/sys-kernel/gentoo-dev-sources/Changelog | | Kernel Changelog
|
| recode MacCentralEurope..ISO-8859-1 file.txt | | Convert Umlaute from mac to unix
|
| emerge -vp mplayer | | What use flags can be used with this ebuild?
|
| xhost + | | Solves this problem: Xlib: connection to ":0.0" refused by server
|
| xhost - && xhost +localhost | | To make it secure again...
|
| media-fonts/corefonts | | For better fonts in openoffice on gentoo.
|
| equery u k3b | | Show 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.ch | | Proxy tunnel in die Uni
|
| init-connect="SET NAMES utf8" | | Make mysql work with UTF8 zope
|