[–] PeterHK 8y ago ↗ Stuck in a broken remote session? <enter> ~.<enter> want to use different command on last argument? less /path/to/some.file vim !$ piping and sudo sudo sh -c "my command | jq > meh.txt"
[–] KishanB 8y ago ↗ To clear only the contents of a file (my most used and most favourite one esp with application logs)cat /dev/null > any_file.txt
3 comments
[ 3.9 ms ] story [ 16.3 ms ] threadcat /dev/null > any_file.txt