Free Up Disk Space in Ubuntu 20.04 LTS - How to do this ?

This article covers different effective ways to free up some disk space on your Ubuntu system or other Linux distro. 

Although Linux does not clutter up like Windows, it may be useful to occasionally clean up Linux. Especially in systems with a smaller hard drive it can be beneficial to clean Linux. Occasionally cleaning up Linux does have to be done on a daily basis or weekly basis, 1 time per month is more than sufficient.

Terminal commands to free up some disk space on your Linux System:

There are 3 terminal commands which you can use top clean up Linux Mint. 

Each terminal will be explained about what they do and remove. 

All three commands contribute to free up disk space.

1. sudo apt-get autoclean

This terminal command deletes all .deb files from /var/cache/apt/archives. It basically cleans up the apt-get cache.

2. sudo apt-get clean

This terminal command is used to free up the disk space by cleaning up downloaded .deb files from the local repository.

3. sudo apt-get autoremove

This terminal command used to remove packages that were automatically installed to satisfy dependencies for some package and no longer needed by those packages.

Install Wine on CentOS 8 - Step by Step process to do it ?

This article covers how to install Wine on CentOS 8. With the use of this package, you can easily use the native Windows applications on CentOS 8. However, you can also remove this package from your CentOS 8 system to conserve the memory whenever you want.

How to Install Wine 4 on CentOS 8:

Install EPEL Repos on CentOS 8

Wine is not included in the default CentOS 8 repositories but however available on EPEL repos. Therefore, run the command below to install EPEL repos:

$ dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm

To run Wine on CentOS 8:

Wine command takes the following syntax.

$ wine program [arguments]

To obtain help on Wine usage;

$ wine --help

Consult man pages for Wine for more insight.

$ man wine

Before you can use Wine to run Windows applications, reboot your system to setup the Wine environment.

$ systemctl reboot

5 Key Google Chrome Extensions

This article covers the key Google Chrome extensions which will definitely enhance your browsing experience and will make Google Chrome even more helpful and useful for you. Google Chrome extensions are programs that can be installed into Chrome in order to change the browser's functionality.

Adding to do lists or notes to Chrome. Password management. Making it easier to copy text from a site. Protect your privacy and making web browsing more secure.

Some extensions can be ethically dubious or even malicious, but Chrome features new restrictions on extension developers that should help mitigate that problem.

Unzip Files in Linux - How to perform it ?

This article covers how to use the unzip command on the CentOS 8 Linux system.

Also, you will learn various uses of the unzip command through which you can list ZIP archive content and extract files. You can utilize the unzip command according to your needs.

How to Create a ZIP File with the zip Command ?

To create a ZIP file, you need to tell zip the name of the archive file and which files to include in it. 

You don't need to add the ".zip" extension to the archive name, but it does no harm if you do.

To create a file called source_code.zip containing all the C source code files and header files in the current directory, you would use this command:

$ zip source_code *.c *.h

How to Unzip a ZIP File With the unzip Command ?

To extract the files from a ZIP file, use the unzip command, and provide the name of the ZIP file. 

Note that you do need to provide the ".zip" extension.

$ unzip source_code.zip

To Unzip on the Linux command line:

The simplest option that will extract the contents to current directory:

$ unzip backup.zip

To change the target directory for extracted material, use -d option followed by the desired directory:

$ unzip backup.zip -d ./restore-directory

To preview contents of zip file:

$ unzip -l backup.zip

If you don't want to unzip the whole file, then add the specific files to extract at the end:

$ unzip backup.zip file1 subdirectory/file2

The inverse of the above command. Unzip every file EXCEPT the ones specified after the -x modifier:

$ unzip backup.zip -x file1 subdirectory/file2

Unzipping a password protected file:

$ unzip -p mypassword backup.zip

Install and Run Python on CentOS 8 - How to do it ?

This article covers how to install python2 and python3 on CentOS 8. By default, python2 and python3 are not installed on CentOS 8. To install both, you need to install all python packages separately according to python versions. Also, you can run python2 and python3 environments on your system. 

The 'alternatives --auto python' command is used to set any python version as the default. 

To run Python in Linux:

A widely used way to run Python code is through an interactive session. 

To start a Python interactive session, just open a command-line or terminal and then type in python, or python3 depending on your Python installation, and then hit Enter .

Python comes preinstalled on most Linux distributions, and is available as a package on all others. 

However there are certain features you might want to use that are not available on your distro's package. 

You can easily compile the latest version of Python from source.

Installing Python 3 on Linux:

1. To see which version of Python 3 you have installed, open a command prompt and run

$ python3 --version

2. If you are using Ubuntu 16.10 or newer, then you can easily install Python 3.6 with the following commands:

$ sudo apt-get update

$ sudo apt-get install python3.6

3. If you're using another version of Ubuntu (e.g. the latest LTS release) or you want to use a more current Python, we recommend using the deadsnakes PPA to install Python 3.8:

$ sudo apt-get install software-properties-common

$ sudo add-apt-repository ppa:deadsnakes/ppa

$ sudo apt-get update

$ sudo apt-get install python3.8

4. If you are using other Linux distribution, chances are you already have Python 3 pre-installed as well. If not, use your distribution's package manager. For example on Fedora, you would use dnf:

$ sudo dnf install python3

To see if pip is installed, open a command prompt and run:

$ command -v pip

Reboot Linux Mint 20 - How to do it ?

This article covers methods to reboot the Linux Mint. If you want to shut down your Linux Mint instead of rebooting, Learn How to Shutdown Linux Mint 20 .

Rebooting is the same as restarting, and close enough to powering off and then turning off your device. The purpose is to close and reopen the operating system. Resetting, on the other hand, means taking the device back to the state in which it left the factory. Resetting wipes all your personal data.

The systemctl command accepts, among many other options, halt (halts disk activity but does not cut power) reboot (halts disk activity and sends a reset signal to the motherboard) and poweroff (halts disk acitivity, and then cut power). These commands are mostly equivalent to starting the target file of the same name.

To reboot Linux:

1. To reboot the Linux system from a terminal session, sign in or "su"/"sudo" to the "root" account.

2. Then type " sudo reboot " to reboot the box.

3. Wait for some time and the Linux server will reboot itself.

To shut down Linux Mint:

Execute the following command:

sudo chmod u+s /sbin/shutdown

You will be prompted for your root password. After that, you're done and can type "exit" to exit out of the Terminal.

Linux Commands to Shutdown and Reboot the System:

1. Linux shutdown / reboot command. On Linux, like all tasks, the shutdown and restart operations can also be done from the command line.

2. "shutdown" command.

3. "reboot" command.

4. "halt" command.

5. "poweroff" command.

6. REISUB - R E I S U B key strokes.