Linux tips
What is patch? Apply a diff file to an original.
What is hwclock? Query and set the hardware clock.
In RedHat Linux,issue the following command to modify the time or date:
#timeconfig
select Asica/Shanghai
#ntpdate
sync the time with the specified time server
#date
Instead of strings in vi tools:
:%s/string/new_string/8
Check the running leve:
#runlever
I issue this command in GUI of Linux 9.0, the result was 3.
Identify the logining user:
#who am i
#whoami print effective user id
#id print read and effective UIDs and GIDs
We can create and edit this file “/etc/motd” to display own messages when login in.
What is “NONUS”? It means non-US.
Execute the following command to reset the language of system:
# export LANG=”en-US”
Sometimes,this method resolves some Code displaying matters.