Bash Shell

From WikiEducator
Jump to: navigation, search

Audio

alsamixer = Provides detailed view for adjusting audio.

Directories and files

cd / = Change to root directory.

Text files

cat mytextfile =


Video files

To convert video file formats:

 ffmpeg -i input.ogv output.avi

Fullscreen screencast:

ffmpeg -f alsa -ac 2 -i pulse -f x11grab -r 30 -s $(xwininfo -root | grep 'geometry' | awk '{print $2;}') -i :0.0 -acodec pcm_s16le -vcodec libx264 -vpre lossless_ultrafast -threads 0 -y output.mkv
alias xxx="ffmpeg -f alsa -ac 2 -i hw:0,0 -f x11grab -r 30 -s $(xwininfo -root | grep 'geometry' | awk '{print $2;}') -i :0.0 -acodec pcm_s16le -vcodec libx264 -vpre lossless_ultrafast -threads 0 -y output.mkv"