![]() | Linux Operating Systems |
Chapter 04: Basic CommandsBasic Commands and Operations
Time an operation Syntax time command Example [eninam@localhost ~]$ time pwd Terminate the shell [eninam@localhost ~]$ exit [eninam@localhost ~]$ logout [root@lab ~]# hostname Dipslay your host machine name [root@lab ~]# hostname name change your host machine name temporary [root@lab ~]# reboot restart machine [root@lab ~]# hostnamectl set-hostname hostname Change System Host name stored in /etc/hostname Shutdown System[root@lab ~]# systemctl poweroff[root@lab ~]# shutdown –option time [+] [root@lab ~]# init 0 Time
LanguageChange system languageSyntax localectl set-locale language-code Example [root@localhost eninam]# localectl set-locale LANG=fr_FR.utf8 Language selection for a command Example [eninam@localhost ~]$ LANG=fr_FR.utf8 cal Display calendar in french [root@localhost eninam]# clear erase shell prompt [root@localhost eninam]# history show user recently used commands |