Split and merge PDFs – part 2
A while ago I wrote a post named Split and merge PDFs with pdftk. Unfortunately, pdftk seems no longer to be maintained for Fedora 21. So we have to use another alternative – poppler-utils: Install the...
View ArticleIntroduction to cron
cron is a time-based job scheduler. This piece of software utility is used when you need to have a program run repeatedly at set time. The daemon that runs in the background is named crond, while the...
View ArticleNo Wi-Fi device found
I just reinstalled one of my machines with Fedora 21. The install went great, but when the machine was done rebooting, and I was trying to set up my access to a wireless network with nmcli...
View ArticleCompare the output of two commands
..without creating a temporary file: diff -y <(ls First_directory) <(ls Second_directory) The -y is just to show a side-by-side comparison. Very handy! And the result? [jorge@j-laptop temp]$ diff...
View ArticleTest if a port on a remote system is reachable
With telnet: telnet webserver.example.com 80 With bash: cat < /dev/tcp/webserver.example.com/80 Replace tcp with udp, depending on what you want. With netcat: nc webserver.example.com 80 &>...
View ArticleSplit a file into a number of equal parts
As an example, we have a file named primary_data_file.txt that contains 616 lines of data. We want to split this into 4 files, with the equal amount of lines in each. $ wc -l primary_data_file.txt 616...
View ArticleVMware, i3 and multiple monitors
For a while now I’ve been trying to set up VMware to work with multiple monitors, in a Linux guest. With some windowmanagers it works out of the box without any issue, such as with Unity. I never...
View ArticleSimpleHTTPServer with SSL
I’ve often used Python’s SimpleHTTPServer to simply share a directory with someone over a network, it being either local or the Internet. In case you don’t know how it works, it’s simple. To start a...
View Articlevim – Goodbye to :set paste
I’ve been using vim as my editor of choice ever since I started learning Linux, and something that has been bothering me for a while is how vim handles pasting. Say I want to paste a large bit of code...
View ArticleAnsible EX294 practice exam and solutions
I am hopefully going to take the second half of my RHCE exam this year, which is EX294. I have taken inspiration from https://www.lisenet.com/2019/ansible-sample-exam-for-ex294/ and...
View Article