While I like messing around in Linux, it's not my daily-driver operating system.I tend to use it for specialized projects, or when I have no other choice, such as using a Linux Netbook in college, or with handheld gaming systems that work best with Linux for various reasons.This is probably why I don't have a bunch of Linux commands just sitting in my brain the way I do for MS-DOS or Windows.
When I first started using Linux, I didn't have internet access at all.Which is why I had to use man pages, the built-in documents that guide you through the labyrinthine lore of Linux.But, once I got access to Google, the smarter move was to simply look up the answer.
Now, however, a strange meeting of modern AI and ancient text files could be my go-to way to figure out what the heck is going on in Linux.ChatGPT made obscure Linux commands approachable Language is its forte after all I first realized that ChatGPT could help me with my various little Linux projects when I was trying to set up a Raspberry Pi 4B to use with my CRT TV.I couldn't figure out why the analog video output wouldn't activate.
Then I had the idea of simply giving ChatGPT my config files to see if it could spot the problem, and it just rewrote the whole thing so it would work.Annoyingly, it worked perfectly the first time and continued to work until I found a new solution with the 240-MP media interface.Ironically, that's a LibreElec alternative that's at least partially vibe-coded.
Go figure! So if it could help me figure out bugs in my poorly-written config files, maybe it could do more? AI-generated commands look more trustworthy than they are Written with confidence, executed with errors So the answer to this is both "yes" and "no." I've been using ChatGPT since the day it launched, and until this very moment as I write this, I have yet to get a correct set of steps or instructions for anything related to computers.Whether that's Linux, macOS, or Windows.It often gets close, but never exactly right.
So if you're mildly tech-savvy and try to follow what it tells you, then you can usually figure out the errors and correct them.It does get worse when you ask for specific commands, especially if they have lots of parameters.It's here where simply copying and pasting a command the LLM spits out can be a real risk.
It's better to understand the command, but in that case I probably didn't need ChatGPT in the first place.The man page tells me what my installed command actually supports Man's search for meaning If you've read up to this point and your only question is "what the heck are man pages?" then you're not alone.Even people who know what a "manual page" is don't really seem to understand them.
The basic idea is that this is documentation installed with your distro of Linux.When you're in the terminal, you can type man [COMMAND] or, as in this case, man grep to see the documentation on the grep command.Close The part no one likes about man pages via the terminal is navigating the things.
You can use a modern man page viewer that gives you GUI controls and lets you easily search the documents using a modern text search function.Of course, if you learn how to use man pages the old-fashioned way, it's not that hard.My colleague Dave McKay wrote a great mini guide for man pages.
Even though it's more than half a decade old, that's not nearly as old as the man page system itself.That was back in 1971 with UNIX, but the original man pages were printed on paper.It was cheaper than computer storage! ChatGPT has become my guide to reading man pages Any port in a storm I am the last person to trust LLMs when it comes to factual information, but something like ChatGPT has the distinct advantage of having contextual awareness of what I'm trying to do.
I treat the man pages as the ground truth, and the LLM as a somewhat unreliable guide that can point me in the right direction.With ChatGPT in one window and the terminal with man pages in the other, I'm actually learning more about Linux at a higher rate than I ever did trying to go it alone.It's convenient, but not for everyone Some of you might think this is a little silly.
If I have ChatGPT, then I have an internet connection.So why not just look up the issue? The thing is, I was already doing that.Looking up how to do things in Linux on the internet has been my main way of trying to get things done for over a decade at this point.
But as I've found over and over again, the Linux community is often less than helpful, and you can pore over hours of forum posts and guides without getting any closer to knowing what you need.Combining ChatGPT and the contents of man pages, I can actually drill down to a solution.It's weird, and I don't need to do it all the time, but when I've had more Reddit exposure than most people could stand, it's a new helping hand, and frankly I'll take any help I can get.
Read More