Linux

Working With Environment Variable in Linux

Environment variables are a set of dynamic named values in Linux, used by applications launched in shell. It allow you to customize how the system works and the behavior of the applications. For example, the environment variable can store information about the default browser or the path to executable files. [...]

2022-03-29T19:11:11+05:30Categories: Linux|

Working with Directory in Linux

In this article, we will show you how to work with directory in Linux. We can create a directory using mkdir command. To delete a directory use rmdir command. Current Working Directory To find the current working directory, use pwd command as shown below. pwd What the pwd does is [...]

2022-03-10T19:30:31+05:30Categories: Linux|

List Files and Directories in Linux

The ls command list files and directories in Linux within the file system, and shows detailed information about them. This article will show you how to use the ls command through examples and most common ls options. Below is the syntax of the command ls [OPTION]... [FILE]... When used with [...]

2022-04-29T15:03:28+05:30Categories: Linux|

Command Line Hacks in Linux

Open current directory from Terminalxdg-open .Above command will be open current directory (single dot) in file explorer. xdg-open opens a file or URL in the user's preferred application. Syntax of the command isxdg-open {file URL}Open website from Terminalxdg-open 'http://www.freedesktop.org/'

2021-12-18T10:59:00+05:30Categories: Linux|Tags: |

Managing Packages in Linux using CLI

Packages can be updates using graphical user interface (GUI) and command line interface (CLI) in Linux. This post discusses about various commands which can be used for managing the software installed on the device running Linux. Linux package manger working Installing Packages apt-get is the command-line tool for handling packages. [...]

2021-12-16T18:13:58+05:30Categories: Linux|Tags: |

How to change default Python version ?

There are various ways to change the default Python version on Linux. This article discuss some of the ways to change the default version of Python. This article is equally applicable for other executable also. Below command will list all the versions of python installed on the device ls -ls [...]

2022-02-22T12:23:42+05:30Categories: Linux|Tags: |

Keyboard Shortcuts in Bash Shell

Terminal is a program called a terminal emulator. It opens a window and lets you interact with the shell. This post covers various keyboard shortcuts which are supported in bash and zsh shell. Key commands for both shells are similar and knowing these time-saving shortcuts can be a great boon [...]

2021-07-06T19:00:02+05:30Categories: Linux|Tags: |

apt Command in Linux

apt is a command-line utility for installing, updating and removing packages on Debian, and related Linux distributions. It performs a similar function to apt-get, but with some additional functions, conveniences, and features. Most of the apt commands must be run as a user with sudo privileges. Syntax Below is the [...]

2022-04-05T19:02:16+05:30Categories: Linux|

Division Functions in Linux kernel

On 64 bit Linux kernel, division (/) and modulus operator (%) will behaved as expected. GCC C compiler generates code that calls functions in the libgcc library to implement the / and % operations with 64-bit operands on 32-bit CPUs. Linux kernel is not linked against the libgcc library, so [...]

2021-04-07T11:37:16+05:30Categories: Linux|

How to find script file name in a Bash script?

Sometime we want to know the file name of the script which we are executing in bash scripting. One such scenarios is use the file name for logging purpose, without hardcoding the name of the script file. In the below example, readlink prints out the value of a symbolic link. [...]

2021-04-06T12:45:57+05:30Categories: Linux|Tags: |
Go to Top