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/
Wednesday, 30 May 2018
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/
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
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/
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/
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/
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/
Tuesday, 29 May 2018
Linux tips & tricks -- Casting all your media to your Chromecast from Linux
Linux tips & tricks -- Casting all your media to your Chromecast from Linux
https://www.linuxuprising.com/2018/05/command-line-chromecast-player-catt.html
https://www.linuxuprising.com/2018/05/command-line-chromecast-player-catt.html
Saturday, 26 May 2018
Linux tips & tricks -- understanding the mess that is Linux Audio
Linux tips & tricks -- understanding the mess that is Linux Audio
Over the years the Linux audio system has become pretty complex, in part to deal with the realities of a networked operating system. Fortunately most Linux distros have come to grips with this complexity and do a good job of detecting and correctly configuring most audio hardware. However, should a problem arise, having some background on the system can help.
See also: http://www.troubleshooters.com/linux/sound/sound_troubleshooting.htm
https://opensource.com/article/17/1/linux-plays-sound
Over the years the Linux audio system has become pretty complex, in part to deal with the realities of a networked operating system. Fortunately most Linux distros have come to grips with this complexity and do a good job of detecting and correctly configuring most audio hardware. However, should a problem arise, having some background on the system can help.
See also: http://www.troubleshooters.com/linux/sound/sound_troubleshooting.htm
https://opensource.com/article/17/1/linux-plays-sound
Wednesday, 23 May 2018
Linux from the command line -- 22 essential security commands for Linux
Linux from the command line -- 22 essential security commands for Linux
https://www.networkworld.com/article/3272286/open-source-tools/22-essential-security-commands-for-linux.html
https://www.networkworld.com/article/3272286/open-source-tools/22-essential-security-commands-for-linux.html
Linux from the command line -- cat's backwards twin, tac
Linux from the command line -- cat's backwards twin, tac
You should have come across the "cat" command by now. A way to view all of a file or pipe output. "tac" is the same only it displays the file backwards. IE last line first, then the second to last line, and so on.
https://www.howtoforge.com/linux-tac-command/
You should have come across the "cat" command by now. A way to view all of a file or pipe output. "tac" is the same only it displays the file backwards. IE last line first, then the second to last line, and so on.
https://www.howtoforge.com/linux-tac-command/
Tuesday, 22 May 2018
Linux vs. Unix: What's the difference?
Linux vs. Unix: What's the difference?
If you are a younger Linux admin, you may have never worked on a Unix system, unlike your older compatriots who cut their teeth on it. Unix is the foster parent of Linux and knowing your Unix and it's history will enrich your Linux experience.
https://opensource.com/article/18/5/differences-between-linux-and-unix
If you are a younger Linux admin, you may have never worked on a Unix system, unlike your older compatriots who cut their teeth on it. Unix is the foster parent of Linux and knowing your Unix and it's history will enrich your Linux experience.
https://opensource.com/article/18/5/differences-between-linux-and-unix
Sunday, 20 May 2018
Linux for sysadmins | Linux from the command line -- Managing MySQL databases and users from the command line
Linux for sysadmins | Linux from the command line -- Managing MySQL databases and users from the command line
Databases are for much more than just Enterprise data storage. They can provide really useful services for all kinds of things, including the operating system and many popular applications and services. At some point in your Linux journey, you will be faced with using one. Don't worry, it's not that hard, there's lots of help out there, and it's cool to be able to do at least the basics for yourself.
Databases are for much more than just Enterprise data storage. They can provide really useful services for all kinds of things, including the operating system and many popular applications and services. At some point in your Linux journey, you will be faced with using one. Don't worry, it's not that hard, there's lots of help out there, and it's cool to be able to do at least the basics for yourself.
Linux from the command line -- Getting to the bottom of things with tail
Linux from the command line -- Getting to the bottom of things with tail
How often have you had some huge file or log file that you had to scroll through forever or spacebar till your fingers are sore with more?
Tail to the rescue.
https://www.howtoforge.com/linux-tail-command/
How often have you had some huge file or log file that you had to scroll through forever or spacebar till your fingers are sore with more?
Tail to the rescue.
https://www.howtoforge.com/linux-tail-command/
Saturday, 19 May 2018
Linux from the command line | Linux tips & tricks -- Handy bash shortcuts
Linux from the command line | Linux tips & tricks -- Handy bash shortcuts
I guarantee at least one of these will be an "Oh wow, I wish I'd known about that one a long time ago!" moment for you.
https://www.tecmint.com/linux-command-line-bash-shortcut-keys/
I guarantee at least one of these will be an "Oh wow, I wish I'd known about that one a long time ago!" moment for you.
https://www.tecmint.com/linux-command-line-bash-shortcut-keys/
Learning Linux | Linux from the command line -- Compiling your own code
Learning Linux | Linux from the command line -- Compiling your own code
There are those that will tell you that you're not a real Linux user until you've compiled code for yourself. I guess I'm probably one of them.
There are lots of reasons to do this. For us old school Linux guys, you didn't used to have a choice. Back in the day you just had to compile some code from source in order to get a working Linux system installed and running. Later you had some choice in the matter, but you still compiled some key system components and libraries so that you could heavily optimize the output binaries for your specific hardware. This was because computers were slower and more resource constrained and every little bit of performance you could wring out of them was welcome. The next stage was only having to compile your own kernel to support your hardware configuration. Then modular kernels happened and the days of having to compile anything were over.
Now it comes down to mostly two cases. One is compiling code you wrote yourself, in which case you don't need this tutorial. The other case is when you've found a piece of software you've just got to have but that isn't available for your Linux distro or hardware setup or is only available in source form.
So, when that happens, here you go.
Pro Tip: My personal formula for the "-j" option is:
nproc*2-1
So if you have a 4 core processor, use make -j7
And these days, systems are pretty fast so it doesn't hurt to throw -03 in the command line, or at least -02.
http://www.linuxandubuntu.com/home/basics-of-compiling-software-from-source-code-in-linux
There are those that will tell you that you're not a real Linux user until you've compiled code for yourself. I guess I'm probably one of them.
There are lots of reasons to do this. For us old school Linux guys, you didn't used to have a choice. Back in the day you just had to compile some code from source in order to get a working Linux system installed and running. Later you had some choice in the matter, but you still compiled some key system components and libraries so that you could heavily optimize the output binaries for your specific hardware. This was because computers were slower and more resource constrained and every little bit of performance you could wring out of them was welcome. The next stage was only having to compile your own kernel to support your hardware configuration. Then modular kernels happened and the days of having to compile anything were over.
Now it comes down to mostly two cases. One is compiling code you wrote yourself, in which case you don't need this tutorial. The other case is when you've found a piece of software you've just got to have but that isn't available for your Linux distro or hardware setup or is only available in source form.
So, when that happens, here you go.
Pro Tip: My personal formula for the "-j" option is:
nproc*2-1
So if you have a 4 core processor, use make -j7
And these days, systems are pretty fast so it doesn't hurt to throw -03 in the command line, or at least -02.
http://www.linuxandubuntu.com/home/basics-of-compiling-software-from-source-code-in-linux
Friday, 18 May 2018
Linux from the command line -- Letting your scripts compare things with test
Linux from the command line -- Letting your scripts compare things with test
The Linux shell is a powerful thing. It's almost a programming language and provides the user with the ability to compare things, make decisions based on the outcome, etc. just like a real programming language.
The 'test' command is a part of that capability.
https://www.howtoforge.com/linux-test-command/
The Linux shell is a powerful thing. It's almost a programming language and provides the user with the ability to compare things, make decisions based on the outcome, etc. just like a real programming language.
The 'test' command is a part of that capability.
https://www.howtoforge.com/linux-test-command/
Tuesday, 15 May 2018
Linux from the command line -- Using rsync to copy only new or changed files
Linux from the command line -- Using rsync to copy only new or changed files
https://www.tecmint.com/sync-new-changed-modified-files-rsync-linux/
https://www.tecmint.com/sync-new-changed-modified-files-rsync-linux/
Linux from the command line -- Controlling Linux audio with Alsa from the command line
Linux from the command line -- Controlling Linux audio with Alsa from the command line
https://www.maketecheasier.com/alsa-utilities-manage-linux-audio-command-line/
https://www.maketecheasier.com/alsa-utilities-manage-linux-audio-command-line/
Linux from the command line -- Learning Vim like an arcade gamer
Linux from the command line -- Learning Vim like an arcade gamer
If you want to get your Vim skills polished and scratch your vintage arcade gaming itch, here you go.
https://www.ostechnix.com/pacvim-a-cli-game-to-learn-vim-commands/
If you want to get your Vim skills polished and scratch your vintage arcade gaming itch, here you go.
https://www.ostechnix.com/pacvim-a-cli-game-to-learn-vim-commands/
Setting up Bluetooth on Arch Linux
Setting up Bluetooth on Arch Linux
Do arch users even use Bluetooth or is it too mainstream and easy to use for them?
https://linuxhint.com/bluetooth_arch_linux/
Do arch users even use Bluetooth or is it too mainstream and easy to use for them?
https://linuxhint.com/bluetooth_arch_linux/
Sunday, 13 May 2018
Linux tips & tricks -- Casting videos to Chromecast from Linux via Gnomecast
Linux tips & tricks -- Casting videos to Chromecast from Linux via Gnomecast
Here's an option for viewing your local video files from your Linux box on your Chromecast.
https://www.linuxuprising.com/2018/05/cast-videos-to-chromecast-on-linux-with.html
Here's an option for viewing your local video files from your Linux box on your Chromecast.
https://www.linuxuprising.com/2018/05/cast-videos-to-chromecast-on-linux-with.html
Saturday, 12 May 2018
Linux from the command line | Linux for sysadmins -- getting serious about command line text processing with AWK
Linux from the command line | Linux for sysadmins -- getting serious about command line text processing with AWK
When you're ready to do some advanced command line acrobatics and make some powerful scripts, AWK and SED are your go to tools. Here's a brief, hands on intro to AWK.
If you really want to master these tools, I suggest you pick up the O'Reilly books on AWK and SED.
https://www.rosehosting.com/blog/awk-command-examples/
When you're ready to do some advanced command line acrobatics and make some powerful scripts, AWK and SED are your go to tools. Here's a brief, hands on intro to AWK.
If you really want to master these tools, I suggest you pick up the O'Reilly books on AWK and SED.
https://www.rosehosting.com/blog/awk-command-examples/
Linux for sysadmins -- Installing and using Docker on CentOS 7
Linux for sysadmins -- Installing and using Docker on CentOS 7
Speaking of the latest CentOS release*, here's how to go about setting up Docker on it and using it. This is great for both sysadmins, and people wanting to learn and practice Enterprise tasks at home, or in their test lab.
Speaking of the latest CentOS release*, here's how to go about setting up Docker on it and using it. This is great for both sysadmins, and people wanting to learn and practice Enterprise tasks at home, or in their test lab.
Linux for sysadmins | Linux from the command line -- Take advantage of that multi-core system with parallel
Linux for sysadmins | Linux from the command line -- Take advantage of that multi-core system with parallel
The parallel command, no surprise, lets tasks run in parallel. If you have multiple CPU cores, this can really make things go a lot faster. It's great for bulk jobs like converting files.
https://opensource.com/article/18/5/gnu-parallel
The parallel command, no surprise, lets tasks run in parallel. If you have multiple CPU cores, this can really make things go a lot faster. It's great for bulk jobs like converting files.
https://opensource.com/article/18/5/gnu-parallel
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
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/
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
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/
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
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/
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/
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/
Linux tips & Tricks | Linux for sysadmins -- Setting up your own VPN with OpenVPN
Linux tips & Tricks | Linux for sysadmins -- Setting up your own VPN with OpenVPN
https://www.maketecheasier.com/create-own-linux-vpn/
https://www.maketecheasier.com/create-own-linux-vpn/
Linux tips & tricks -- Installing the BookStack Documentation Wiki on CentOS
Linux tips & tricks -- Installing the BookStack Documentation Wiki on CentOS
A documentation server is a great and powerful resource for one or groups.
It can be especially useful for dev groups and engineering teams or classrooms.
https://www.howtoforge.com/tutorial/centos-bookstack-nginx/
A documentation server is a great and powerful resource for one or groups.
It can be especially useful for dev groups and engineering teams or classrooms.
https://www.howtoforge.com/tutorial/centos-bookstack-nginx/
Linux from the command line | Linux for sysadmins -- Learning Cron
Linux from the command line | Linux for sysadmins -- Learning Cron
Scheduled tasks are in important part of Linux administration. You'll need to learn to manage them effectively and correctly. Here's a start.
https://www.ostechnix.com/a-beginners-guide-to-cron-jobs/
Scheduled tasks are in important part of Linux administration. You'll need to learn to manage them effectively and correctly. Here's a start.
https://www.ostechnix.com/a-beginners-guide-to-cron-jobs/
Friday, 4 May 2018
Linux from the command line -- Customizing your text colours in bash
Linux from the command line -- Customizing your text colours in bash
The Linux terminal uses colour to help you identify and discriminate between different types of information. You can customize those colour hints to your liking. Here's how.
Warning, there be dragons here!
Be careful what you change and make backups first. You could easily make your terminal output unreadable.
https://www.networkworld.com/article/3269587/linux/customizing-your-text-colors-on-the-linux-command-line.html
The Linux terminal uses colour to help you identify and discriminate between different types of information. You can customize those colour hints to your liking. Here's how.
Warning, there be dragons here!
Be careful what you change and make backups first. You could easily make your terminal output unreadable.
https://www.networkworld.com/article/3269587/linux/customizing-your-text-colors-on-the-linux-command-line.html
Linux tips & tricks| Linux from the command line -- writing bootable USB sticks from an ISO file in BASH
Linux tips & tricks| Linux from the command line -- writing bootable USB sticks from an ISO file in BASH
It can be very handy to have a quick and simple way to take an ISO file and spit it out to a bootable USB stick. Here's one method.
Side note:
My most common GUI tool to perform this task is SuSE Studio Image Writer which is of course available for the various SUSE versions, but it is available for other Linux distros as well. See https://software.opensuse.org/package/imagewriter
In fact there's even a Windows version floating around out there.
https://www.tecmint.com/create-bootable-usb-in-linux-commandline/
It can be very handy to have a quick and simple way to take an ISO file and spit it out to a bootable USB stick. Here's one method.
Side note:
My most common GUI tool to perform this task is SuSE Studio Image Writer which is of course available for the various SUSE versions, but it is available for other Linux distros as well. See https://software.opensuse.org/package/imagewriter
In fact there's even a Windows version floating around out there.
https://www.tecmint.com/create-bootable-usb-in-linux-commandline/
Learning Linux | Linux from the command line -- 25 common Linux commands with examples
Learning Linux | Linux from the command line -- 25 common Linux commands with examples
This is one of those pages you give to someone that just installed Linux for the first time.
https://linuxhint.com/top-25-linux-commands-with-examples/
This is one of those pages you give to someone that just installed Linux for the first time.
https://linuxhint.com/top-25-linux-commands-with-examples/
Learning Linux | Linux from the command line -- Watching commands with the watch command
Learning Linux | Linux from the command line -- Watching commands with the watch command
Did you ever type the same command over and over again just to monitor some ongoing process? Well you can automate that with the watch command.
Here's one I've used when downloading to a nearly full drive.
watch 'df |grep -i /storage'
Or, suppose you have a file being downloaded or created in the background by another process and you want to see show it's coming along and how much has been transferred.
watch 'ls -la ~/Downloads/somefile.tar.gz'
https://www.howtoforge.com/linux-watch-command/
Did you ever type the same command over and over again just to monitor some ongoing process? Well you can automate that with the watch command.
Here's one I've used when downloading to a nearly full drive.
watch 'df |grep -i /storage'
Or, suppose you have a file being downloaded or created in the background by another process and you want to see show it's coming along and how much has been transferred.
watch 'ls -la ~/Downloads/somefile.tar.gz'
https://www.howtoforge.com/linux-watch-command/