-
ls *.txt | wc -l
Say we are on a folder with 10 txt files on the terminal. If we need to see how many txt files exist on the path from the terminal, we’ll type in ls *.txt | wc -l this command will output 10 as the result — read more
-
How to add specific commands to run with sudo permissions on a non-sudo user on Linux
For starters, say we have a user named notroot and we’d like them to run the command do something majestic on this instance . However, each time, do something majestic on this instance is run, we are prompted for the sudo password. This becomes a bother especially when do something majestic on this instance is… — read more
-
How to open port 80 on Ubuntu VM running on Oracle Cloud Always Free Tier
Yesterday, I was struggling a lot with accessing the default Nginx webpage from my browser being served from an Ubuntu VM on Oracle Cloud Always Free Account. For some weird reason, the ufw rules do not apply once the VM has been set up and running. Luckily, I came across the documentation here on Oracle… — read more
-
Automated DevStack setup for OpenStack Manila on Linux (Locally)
OpenStack development is fun until DevStack breaks – Unknown Background During my Outreachy internship, I experienced a lot of frustration with my Devstack installation getting corrupted. Setting it up again and again was a pain. I remember the very first time, I had it all set up correctly, it took 4 hours to have everything… — read more
-
How to see how long a process has been running on Linux
Say I have a process that I have spawned on the terminal, for instance vagrant up If I need to see how long it has been running, I’d have to open a new terminal window then get the process ID it has, I’lltype in ps aux | grep “vagrant up” to see which ID the… — read more