×


Search For:


Linux Stat Command Examples

This article covers how to use the Linux stat command. Basically, The stat command gives important information about filesystems. stat command is a useful utility for viewing file or file system status. It retrieves information such as file type; access rights in octal and human-readable; SELinux security context string; time of file birth, last access, last data modification, last status change in both human-readable and in seconds since Epoch, and much more. Also, It has an option to specify a custom format instead of the default, for displaying information.


Install Wireshark on CentOS 8 - Best Method ?

This article covers how to install the Wireshark network analyzer tool on CentOS 8 system. Once Wireshark installed on your system, you can capture incoming and outgoing data packets over the network. Wireshark is free & Open source network packet analyzer that is used for network analysis, troubleshooting, etc. Wireshark is a cross-platform software that is available for various Linux/UNIX distributions, Mac-OS, Solaris, BSD & Windows, etc. It uses GTK to implement user interface & captures packets using PCAP. For additional help or useful information, we recommend you to check the official Wireshark website.


To Install package called Whireshark using the dnf command. For a GUI Wireshark application execute:

# dnf install wireshark

To install Wireshark command line tool only execute:

# dnf install wireshark-cli



Features of Wireshark includes:

  • Live packet capture & offline analysis.
  • A number of display filters.
  • Support for hundreds of protocol.
  • Rich VOIP analysis.
  • Read/write feature various file formats.
  • Live data can be read from ethernet port, Bluetooth, USB, Token rings tec.


Install Gradle on Ubuntu 20.04 - Best Method ?

This article covers the installation of Gradle on the Ubuntu system using different ways. Gradle is a free and open-source build tool primarily used for Java projects. Gradle helps you to automate, build and deliver software efficiently. Gradle uses Groovy object-oriented programming language instead of XML to define the project configurations. Gradle also supports many popular IDE platforms, such as Android Studio, Eclipse, IDEA, and NetBeans.


How to Install Java on Linux ?

Gradle needs Java to be installed on your system. You can install the latest version of Java by running the following command:

$ apt-get install default-jdk -y 

After installing Java, you can verify the Java with the following command:

$ java -version


Check CPU Temperature Using lm-Sensors and hddtemp

This article covers how you can monitor the temperature of your CPU cores, hard drive and other components attached to the motherboard.

When your PC is overheating, consider disassembling your PC and blowing it with a blower to get rid of all the dust which might be blocking the ventilation vents.

Also, ensure your laptop is placed on a hard surface and not on a cushy surface such as on a bed where the vents can easily get blocked.

Lastly, enable power saving mode and close any unnecessary applications.


Chmod Command in Ubuntu 20.04 - How it Works ?

This article covers both the symbolic and numeric mode of the chmod command. Control who can access files, search directories, and run scripts using the Linux's chmod command. This command helps modifies Linux file permissions.

In Linux, who can do what to a file or directory is controlled through sets of permissions. There are three sets of permissions. One set for the owner of the file, another set for the members of the file's group, and a final set for everyone else.


To change directory permissions in Linux, use the following:

  • chmod +rwx filename to add permissions.
  • chmod -rwx directoryname to remove permissions.
  • chmod +x filename to allow executable permissions.
  • chmod -wx filename to take out write and executable permissions.



We can use the -l (long format) option to have ls list the file permissions for files and directories.

$ ls -l


chmod Numerical Shorthand:

  • 0: (000) No permission.
  • 1: (001) Execute permission.
  • 2: (010) Write permission.
  • 3: (011) Write and execute permissions.
  • 4: (100) Read permission.
  • 5: (101) Read and execute permissions.
  • 6: (110) Read and write permissions.
  • 7: (111) Read, write, and execute permissions.


Install and Use Vim Editor in Linux - Best Method ?

This article covers how to install vim, followed by some basics on using vim and then uninstalling it. Vim (Vi IMproved) is a text editor that is upwards compatible to Vi. It can be used to edit all kinds of plain text. It is especially useful for editing config files and programs written in shell, python, perl, c/c++ and more. 

Among the various text editors in the world of Linux, Vim (or Vi IMproved) stands out for its versatility and for the functions it offers. In fact, Vim is able to speed up code writing, providing some shortcuts to perform all the operations of modification, deletion or replacement of the text. 

Vim Text Editor also allows you to install different plugins through which transforming this simple text editor into a real IDE for programming in different languages.


How to Install vim using apt on Linux ?

1. Open terminal application. You can also press CTRL+ALT+T keyboard shortcut.

2. Update package database by typing the sudo apt update command.

3. Search for vim packages run: sudo apt search vim.

4. Install vim on Ubuntu Linux, type: sudo apt install vim.

5. Verify vim installation by typing the vim --version command.