This week I will take a little look into three command line tools which I find very nice for daily use on a server where we have almost no interface except the command line.
The first tool I would like to bring to your attention is a file explorer for the command line.
Ranger is a finder/explorer/nemo/nautilus replacement for the command line with a simple but straight forward file management approach. It uses the almost everywhere liked miller columns and i personally like it more than the midnight commander but that is a personal preference.
I also like the extensibility as an example you can extend ranger with poppler for pdf support or mutool whatever is available for your distro.
It can be easily installed and can be just started from it’s own directory so no big installation fuzz. Simply unpack and start ranger.
“How to run cmd as different user?” I type into Google. When I search for full sentences instead of just keywords I must be very desperate. Violet links everywhere, I feel like I have tried everything and nothing works. What I want is something like “su”, temporarily changing the current user sounds like a very important thing to be able to do when one administrates Windows. So why is it not that simple?
There is a command called “RunAs”, sounds good, right? Just give the user and command you want to use and you are set! Just make sure you have the right permissions. But problems start with the username since Windows is localized. Sometimes English names work, sometimes you need to use “NT-AUTORITÄT\Netzwekdienst” instead of “NT AUTHORITY\Network Service”. RunAs is one of the latter. Except all of this does not matter since you need a password and system accounts tend to not have one. Bummer.
Without knowledge of Windows inner workings, I blame the lack of quality free material on the topic, I’m left to googling around until I find a 10 year old blog post or forum entry which solves the exact problem I’m having. And I did find something, it’s not even that old. PsExec is a tool which does exactly what I want! So I install the package, edit my path, run the program… and it just works! With English usernames even. (After I used the -accepteula flag, because for some reason it would not work without when running the first time).
Working with Windows often feels to me like piloting a military submarine, not because it’s so advanced, but because I often have no idea what I am doing, the manual is in Russian and clicking the wrong button may or may not make a large strip of land uninhabitable for decades. Trial and error seems to be the way to go for most problems and that’s frustrating. So I hope if somebody else finds themselves in the unknown waters of the Windows user system, this blog post can help.
Komische Sache: Ich bin seit einem Jahr Apple User und habe mich noch nie gefragt, was dieses komische Symbol auf der Command/Apple Taste eigentlich bedeutet. Aber jetzt habe ich zufällig im ApfelBlog dieses Bild gesehen, bin den Links ein bisschen gefolgt und in der Wikipedia wirds erklärt:
Ursprünglich hatte die Taste ein Apple Logo enthalten, aber Steve Jobs wollte nicht so viele Apple Logos an den unterschiedlichen Stellen verwenden. Da wohl eine Deadline bevorstand, hat die Tastaturdesignerin verschiedene Logobücher durchwälzt und dabei dieses Symbol gefunden. Es stammt aus Skandinavien und weist dort auf eine besondere touristische Attraktion hin. Da es den anderen Leuten im Team gefiehl, wurde es das Comman Logo auf dem 1984er Macintosh.
Mich erinnert es am ehesten noch an ein Autobahnkreuz.