33.Basic Commands
33.Basic Commands
WITH
BASIC COMMANDS
LINUX & SCRIPTING
Mr. RAM
LOGIN PROCEDURE:
When switch on your system it will ask your Login name and password, that
is as follows:
After you had entered correct Login name and password, then it will show:
# ---> Super User Prompt
$ ---> Normal user prompt
List all available man pages on the system and provide a short description.
$man -k .
Output a short description of the specified man page. Keyword must be the
exact name of a man page.
$man -f <keyword>
$man -f dnf
LINUX & SCRIPTING
Mr. RAM
BASIC COMMANDS:
For you to be able to work with different parts of the system, you need to
know how to get around the system! In this section, we look at the following
basic commands:
$pwd : It shows Present Working Directory
$date : Print or set system date and time
$cal : Display a calendar
$cal 2050 : Displays 2050-year total month calendars
$cal 08 2050: Aug 2050-year calendar.
$whoami : Print effective user name
$logname : Displays current login username
$uname : Displays system information
$uname -r : Release kernel version
$uname -i : Print hardware platform
$arch : Displays os architecture
$uname -a : Print all information
$who / w : Displays who is logged on
$who -b : Print system last reboot time
$uptime : How long server is up and running time, connected users and
load average.
$free -m : To check free and used memory space
$df -h : To check disk free size
$du -h : To check disk usage
$tty : Terminal position
$which : Shows full path of commands (E.g.: $which date)
$whereis : Locate the binary, source, manual page files for a command.
$clear : To clear the terminal screen