Useful tips for everyday
What is the difference between named and unnamed pipes? All instances of a named pipe share the same pipe name. On the other hand, unnamed…
How do I search for a pattern in vi? One can search forward in vim/vi by pressing / and then typing your search pattern/word. To…
How do you run a Python script in bash? Running a Script Open the terminal by searching for it in the dashboard or pressing Ctrl…
How do I extract a specific line in Unix? To extract a range of lines, say lines 2 to 4, you can execute either of…
How to use a variable in regex in Bash? First, whenever you’re using the value of a variable, you need to write $line. Also, note…
How to substitute multiple patterns in Linux SED? You can use any one of the following sed substitute find and replace multiple patterns: sed -e…
Can docker Run command on host? When you run the docker start command within your docker container, the docker server running on your host will…
How can I get Cron to run my Perl script? Working with cron is usually straightforward, but if you are having difficulty getting the Perl…
When to use execstop and deactivate in systemd? Such systemd units will wait until the process specified by ExecStart terminates, and then deactivate by running…
How do you concatenate a string in Bash? Another way of concatenating strings in bash is by appending variables or literal strings to a variable…