News for hackers. Stuff that matters.
Re:Six lesser-known but seriously useful Linux commands by gjvc on Thursday January 11, 2024 @04:42PM (#38959594)

    column --table
Re:Six lesser-known but seriously useful Linux commands by gweinberg on Thursday January 11, 2024 @11:25PM (#38963721)
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.
Re:Six lesser-known but seriously useful Linux commands by pprotas on Friday January 12, 2024 @01:44AM (#38964803)
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…

Re:Six lesser-known but seriously useful Linux commands by pxeger1 on Friday January 12, 2024 @04:36AM (#38965988)
There’s also vdir, which I think is just ls with some different default options
Re:Six lesser-known but seriously useful Linux commands by guenthert on Friday January 12, 2024 @04:58AM (#38966133)
> 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!

Re:Six lesser-known but seriously useful Linux commands by bionsystem on Friday January 12, 2024 @12:20AM (#38964194)
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...
Re:Six lesser-known but seriously useful Linux commands by notfish on Friday January 12, 2024 @02:07AM (#38964986)
Not quite a command, but ctrl+r in bash does a real useful history search
Re:Six lesser-known but seriously useful Linux commands by CaptainMarvel on Friday January 12, 2024 @07:45AM (#38967341)
It certainly does A history search. For “really useful”, I would suggest replacing it with the fzf integration. McFly could perhaps be even better.
Re:Six lesser-known but seriously useful Linux commands by notfish on Friday January 12, 2024 @10:36PM (#38977120)
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.
Re:Six lesser-known but seriously useful Linux commands by taskforcegemini on Sunday January 14, 2024 @03:07AM (#38988468)
yes, if you know what you are looking for. also helpful: history history | less history | grep -i "SEARCHSTRING"