Ch.3 Working with the linux shell Flashcards
command to check current locale settings
localectl
command to set an environment variable
- export variable_name=value
- <variable_name>=<value>;export
</value></variable_name>
command to set system clock to a specific timezone
timedatectl set-timezone “timezone”
command used for reporting information from and managing the system clock
date
date %
%D or %m/%d/%y
Full date %
%F or %Y-%m-%d
Full weekday name %
%A
Locale category for telephone number format
LC_TELEPHONE
locale category for address format
LC_ADDRESS
Locale category for how characters are compared and sorted
LC_COLLATE
Nanosecond %
%N
What can cause attempting to set the time with timedatectl command to not work?
If the environment is using NTP
What clocks does a linux OS use?
Hardware clock or real-time clock (RTC)
and
System clock
What defines settings that remain persistent even after logging off or rebooting?
Configuration files
When looking at a variables properties, what does -x indicate?
signifies that it is an environment variable
Which variable is visable to child processes?
environment variable
Which variable only exists in memory spaces of the shell it was created in?
shell variable
command format to print specifics about time and date
date +%
command that displays a list of all environment variables in the current shell
env
command that displays a list of shell variables and functions in the current process
set
command that displays a variables properties
declare -p <variable>;</variable>
command to delete a variable and remove it form the environment
unset
command to convert existing shell variables to environment variables
export <variable_name>;</variable_name>
command to list available timezones to set the system clock to
timedatectl list-timezones