Tutorials on Linux, Programming & Technology

How To Find Last Login on Linux

How To Find Last Login on Linux?

To find the last login on Linux, use the “last”, “lastlog”, “/var/log/auth.log”, “who” and “lastb” commands that display username, terminal, date, and time.

How to Print an Array in Python

How to Print an Array in Python?

To print the simple array or numpy array the “print()” method and “for loop” method are used in Python. The “numpy.array()” function creates the numpy array.

How to Get Max Int in Python?

How to Get Max Int in Python?

To find the max int, the “sys.maxsize()” and “np.iinfor()” functions are used in Python. The “~sys.maxsize” is used to find the minimum integer.

How to Get Timestamps in Python

How to Get Timestamps in Python?

To get timestamps in Python, the “datetime”, “calendar”, and “time” modules are used. The “datetime” module can be used to convert timestamps into DateTime.

How to Display Images in Python

How to Display Images in Python?

To display the images in Python, the “Pillow” module, the “OpenCV” module, the “Scikit-Image” module, the “Matplotlib” module, and the “Tensorflow” are used.

Python Range of Float Numbers

Python Range of Float Numbers

To create the range of float numbers, the “np.arange()” function, “np.linspace()” function, list comprehension method, and Yield keyword are used in Python.

What is Load Average in Linux

What is Load Average in Linux?

Load average is the measure to determine the processes running or waiting to be run on the CPU. Three different methods can find the load average.

How to Run the getent Command in Linux

How to Run the getent Command in Linux?

To run the getent command in Linux, follow the general syntax “getent [Options] [Database] [Key]”. It finds the information from the computer’s databases.

Nmap Xmas Scan

Nmap Xmas Scan

The Xmax scan can be performed using the nmap command in the system. This scan displays the status of the ports of the target machine.

What is dev/null in Linux

What is /dev/null in Linux?

The “/dev/null” is a powerful tool in Linux that allows users to discard unwanted data, suppress error messages, make files disappear, and many more.

How to see rsync progress

How to See rsync Progress?

To see the rsync command progress, either use the “–progress” option of the rsync command or pipe the rsync command with “pv -lep”.

SCP Remote to Local

SCP Remote to Local

To copy the files from the remote to the local machine using the SCP, run the command “scp [user@SRC_HOST:]file1 hostmachine_loation”.

Bash For Each Line in File

Bash For Each Line in File

To implement the for each line operation on a file, the for loop is used in Bash scripting. This can be used to read each line of a file.

How to Change MTU Size in Linux

How to Change MTU Size in Linux?

To change the MTU size instantly in Linux, the ip, and ifconfig commands and to make them permanently make changes in the network configuration file.

How to Set java_home in Ubuntu

How to Set JAVA_HOME in Ubuntu?

To set the “JAVA_HOME” variable in Ubuntu, assign the path of the “javac” package to the JAVA_HOME variable in the bashrc file.

What Does chmod 777 Mean in Linux

What Does chmod 777 Mean in Linux?

The chmod 777 means that all the file users, including the owner, group members, and the other users, can perform the reading, writing, and execution.

What is libstdc++ so 6 in Linux

What is libstdc++ so 6 in Linux?

The “libstdc++6” is a dependency package of the GCC compiler, and “libstdc++.so.6” is the symbolic link that points to the GCC path.

OpenCV – Show Image – imshow()

OpenCV – Show Image – imshow()

In Python, first, the “cv2.imread()” function reads an image. After that, the “cv2.imshow()” function shows the image that is read by the “cv2.imread()”.

Completely Uninstall Python From Windows

Completely Uninstall Python From Windows

To completely uninstall Python from windows, you can use the “del” keyword from the “CMD” terminal or the “Add or Remove” setting from the control panel.

How to Check Your Python Version

How to Check Your Python Version?

To check the Python version on windows, the “python -V”, sys.version, and Python_version() function is used. For Linux, the “python3 –version” command is used.

Open a Port in CentOS

How to Open a Port in CentOS?

CentOS offers the “firewall-cmd –permanent –add-port=80/tcp” command to open a port in the system. For this, configure the firewall to allow traffic.

Disable IPv6 on CentOS

How to Disable IPv6 on CentOS / RHEL?

CentOS / RHEL offers the “sysctl” configuration file and “kernel” module to disable IPv6 in the system. For this, setting the disable_ipv6 parameter to 1.

How to Configure Docker to Use Proxy

How to Configure Docker to Use Proxy?

To configure Docker to use a proxy, set the proxy information in the Docker daemon configuration file or pass the proxy information as environment variables.

Understanding Ubuntu Hosts File

Understanding Ubuntu Hosts File

Ubuntu offers the “hosts” file to map the hostnames to IP addresses. Ubuntu’s default location of the hosts file is “/etc/hosts”.

How to Clear Bash History in Linux

How to Clear Bash History in Linux?

Linux offers the “history” command with the “c” option to clear the bash history. It removes all the records of previously entered commands in the terminal.

How to Clean YUM Cache in CentoS RHEL

How to Clean YUM Cache in CentOS/RHEL?

CentOS / RHEL offers the “clean all” command to clean the entire YUM cache, including “metadata ”, “package headers”, and “packages” from the system.