Saturday, 12 May 2018

Learning Linux | Linux for sysadmins -- Blacklisting kernel modules

Learning Linux | Linux for sysadmins -- Blacklisting kernel modules

The Linux kernel is fairly intelligent about detecting and identifying hardware and then loading the correct driver. In Linux these drivers are called kernel modules.
Sometimes though Linux either gets it wrong, or you want to stop a driver from loading for other reasons. That's when you need to blacklist a kernel module. nVidia GPU owners will want to learn how to work this so they can blacklist the horrible nouveau* driver after they install the nVidia driver.



*nouveau apologists can stifle it before they open their mouths, not interested. It's junk, get over it and use the nVidia driver.

https://www.networkworld.com/article/3270624/linux/blacklisting-modules-on-linux.html

Linux from the command line -- Save the repetition with watch

Linux from the command line -- Save the repetition with watch

Did you ever find yourself typing the same command over and over again?
Want to see how a background download is going?
If you said yes, then watch is the command for you.

Suppose a program you are running is downloading something in the background and you want to see how it's coming along?
"watch ls -lah /path/to/Downloads/somefile.tar.gz "

Or maybe you're worried that the USB hard drive you're backing up to is going to fill up.
"watch -n 15 df /path/to/usb-stick"
will let you monitor how much free space is on your USB drive, but only every 15 seconds so as to not overly interfere with the transfer.
https://www.ostechnix.com/run-a-linux-command-every-x-seconds-forever-using-watch-command/

Linux from the command line -- take out the trash and kill those bad tasks

Linux from the command line -- take out the trash and kill those bad tasks

So you've got a task running and it won't respond to it's UI, what can you do?
Linux has you covered.
https://opensource.com/article/18/5/how-kill-process-stop-program-linux

Linux from the command line -- Don't hang up on your tasks, use hup

Linux from the command line -- Don't hang up on your tasks, use hup

Back in the old days, computers were slow, serial connections were even slower, and getting disconnected and losing your tasks could cost you a day's work. Or maybe you just wanted to start a task running and logout and let it do it's thing.
Either way, hup is your friend. Learn it, love it, use it.
https://www.maketecheasier.com/nohup-and-uses/

Learning Linux with comics

Learning Linux with comics

Great series of comics about some common Linux commands.
https://boingboing.net/2018/05/11/b0rkb0rkb0rk.html

Monday, 7 May 2018

Linux from the command line -- format those unreadable numbers with numfmt

Linux from the command line -- format those unreadable numbers with numfmt

You can do some cool things with scripts and programs in Linux, but when you're dealing with numbers, the computer outputs numbers in a format it likes instead of one people like. You can fix this with numfmt.

https://www.ostechnix.com/the-numfmt-command-tutorial-with-examples-for-beginners/

Sunday, 6 May 2018

Linux from the command line | Linux tips & tricks -- Turning Vim into a Word Processor

Linux from the command line | Linux tips & tricks -- Turning Vim into a Word Processor

If you're a real Vim lover of course you want to use Vim all the time for everything. No you can use it as a Word Processor too.
https://www.maketecheasier.com/turn-vim-word-processor/