Category Archives: command line of linux

Protect Your Private Key

🔐 1️⃣ Protect Your Private Key (MOST IMPORTANT) Your key file: /etc/pki/tls/private/nighthawkappraisals.key Correct permissions: sudo chown root:root /etc/pki/tls/private/nighthawkappraisals.key sudo chmod 600 /etc/pki/tls/private/nighthawkappraisals.key This means: 🔎 2️⃣ Verify It ls -l /etc/pki/tls/private/nighthawkappraisals.key You should see: -rw——- 1 root root That is … Continue reading

Posted in apache, command line of linux, My Linux | Comments Off on Protect Your Private Key

Change the Time Zone ubuntu

Open the Terminal and enter the following command in order to list all the timezones of the specified zone: Syntax: $ timedatectl list-timezones | grep -i [zone] Example: We will use this command to list all the time zones of … Continue reading

Posted in command line of linux, My Linux, ubuntu | Comments Off on Change the Time Zone ubuntu

Remove a Linux user

You can remove old users from your Linux server. This will revoke the user’s SSH access, and remove that user’s file and directory owner Remove the user Log in to your server via SSH. Switch to the root user: sudo … Continue reading

Posted in command line of linux, My Linux | Comments Off on Remove a Linux user

How do I unzip a zip file in Terminal?

Open a terminal ( Ctrl + Alt + T should work). Now create a temporary folder to extract the file: mkdir temp_for_zip_extract . Let’s now extract the zip file into that folder: unzip /path/to/file.zip -d temp_for_zip_extract sample here –> root@host: … Continue reading

Posted in command line of linux, My Linux | Comments Off on How do I unzip a zip file in Terminal?

How to add directory browsing in apache configuration?

One of the “must do’s” on setting a secure apache web server is to disable directory browsing.  Usually apache comes with this feature enabled but its always a good idea to get it disabled unless you really need it. First … Continue reading

Posted in apache, command line of linux, My Linux | Comments Off on How to add directory browsing in apache configuration?