DeveloperBreeze

Ubuntu

Found 7 posts in category 'Ubuntu'.

Essential dpkg Commands Cheat Sheet for Debian and Ubuntu Systems

Cheatsheet October 24, 2024

2. Basic dpkg Commands:

  • Install a package:
  sudo dpkg -i package_name.deb

Installs a .deb package.

  • Remove a package:

Clearing Unnecessary Logs on Ubuntu

Tutorial October 24, 2024

To delete all log files with .log or .gz extensions inside the /var/log/ directory, use:

sudo find /var/log -type f \( -name "*.log" -o -name "*.gz" \) -exec rm {} +

9. Remove Logs with Specific Patterns (e.g., .log.1, .log.2)

To also delete log files like syslog.1 or auth.log.1, modify the find command:

sudo find /var/log -type f \( -name "*.log" -o -name "*.gz" -o -name "*.log.[0-9]" \) -exec rm {} +

How to Install and Configure Apache on Ubuntu

Tutorial October 21, 2024
bash

Step 6: Managing Apache

Start Apache:

sudo systemctl start apache2

Stop Apache:

sudo systemctl stop apache2

How to Create SSL for a Website on Ubuntu

Tutorial October 21, 2024
bash

sudo systemctl restart apache2

Step 7: Firewall Configuration (if applicable)

If you are using ufw (Uncomplicated Firewall), ensure HTTPS traffic is allowed:

sudo ufw allow 'Apache Full'  # For Apache
sudo ufw allow 'Nginx Full'   # For Nginx
sudo ufw enable

Conclusion

How to Install MongoDB Shell (mongosh) on Ubuntu

Tutorial October 18, 2024
bash

Step 4: Verify the Installation

To confirm that mongosh is installed and properly configured, run the following command to check the version:

mongosh --version

If everything is set up correctly, you should see the version of mongosh that you installed.

Step 5: Connect to Your MongoDB Server