Tutorials on Linux, Programming & Technology

Mount a CIFS Share

How Do I Mount a CIFS Share?

The CIFS share is mounted when the mount command is used with the cifs-utility. To automatically mount, credentials are added in the/etc/fstab file.

What Does_Mean in Bash

What Does <<< Mean in Bash?

In Bash, the “<<<” operator means “here strings.” It allows users to pass a string as the standard input to a command via the “command <<< string” syntax.

How to Test a PHP Script in Linux

How to Test a PHP Script in Linux?

To test the PHP script in Linux, create a .php script file and run the “php script_name.php” command. Also, users can access the script file in the web browser.

How to Get IP Addresses in Python

How to Get IP Addresses in Python?

The “gethostbyname()” function, “requests module”, “socket.getaddrinfo()”, and “socket.getsockname()” functions are used to get IP addresses in Python.

How to Hide curl Output in Linux

How to Hide curl Output in Linux?

The curl command’s output could be long sometimes, so the output is hidden to avoid cluttering the terminal. However, errors can be displayed.

What are PPAs and how to Use them

What are PPA’s and How to Use Them?

Personal Package Archives or PPAs are used to distribute software to users not available in the official repositories without waiting for official approval.

Private Methods in Python

Private Methods in Python

A private method in Python can only be accessed within the class in which it is defined. Private methods are denoted by double underscores (__).

How to Print Dictionary in Python

How to Print Dictionary in Python?

The “for loop” method, dict.items(), dict.keys(), list comprehension, json.dumps(), itemgetter module, and pprint.pprint() function is used in Python.

How to Set Index in Pandas DataFrame

How to Set Index in Pandas DataFrame?

The “set_index()” method, “reset_index()” method, “reindex()” method, and “sort_index()” method is used to set indexes in Pandas DataFrame.

How to Decode UTF-8 in Python

How to Decode UTF-8 in Python?

To decode UTF-8, the “decode()” method, the “open()” function and the “codecs.open()” function of the codecs module are used in Python.

How to Return List in Python

How to Return List in Python?

To return a Python list to the function, the return statement, list comprehension, and lambda function are used in Python.

How to Check the File Size in Python

How to Check the File Size in Python?

To check file size, the “os.path.getsize()” function, “os.stat()” function, “pathlib.Path.stat()” function, and “file.tell()” method is used in Python.

What is a Chain in iptables in Linux

What is a Chain in iptables in Linux?

In iptables, chains provide a flexible and powerful way to manage network traffic. Users can create custom chains and define specific sets of rules in them.

arping Command on Linux Explained

arping Command on Linux | Explained

In Linux, the “arping” command sends ARP requests to the host by specifying the IP address and verifying the availability of hosts on a network.

lftp Command in Linux

lftp Command in Linux

The “lftp” command transfers or manages files in a remote machine by making a connection over protocols including UDP, HTTP, FTP, and many more.

What is a .ts File

What is a .ts File?

The .ts is the “Transparent Stream” acronym and is a type of video format. This is used to store videos on DVDs and stream them over the internet.

How to Follow Redirects Using curl

How to Follow Redirects Using curl?

To follow the redirect to the URL, execute the “curl -L ” command. Before it, users must ensure that the “curl” command is installed in the system.

lrwxrwxrwx in Linux

lrwxrwxrwx in Linux

The “lrwxrwxrwx” permission specifies that the symbolic link to another file has read, write, and execution permissions to all its users and groups.

How to Use WPA_Supplicant

How to Use WPA_Supplicant?

In Linux, use the WPA_Supplicant to connect with the Wi-Fi networks. Also, establish connections with hidden, insecure networks and WEP routers.