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, 29 December 2017
Sunday, 24 December 2017
Linux from the command line - touch your files with 'touch'
Linux from the command line - touch your files with 'touch'
https://www.howtoforge.com/tutorial/linux-touch-command/
https://www.howtoforge.com/tutorial/linux-touch-command/
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
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/
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/#
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/
https://bash-prompt.net/guides/server-hacked/
Tuesday, 19 December 2017
Monday, 18 December 2017
Linux Command Line - putting commands together
Linux Command Line - putting commands together
Here's an example to get you on the road to understanding the Linux Command Line's secret superpower. The ability to combine multiple commands to perform complex tasks in simple ways.
"Use the pipe Luke!"
https://www.cyberciti.biz/faq/linux-unix-find-tar-files-into-tarball-command/
Here's an example to get you on the road to understanding the Linux Command Line's secret superpower. The ability to combine multiple commands to perform complex tasks in simple ways.
"Use the pipe Luke!"
https://www.cyberciti.biz/faq/linux-unix-find-tar-files-into-tarball-command/
Saturday, 16 December 2017
Learning Linux - REGEX, the core Linux skill you need to build all your other skills on
Learning Linux - REGEX, the core Linux skill you need to build all your other skills on
http://linuxtechlab.com/bash-scripting-learn-use-regex-basics/
http://linuxtechlab.com/bash-scripting-learn-use-regex-basics/
Linux administration - controlling access with ACL's
Linux administration - controlling access with ACL's
https://www.2daygeek.com/how-to-configure-access-control-lists-acls-setfacl-getfacl-linux/
https://www.2daygeek.com/how-to-configure-access-control-lists-acls-setfacl-getfacl-linux/
Thursday, 14 December 2017
Using pdfgrep to search PDF files on Linux
Using pdfgrep to search PDF files on Linux
This is a really handy tool to let you search one or a directory full of PDF files.
This is Debian oriented, but a great tool for all Linux versions.
For OpenSUSE users, just add the Publishing repo then add the package.
eg. do the following from a root shell
zypper ar https://download.opensuse.org/repositories/Publishing/openSUSE_Leap_42.3/Publishing.repo
zypper in pdfgrep
You might also want to add pdftk with
zypper in pdftk
https://www.maketecheasier.com/search-pdf-files-pdfgrep/
This is a really handy tool to let you search one or a directory full of PDF files.
This is Debian oriented, but a great tool for all Linux versions.
For OpenSUSE users, just add the Publishing repo then add the package.
eg. do the following from a root shell
zypper ar https://download.opensuse.org/repositories/Publishing/openSUSE_Leap_42.3/Publishing.repo
zypper in pdfgrep
You might also want to add pdftk with
zypper in pdftk
https://www.maketecheasier.com/search-pdf-files-pdfgrep/
File compression on Linux - way beyond just Winzip
File compression on Linux - way beyond just Winzip
https://www.networkworld.com/article/3240938/linux/how-to-squeeze-the-most-out-of-linux-file-compression.html
https://www.networkworld.com/article/3240938/linux/how-to-squeeze-the-most-out-of-linux-file-compression.html
Thursday, 7 December 2017
Linux from the Command Line - finding text in files and directories with grep
Linux from the Command Line - finding text in files and directories with grep
grep is a core tool in Linux and one every user should get to know.
https://www.tecmint.com/find-a-specific-string-or-word-in-files-and-directoires/#
grep is a core tool in Linux and one every user should get to know.
https://www.tecmint.com/find-a-specific-string-or-word-in-files-and-directoires/#
Linux from the Command Line - using ncat
Linux from the Command Line - using ncat
ncat is a highly useful tool for pulling information from network streams.
https://www.linuxtechi.com/nc-ncat-command-examples-linux-systems/
ncat is a highly useful tool for pulling information from network streams.
https://www.linuxtechi.com/nc-ncat-command-examples-linux-systems/
Linux for sysadmins - Using sudo
Linux for sysadmins - Using sudo
This is the way to use sudo to delegate the rights to run privileged applications to non root users.
https://opensource.com/article/17/12/using-sudo-delegate
This is the way to use sudo to delegate the rights to run privileged applications to non root users.
https://opensource.com/article/17/12/using-sudo-delegate
Tuesday, 5 December 2017
Advanced Linux - Writing udev rules
Advanced Linux - Writing udev rules
Due to it's UNIX heritage, Linux gives you powerful, fine grained control over the system. udev is a prime example of that power.
https://linuxconfig.org/tutorial-on-how-to-write-basic-udev-rules-in-linux
Due to it's UNIX heritage, Linux gives you powerful, fine grained control over the system. udev is a prime example of that power.
https://linuxconfig.org/tutorial-on-how-to-write-basic-udev-rules-in-linux
Sunday, 3 December 2017
Linux Tips & Tricks
Linux Tips & Tricks
Let the system notify you when long commands are completed.
https://www.ostechnix.com/undistract-get-notification-long-running-terminal-commands-complete/
Let the system notify you when long commands are completed.
https://www.ostechnix.com/undistract-get-notification-long-running-terminal-commands-complete/
Subscribe to:
Posts (Atom)