Monday, 16 October 2017

Understanding what "Everything is was a file" means in UNIX/Linux

Understanding what "Everything is was a file" means in UNIX/Linux

This is and was a key concept of UNIX, and therefore Linux since their inception. Recently however this idea has been heavily shat upon by systemd's designers and as this blight's mission creep continues to take over more and more utterly init unrelated systems and processes, more of the "Everything is a file" simplicity and power of Linux is destroyed.

#Linux

More on Linux files and hard and soft links here:
https://www.tecmint.com/create-hard-and-symbolic-links-in-linux/#
https://www.tecmint.com/explanation-of-everything-is-a-file-and-types-of-files-in-linux/

Wednesday, 11 October 2017

Linux tips & tricks - using stow to manage source installs

Linux tips & tricks - using stow to manage source installs

Modern Linux distributions have great repositories of software available, so much so that many people never need to go looking elsewhere to meet their needs. Sometimes however you find a piece of software that, for whatever reason, you install from source. This is fine, but it also means that this package is now your responsibility to manage. Updates, dependencies, recompiling, etc. all become your responsibility instead of being automagically handled by your distribution's package manager. "stow" is a tool to help with that.

Note: OpenSUSE users simply type the following from a root command prompt to install stow.
# zypper in stow
at Y prompt

That's it.
https://linuxconfig.org/how-to-use-gnu-stow-to-manage-programs-installed-from-source-and-dotfiles

Monday, 9 October 2017

Learning Linux: Don't leave your terminal sessions logged in - enable auto logout with TMOUT

Learning Linux: Don't leave your terminal sessions logged in - enable auto logout with TMOUT

This is an important consideration for sysadmins. Especially if you frequently get called away from your desk.

Sure this is a simplistic tool and not overly useful, but combined with screen it can be a wonder.
https://www.tecmint.com/tmout-auto-logout-linux-shell-idle-sessions/

Saturday, 30 September 2017

Learning Linux - Get ahead with 'head'

Learning Linux - Get ahead with 'head'

Inherited from it's UNIX ancestors, the Linux command line has a lot of powerful tools. 'head' and 'tail' are bookends of a set of commands for manipulating and viewing the contents of a file or pipe.
https://www.howtoforge.com/linux-head-command/

Load test your Linux system

Load test your Linux system

Need to stress test your hardware? Verify that new server before you deploy it? Put your system under load to test your apps?

Here's how.
https://bash-prompt.net/guides/create-system-load/

Tuesday, 5 September 2017