We have all been there. You are searching for some long and complex command you manually entered 4 minutes ago, but despite you bashing the up key, you can’t seem to find it and are now having a bad day because of this. This is a trick I learned from a Linux veteran: CTRL+R This […]
Create new Docker container Start off with an existing image. For example ‘Ubuntu’ to start modifying. There are many others, find them here: https://hub.docker.com/ docker pull ubuntu Then find the ID of your downloaded image: docker images In the list, look for the IMAGE ID of your downloaded image. In my case, for Ubuntu, it’s d355ed3537e9. Now, […]
You started a process containing a web server for example. Your terminal will be blocked until you close the running script (ctrl+c), but opening a second terminal is not always an option. That’s when these commands are used: CTRL+Z –> to background # fg –> to foreground It certainly helped me a lot.
Finding files in linux. find -name “query”
Only recently I gained the insight that you cannot ‘manage’ time. You can only manage yourself. Of course we know all about to-do lists and setting priorities, and then changing those priorities. Changing the position of your to-do items only swaps position 1 with position 4. Though changing priorities can be useful, it does not give […]
One cannot deny that Windows made file management user friendly. It’s 2017 and still some important usability features are missing from Linux distros. Last, I had to rename multiple files in order to organize my web image assets neatly, but (being a previous Windows user) I kept bashing F2 in order te perform a bulk […]
A really useful tool for quickly generating random passwords in Linux is pwgen. Install with sudo apt-get install pwgen (on Debian based systems) and then use pwgen to fill your screen with randomly generated passwords. It’s possible to add params in order to customize your generated passwords. These are listed below. -c Include at least one capital letter in […]
Using the command “service –status-all” one has access to all available services and their status.
There are many backup tools available to system admins. One well known file sync tool that can be used for file backup is rsync. Databases can be backed up using mysqldump. You will have to create a script that executes these programs and then run this backup script at some time intervals using crontab. However, […]
To get the disk space left on Linux systems, use df or du. Example: du -sh *