This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
linux:commands [2011/11/28 02:19] tkilla created |
linux:commands [2020/11/12 00:20] (current) tkilla |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Commands | + | ====== |
- | put useful | + | |
+ | **the place for useful | ||
+ | |||
+ | please give a short description or some links | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== archives - tar.gz | bz | 7zip ===== | ||
+ | |||
+ | **create tar.gz archiv** | ||
+ | |||
+ | tar -czvf myfiles.tar.gz / | ||
+ | |||
+ | |||
+ | **create tar.gz archiv of full system without ** | ||
+ | |||
+ | tar cvpzf / | ||
+ | |||
+ | |||
+ | \\ | ||
+ | ---- | ||
+ | |||
+ | ===== compressed dump of complete filesystems ===== | ||
+ | |||
+ | **backup raw data of a disc (as root): ** | ||
+ | |||
+ | dd if=/dev/sdX | gzip -c9 > / | ||
+ | |||
+ | **restore to a __drive of same size__ as original medium:** | ||
+ | |||
+ | gunzip -c / | ||
+ | \\ | ||
+ | ---- | ||
+ | |||
+ | ===== various methods howto backup & restore ===== | ||
+ | |||
+ | **[[http:// | ||
+ | |||
+ | \\ | ||
+ | ---- | ||
+ | |||
+ | |||
+ | ===== sound ===== | ||
+ | |||
+ | **mp3 " | ||
+ | |||
+ | mp3gain analyses sound files and saves an id3 volume metatag to them. many music-players can read that id3 tag and adjust the volume to that gain. | ||
+ | |||
+ | find / | ||
+ | |||
+ | \\ | ||
+ | ---- | ||
+ | |||
+ | ===== bash completion ===== | ||
+ | |||
+ | **debian misses to enable this by default :(** | ||
+ | it enables a lot of auto complete for file paths, commands, command parameters(!) and more | ||
+ | |||
+ | | ||
+ | |||
+ | add this to / | ||
+ | |||
+ | if [ -f / | ||
+ | . / | ||
+ | fi | ||
+ | |||
+ | enable it by opening a new console or | ||
+ | | ||
+ | |||
+ | info from: http:// | ||
+ | |||
+ | ==== Create Random File ==== | ||
+ | |||
+ | count is in KiB | ||
+ | |||
+ | dd bs=1024 count=1000 </ | ||
+ | |||
+ | ===== Fix locales ===== | ||
+ | |||
+ | export LANGUAGE=en_US.UTF-8; | ||
+ | |||
+ |