Useful tips for everyday
How secure is apache2? The Apache web server is one of the most popular web servers available for both Windows and Linux/UNIX. At the moment,…
How will you find a pattern in a file? grep [-E|-F] [-c|-l|-q] [ -R [-H | -L | -P] ] [-ihnsvwxy] [-e pattern_list] [-f pattern_file]…
Why is my systemd service failed to start? I have created a systemd service: I put it in the /etc/systemd/system folder and named it mine.service.…
How do you update Debian? To update a single package on the system, use the apt-get command + the package name we want to update.…
Is a for loop a command? A ‘for loop’ is a bash programming language statement which allows code to be repeatedly executed. A for loop…
Why is iptables forwarding between two interfaces not working? Here’s what I’ve tried so far with iptables but it’s not working: I’d appreciate any help.…
Why is my DVD drive not reading CDs? If the optical drive cannot read the files stored on any CD/DVD discs, you need to confirm…
How do I run fsck on a hard disk? 1. Open Terminal (/Applications/Utilities/Terminal.app) 2. Type the following command, then press “Enter.” 3. This will produce…
How do you store output of a command in a variable in a shell script? To store the output of a command in a variable,…
How do you make a sudo preserve PATH? 3 Answers Use the full path: sudo ~/bin/my-command ; or. Add the directory containing the command to…