
:title: Linux-Liste
:Date: 2014/08/13
:pageorder: 007
:slug: linux

Linux-Befehle
=============
Diese Liste dient mir als Gedächtnisstütze.

Alle Pdfs in einem Verzeichnis ausdrucken

.. code-block:: bash

   lpr *.pdf

Alle Pdfs von einer Webseite herunterladen (optional HTML/FTP Benutzer+PW)

.. code-block:: bash

   wget -p -r -nd -l 1 -e robots=off -A pdf --user=**USER** --password=**PW** "**URL**"

vimrc

.. code-block:: bash

   syntax on
   set colorcolumn=80
   :command Uhr :read !date +"\%H:\%M Uhr: "
   set number

bash_aliases

.. code-block:: bash


   alias xvlce="xargs -d '\n' vlc -f --play-and-exit"
   alias videofind='find -type f -iname "*.mp4" -or -iname "*.mpeg" -or -iname "*.mkv" -and ! -wholename "*@eaDir*" ! -wholename "*/.*"'
   alias nextVideo="cp .last .2last; videofind | sort | grep -F -f .2last -A 1 | tail -n 1 | tee .last | xvlce"
   alias nextVideoInit="videofind | sort | head -n 1 | tee .last | xvlce"
   alias randomVideo="videofind | sort -R | head -n 1 | tee .rlast | xvlce "
   alias rnextVideo="cp .rlast .2rlast; videofind | sort | grep -F -f .2rlast -A 1 | tail -n 1 | tee .rlast | xvlce"; 
   alias prevVideo="cp .last .2last ; videofind | sort | grep -B 1 -F -f .2last  | head -n 1 > .last"

   alias jfg='setxkbmap de neo -option'
   alias xvlcwk='setxkbmap de'

   alias gpr='git pull --rebase'
   alias ss2='sudo shutdown -h +2'

   alias vlce='vlc -f --play-and-exit'

   alias dunkel='sleep 1; xset dpms force off'

   alias tagebuch="vim ~/Diary/`date +%F`"
   alias kalender="~/git/khal/ikhal -c ~/.khal"

xbindkeysrc

.. code-block:: bash

	"xbacklight -inc 2%" 
		XF86MonBrightnessUp
	"xbacklight -dec 2%"
		XF86MonBrightnessDown
	"amixer -q sset Master toggle"
		XF86AudioMute
	"amixer -q sset Master 1%-"
		XF86AudioLowerVolume
	"amixer -q sset Master 1%+"
		XF86AudioRaiseVolume
	"~/bin/ratpoisonInit.sh"
		XF86Search


