Six lesser-known but seriously useful Linux commands(redhat.com)
redhat.com
Six lesser-known but seriously useful Linux commands
https://www.redhat.com/sysadmin/6-lesser-known-commands
10 comments
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.
> 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!
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!
There’s also vdir, which I think is just ls with some different default options
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…
It just happens that there are other popular commands that do the same…
Not quite a command, but ctrl+r in bash does a real useful history search
It certainly does A history search. For “really useful”, I would suggest replacing it with the fzf integration. McFly could perhaps be even better.
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.
yes, if you know what you are looking for. also helpful:
history
history | less
history | grep -i "SEARCHSTRING"
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...
column --table