Today I am writing about five linux commands that can really offer useful information when you request help online.
cat command can be used to view the content of a file without opening it.
it is very good to also redirect the content of a file to a new file, like this:
cat file1.txt > file2.txt
All the content of file1 will be copied to file 2.
Pretty handy right?
This feature is very good when you are in a hurry and don't want to deal with
rsync to copy something fast.
uname is a good command when someone requests you to tell them what version is your operating system and what kernel are you running.
uname -ar will give this output and display the version of the OS and the kernel that is currently in use.
The which command it is used to determine what program is bash using when you type a symlinked command like
So typing which ls will tell us exactly what ls is Linux using to complete this task.
Let's type the command and see what it is the result:
which ls ls: aliased to ls --color=tty
As you can see Dear Reader
ls is part of the
tty, the core of UNIX.
Unix is the operating system that was used to build Linux!
Journalctl is very useful to see when a certain event has taken place on a Linux Operating System.
The jounralctl can be used also to filter the events and the older events are displayed first.
Let's try to filter our journalctl by date using the UTC argument:
Will list all driver modules that are currently enabled and help us identify if a blacklisted driver has not been successfully taken care of.
A very useful command to deal with driver issues.
Also to find more about any command in Linux, don't forget to use the
mancommand followed by the command you want to find out more.
For example, let's find out more about the cat command:
I hope you enjoyed this article Dear Reader, and if you also find it useful share it on social.