×


Search For:


Python range() function in Linux

This article covers how to use the range() function in Python via examples. In fact, The range() function is used to generate a sequence of numbers over time. At its simplest, it accepts an integer and returns a range object (a type of iterable). In Python 2, the range() returns a list which is not very efficient to handle large data.


Python ord() function in Linux

This article covers how to use the ord() function in Python. In fact, The ord() function (short of ordinal) returns an integer representing the character passed to it. For ASCII characters, the returned value is 7-bit ASCII code, and for Unicode characters, it refers to the Unicode code point.


Python divmod() function in Linux

This article covers how to use the divmod() function in Python. In fact, Python divmod() function is employed to return a tuple that contains the value of the quotient and therefore the remainder when dividend is divided by the divisor. It takes two parameters where the first one is the dividend and the second one is the divisor.


Python divmod() function Parameter Values:

  • divident - This parameter contains the number you want to divide.
  • divisor - This parameter contains the number you want to divide with.


man command in Linux - An overview with examples ?

This article covers how to use the man command in Linux. In fact, the man command allows users to view the reference manuals of a command or utility run in the terminal. The man page (short for manual page) includes a command description, applicable options, flags, examples, and other informative sections.


How to Enable Case-Sensitivity using man command ?

To search for manual pages using case-sensitivity, use the -I option. The syntax is:

$ man -I [command name]

The man default setting is to ignore case when looking up manual pages. To go back to default settings and ignore case, use the -i option.


How to Use man in Linux ?

In the terminal window, type man followed by the Linux command name which man page you want to see.

The output of the command displays the available man page headings for the specified command.

The list of possible headings includes:

  • Name: The name of the command.
  • Synopsis: The command's syntax.
  • Configuration: Configuration details for a device.
  • Description: A description of the command.
  • Examples: Several examples demonstrating the use of the command.
  • Defaults: The default functions of the command and how they can be overridden.
  • Options: A list of options and flags that the command accepts.
  • Exit Status: A list of possible exit status values for the command.
  • Environment: A list and description of environment variables that affect the command.
  • Files: A list of files used by the command.
  • See also: Commands related to the described topic.
  • Authors: The people who wrote or maintain the command.
  • History: Command development history.
  • Notes: Various notes, including permissions required, dependencies, etc.
  • Bugs: Any known issues in this program version.


Install Percona Database Server on Ubuntu 20.04 - Step by step guide ?

This article covers the process of installing Percona Database Server on Ubuntu 20.04. In fact, Percona Server is fully compatible and a replacement for Oracle MySQL. Percona Server is used by thousands of enterprises to provide superior performance, scalability, and instrumentation for their workloads.


Install Asterisk on Ubuntu 20.04 - Step by step guide ?

This article covers how to install Asterisk on Ubuntu 20.04. In fact, Asterisk is a free and open-source VoIP server used for building a VoIP telephony infrastructure for all sizes of organizations. Now, you can now connect your server to any PSTN network and start calling absolutely free.