weil es irgendwie immer vorkommt vor dem Espresso eine große Datei am Server leeren zu müssen. (linux)
truncate -s 0 file
have fun
all of the it stuff we want to share here
weil es irgendwie immer vorkommt vor dem Espresso eine große Datei am Server leeren zu müssen. (linux)
truncate -s 0 file
have fun
somewhere it’s coffee Time so
quick and dirty a sort command to sort IP address (linux)
input-->
192.168.1.100
192.168.1.19
192.168.1.102
192.168.2.1
192.168.0.2
Type command-->
# sort -t . -k 3,3n -k 4,4n /path/to/file
output-->
192.168.0.2
192.168.1.19
192.168.1.100
192.168.1.102
192.168.2.1
have fun
quick and dirty code /snippets / making the life hopefully easier
if usin ls -la gets boring …
ls -trl
Dateien nach Zeit der Dateierzeugung
ls -turl
Zeigt die Dateien letzten Zugriff
ls -c
Dateien nach Datum der letzten Änderung Status
ls -f
Deaktiviert die Standardsortierung inkl . und ..
ls -S
Sortiert nach Dateigröße
ls -t
Sortiert nach dem Datum der letzten Änderung
ls -X
Sortiert nach Dateierweiterung
THX to @J3GR_ via Twitter for this hint !
ls -F
if you have trouble seeing directories on the first glance. It adds a trailing slash to all directories so they are easier to grasp in the output.
Setting up Alias
alias l='ls -laF'
in your sh/bash config, and you'll have it literally at your fingertips.
have fun
quick and dirty code /snippets / making the life hopefully easier
quick and dirty smart test (linux)
smartctl -t short /dev/device <-- Test
smartctl -a /dev/device <-- Report
have fun