…czyli notatki szybkie i nieco bez składu


Oglądanie logów na bieżąco

tail -f /var/log/messages ...albo podobnie

Konwersja pliku rmvb do avi

mencoder film.rmvb -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=900:autoaspect -ffourcc xvid -oac lavc -lavcopts acodec=mp2:abitrate=128:atag=0x50 -o film_nowy.avi

Obracanie filmu o 90 stopni

mencoder -ovc lavc -vf rotate=1 -oac copy video.mov -o video_rotated.mov (zgodnie z ruchem wskazówek zegara)

mencoder -ovc lavc -vf rotate=1 -oac copy video.mov -o video_rotated.mov (przeciwnie do ruchu wskazówek zegara)

Naprawianie plików wideo z uszkodzonym indeksem lub przeplotem

mencoder -idx popsute_video.avi -ovc copy -oac copy -o naprawione_video.avi

Łączenie filmów bez rekompresji

mencoder -ovc copy -oac copy film_1.avi film_2.avi film_3.avi -o polaczony.avi

Zmiana dysku CD/DVD w czasie pracy qemu

info block
eject ide1-cd0
change ide1-cd0 /dev/sr0


Ctrl + Alt +2

How To Split an Audio .flac file using Ubuntu Linux

$ sudo apt-get install cuetools shntool flac

$ shnsplit -f file.cue -t %n-%t -o flac file.flac

shnsplit -f *.cue -t "%n - %p - %t" -o "flac flac -s -8 -o %f -" *.flac

cuetag *.cue *.flac


Difference between .bashrc and .bash_profile

~/.profile is the place to put stuff that applies to your whole session, such as programs that you want to start when you log in (but not graphical programs, they go into a different file), and environment variable definitions.
~/.bashrc is the place to put stuff that applies only to bash itself, such as alias and function definitions, shell options, and prompt settings. (You could also put key bindings there, but for bash they normally go into ~/.inputrc.)
~/.bash_profile can be used instead of ~/.profile, but it is read by bash only, not by any other shell. (This is mostly a concern if you want your initialization files to work on multiple machines and your login shell isn’t bash on all of them.) This is a logical place to include ~/.bashrc if the shell is interactive. I recommend the following contents in ~/.bash_profile:

if [ -r ~/.profile ]; then . ~/.profile; fi
case „$-” in *i*) if [ -r ~/.bashrc ]; then . ~/.bashrc; fi;; esac

Dodaj komentarz