Wednesday, 30 May 2018

Linux for developers | Linux from the command line -- analyzing your source code with Ohcount

Linux for developers | Linux from the command line -- analyzing your source code with Ohcount


https://www.ostechnix.com/ohcount-the-source-code-line-counter-and-analyzer/

Linux from the command line -- finding readable text in non text files with strings

Linux from the command line -- finding readable text in non text files with strings

The strings command is one of those tools that you first look at and think "Why would I ever need to do that?", until the day you need to do it and then you're immensely grateful it exists.
https://www.howtoforge.com/linux-strings-command/

Linux from the command line -- Copying and renaming files on Linux

Linux from the command line -- Copying and renaming files on Linux

Copying and renaming files, seems simple enough right? Well, eventually there will be a file copying or renaming task that your GUI file manager isn't up to, or maybe you're working remotely on one of your servers. Either way you should learn to use the command line tools, they can really make your life easier, and your file management faster.
This article even taught me a new command line tool. "rename", which I'm going to have to put an effort into learning and remembering to use instead of just mv.
https://www.networkworld.com/article/3276349/linux/copying-and-renaming-files-on-linux.html

Linux from the command line -- Running Linux commands simultaneously with GNU Parallel

Linux from the command line -- Running Linux commands simultaneously with GNU Parallel

I know I've covered parallel before, but you can never have too much information. In this age of multi-core computing, being able to take advantage of those cores is a useful skill.
https://www.techrepublic.com/article/how-to-run-commands-simultaneously-with-gnu-parallel/

Linux from the command line | Linux for sysadmins -- Sending mail from the command line

Linux from the command line | Linux for sysadmins -- Sending mail from the command line

I know we all have gotten used to having access to our e-mail everywhere, on every device, so the thought of sending e-mail from the command line may seem archaic and pointless, but quite the opposite. It's a really handy and powerful tool.
A simple example might be that you're a sysadmin working away on one of a dozen remote servers and you need to finish up editing a config file later. You could, right from the command line of that box, send yourself a quick reminder note and include the config file in question.
Or, more often this is a tool that comes in handy in custom scripts and cron tasks. For example, maybe you have a script that checks the status of a few key metrics on your network every week. It would be nice to be able to e-mail yourself the output rather than having to remotely log in and read log files.
Or, maybe you might have your system e-mail you when any of a list of critical issues occur. Eg, CPU temp crosses a threshold. A certain file-system gets more than nn% full.
https://linuxtechlab.com/mail-command-send-mail-from-terminal/

Linux from the command line -- All about Linux file archiving with tar

Linux from the command line -- All about Linux file archiving with tar

The tar command is the primary archive command in Linux (and UNIX). It's powerful, versatile, and all things considered, not that hard to use.
Think of it as WinZip on steroids.

Originally tar was created to manage backing up everything from single files to entire file-systems onto backup tapes on big UNIX systems. That's how tar got it's name, from Tape ARchiver. These days tar is a jack of all trades when it comes to archiving and compressing files. You can easily backup multiple directories or whole file-systems with all of their file attributes intact. You can choose from multiple compression methods, or no compression which is great for non or poorly compressible files like PDF's.
Basically tar is a core Linux skill.
https://linuxtechlab.com/tar-command-compress-decompress-files/