Tutorials on Linux, Programming & Technology

How to chown Recursively on Linux

How Do We Make chown Recursive?

To make the chown recursive, use the syntax “chown -R [Mode] [Directory/Path]” for changing the ownership, or “chown -R :[Gorup] [Directory/Path]” for the group.

How Do I Upgrade Docker on Ubuntu

How to Upgrade Docker on Ubuntu?

To upgrade Docker on Ubuntu, first, uninstall docker’s old version. Then, download and install the latest Docker package from the official Docker repository.

Python One Line If Else

Python One Line If Else

The Python one-line “if”, “if-else” and “if-elif-else” statements are created using the ternary operator or conditional expression.

Python foreach Loop

Python foreach Loop

The “for-in” expression, “list comprehension” and “map()” function is used to perform the “foreach” loop on every element of the given iterator in Python.

Multiple Ways to Create File in Python

Multiple Ways to Create File in Python

The “open()” function is used with the “w” mode to create a file with writing permissions or use the open() function with “x” mode to create an empty file.

How to Open a File in Python

How to Open a File in Python?

To open a file in Python, the “open()” function is used. A file can be opened in various modes such as read mode, write mode, append mode, etc.

How to Find the Array Length in Python

How to Find the Array Length in Python?

To find the array length the “len() function”, “array.size” attribute, “for loop”, “array.shape” attribute, and “length_hint()” functions are used in Python.

How do I install .run files

How to install .run files?

In Linux, all the “.run” files can be installed by using the “chmod” command and the “Permissions” options to make them executable.

How do I Check Which Shell I am Using

How to Check Which Shell I am Using?

In Linux, the “echo”, “ps”, “lsof”, and “readlink” commands become handy to check the shell. The “/etc/passwd” file also provides valid login shells.

How do I Install Fonts on Ubuntu

How do I Install Fonts on Ubuntu?

To install fonts on Ubuntu, use the “Font-Manager” application, add the font to the default font directory, or, manually create the font directory.

Is Linux Unix

Is Linux Unix?

Linux is a Unix-like operating system because it works on the same design and principle as Unix, but it is not the exact implementation of Unix.

What is the _eval_ Command in Bash

What is the “eval” Command in Bash?

In Bash, the “eval” command evaluates its arguments as a shell script including “commands”, “variables”, “arithmetic expressions”, and “strings”.

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 Can I Use Docker Without sudo

How Can I Use Docker Without sudo?

Create the docker group (if it does not exist), add the particular user to the docker group, and then restart your computer to apply the changes.

How to Reverse an Array in Python

How to Reverse an Array in Python?

To reverse an array in Python, the “reverse()” method, “reversed()” method, “flip()” method, and “Slicing” method are used.

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.

TTy Definition and its uses

TTY: The Definition and Its Uses

The TTY is a character-based device used as a medium for entering data, still a crucial part of the operating systems but in software form.

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.

How to Concatenate Two Lists in Python

How to Concatenate Two Lists in Python

To create the list of tuples in Python, the “square bracket[]”, “map()” function, “zip()” function, and the List Comprehension method are used.

How to Concatenate Two Lists in Python

How to Concatenate Two Lists in Python?

To concatenate two lists the “+ Operator”, “extend()” function, “itertools.chain()” function, “the ‘*operator” and list comprehension is used in Python.