HackerTrans
TopNewTrendsCommentsPastAskShowJobs

Six lesser-known but seriously useful Linux commands(redhat.com)

33 points·by Croftengea·3 lata temu·10 comments
redhat.com
Six lesser-known but seriously useful Linux commands

https://www.redhat.com/sysadmin/6-lesser-known-commands

10 comments

gweinberg·3 lata temu
dir doesn't belong on the list, it is not a useful command. It's nice if you don't remember which os you are using, I make that mistake sometimes, but if you do remember then there is no reason to use it, ever.
guenthert·3 lata temu
> It's nice if you don't remember which os you are using

Because DOS and Unix are otherwise so alike? Hard to fathom, but be it as it may, a `dir` command not interpreting command line options like DOS's (or CP/M's -- which makes me think that even older OS might have had the directory listing command called `dir`) `dir` won't be of any help.

I think `dir` rather should flash the screen and screech out of the speaker to wake you up!
pxeger1·3 lata temu
There’s also vdir, which I think is just ls with some different default options
pprotas·3 lata temu
It’s definitely lesser-known and a useful command, since listing the contents of the current directory is very useful :)

It just happens that there are other popular commands that do the same…
notfish·3 lata temu
Not quite a command, but ctrl+r in bash does a real useful history search
CaptainMarvel·3 lata temu
It certainly does A history search. For “really useful”, I would suggest replacing it with the fzf integration. McFly could perhaps be even better.
notfish·3 lata temu
True, but this works in a completely uncustomized shell which is pretty nice - I can hop on a coworkers keyboard or a machine without my .bashrc and it just works. It mostly just replaces spamming the up arrow to find commands I already ran.
taskforcegemini·3 lata temu
yes, if you know what you are looking for. also helpful: history history | less history | grep -i "SEARCHSTRING"
bionsystem·3 lata temu
On a side note, there is a link on the right with an OpenShift tutorial, which has to have one of the worst UI I've seen lately. It's like they can't fit on a page a documentation, a terminal and a "Next" button, they have to make you scroll 3 different areas of the pages and never display everything at once, on 1080p...
gjvc·3 lata temu


    column --table