Command Description sudo adduser username To display value of a variable sudo passwd -l ‘username’ Displays all environment variables sudo userdel -r ‘username’ Create a new variable sudo usermod -a -G GROUPNAME USERNAME Remove a variable sudo deluser USER GROUPNAME To set value of an environment variable finger Gives information on all logged in user …
Start reading User management commands of linuxBlog
Command Description echo $VARIABLE To display value of a variable env Displays all environment variables VARIABLE_NAME= variable_value Create a new variable Unset Remove a variable export Variable=value To set value of an environment variable
Start reading Environment Variables commandCommand Description ls-l to show file type and access permission r read permission w write permission x execute permission -= no permission Chown user For changing the ownership of a file/directory Chown user:group filename change the user as well as group for a file or directory
Start reading File Permission commandsCommand Description ls Lists all files and directories in the present working directory ls-R Lists files in sub-directories as well ls-a Lists hidden files as well ls-al Lists files and directories with detailed information like permissions,size, owner, etc. cd or cd ~ Navigate to HOME directory cd .. Move one level up cd To change …
Start reading Basic Linux commandsWe can use the shell commands such as echo, awk, etc to perform the calculation. Addition using echo command. $ echo $((5+5)) 10
Start reading How to perform calculation in Linux using Linux Shell command?Qalculate is a multi-purpose cross-platform desktop calculator. It is simple to use but provides power and versatility normally reserved for complicated math packages, as well as useful tools for everyday needs (such as currency conversion and percent calculation). Features include a large library of customizable functions, unit calculations and conversion, symbolic calculations (including integrals and …
Start reading How to perform calculation in Linux using qalc command?gnome-calculator is the official calculator of the GNOME desktop environment. gcalccmd is the console version of Gnome Calculator utility. By default it has installed in the GNOME desktop. gcalccmd Command to perform calculationI have added few examples on this. $ gcalccmd 5+16 5-14 5*210 10/25 sqrt(16)4 3/50.6 quit
Start reading How to perform calculation in Linux using gcalccmd command?Print the value of EXPRESSION to standard output. A blank line below separates increasing precedence groups. It’s part of core utils so, we no need to install it. expr command to perform calculation :Use the following format for basic calculations. For addition $ expr 5 + 16For subtraction $ expr 5 – 14For division. $ …
Start reading How to perform calculation in Linux using expr command?We can use the calc command to perform all kind of calculation right from the terminal. Interactive mode $ calcC-style arbitrary precision calculator (version 2.12.7.1)Calc is open software. For license details type: help copyright[Type “exit” to exit, or “help” for help.] ; 5+16; 5-14; 5*210; 10/25; quitNon-Interactive mode $ calc 3/50.6
Start reading How to use the calc Command:calc is an arbitrary precision calculator. It’s a simple calculator that allow us to perform all kind of calculation in Linux command line. For Fedora system, use DNF Command to install calc. $ sudo dnf install calcFor Debian/Ubuntu systems, use APT-GET Command or APT Command to install calc. $ sudo apt install calcFor Arch Linux …
Start reading How to perform calculation in Linux using calc command?