Monday, 1 January 2018

Linux from the command line - the wonders of bash history

Linux from the command line - the wonders of bash history

This is a great reference for learning and exploring the power of the bash shell's history file.
I definitely recommend expanding the size of your history file, though I'm less enthusiastic in recommending messing with the history append setting. Also, even though they give the basic method for setting these things, you should read the manual for your Linux distribution and find the preferred way of setting these things for your distro.
https://www.digitalocean.com/community/tutorials/how-to-use-bash-history-commands-and-expansions-on-a-linux-vps

Friday, 29 December 2017

Linux from the command line - Using the Word Count (wc) command

Linux from the command line - Using the Word Count (wc) command

wc is a very simple program that is very handy and very powerful.
It allows you to count things. The obvious use is counting the words in an essay to make sure you've reached the assigned 5000 word minimum for example. But when combined with bash scripts, wc has a lot more diverse and powerful uses, especially when combined with pipes and redirects.

For example, if you want to know how many PCI devices are in your system, type:
lspci | wc -l

USB devices?
lsusb | wc -l


https://www.howtoforge.com/linux-wc-command-explained-for-beginners-6-examples/

Friday, 22 December 2017

Linux from the command line - Scheduling tasks for later with 'at'

Linux from the command line - Scheduling tasks for later with 'at'

Yesterday I posted about cron and crontab and using them to schedule tasks to run regularly. But what if you want to run a task once at a later time?
That's where 'at' comes in.


https://linuxconfig.org/how-to-schedule-tasks-using-at-command-on-linux

Wednesday, 20 December 2017

Linux for sysadmins - Using crontab

Linux for sysadmins - Using crontab

Automating repetitive tasks is a huge time saver and important skill for every Linux user, especially sysadmins. Crontab is where that gets done.
http://linuxtechlab.com/scheduling-important-jobs-crontab/

Linux from the command line - Searching Duck Duck Go from the command line

Linux from the command line - Searching Duck Duck Go from the command line

With Google getting more and more Orwellian and political, users are moving to Duck Duck Go for the privacy it provides. Here's how you can search it from the command line.
https://www.tecmint.com/search-duckduckgo-from-linux-terminal/#

Linux for sysadmins - How to tell if your Linux server has been compromised

Linux for sysadmins - How to tell if your Linux server has been compromised
https://bash-prompt.net/guides/server-hacked/