cat
a file in reverse
You know cat file.txt
which prints all the lines in a file from first to last. But what if you want to print them from last to first? Easy, just write cat
backwards, which is tac
voila.
cat
a file in reverse
You know cat file.txt
which prints all the lines in a file from first to last. But what if you want to print them from last to first? Easy, just write cat
backwards, which is tac
voila.
I want to get my nextcloud setup to run using docker-compose, and to start with I need a linux machine with docker running at start up. This is task #1, it looks like this blog post has the answers how to do it.
The annoying port 8080 is already in use
message and not knowing which process is occupying this port sucks. I knew it was lsof
that can help me. But how exactly? TL;DR: ps -p `lsof -i :8080 -t` -o command=
(on Mac OSX)