Linux學(xué)習(xí)筆記

這個(gè)學(xué)習(xí)筆記是根據(jù)Redhat7《System Administrator's Guide》學(xué)習(xí)時(shí)所記下的部分要點(diǎn)。

chapter 1 Locale

the text console command is “l(fā)ocalectl”,popular options:

  1. status
  2. list-locales
  3. set-locale LANG=
  4. list-keymaps
  5. ...

And we can use man localectl or localectl --helpfor help and more imformation;
the configuration file is located at /etc/locale.conf

chapter 2 Date and Time

the text console commands are timedatectl(which is new in RedHat 7),date(traditional command) and hwclock(for hardware)

timedatectl

part of systemd system and be able to change the configuration of system clock.

popular options:

  1. without option(display current date and time)
  2. restart system-timedated.services(if the chrony or ntpd was changed,better to run this command )
  3. set-time HH:MM:SS(similar to both use date --set and hwclock --systohc;will fail if ntp service works)
  4. set-local-rtc boolean(boolean is replaced by yes or no to determine to use local time or UTC)
  5. set-time YYYY-MM-DD(change the current date;without specifying the current time,the time will be setted to 00:00:00)
  6. list-timezones
  7. set-timezones timez_one
  8. set-ntp boolean(synchronizate the time from remote server using NTP protocol)

date

is availiable on all Linux systems.

popular options:

  1. without option(display the date and time)
  2. --utc/-u(display in UTC)
  3. +"format"(custom display using "%" and the first letter of the time word)
  4. --set HH:MM:SS
  5. --set HH:MM:SS --utc

ATTENTION:Careful about the distinguish of the component between timedatectl and date while setting current date and time,and the former is one component using the symbol '' besides the latter is both one and two component using the key space.

hwclock

When the operating system shutdown,the hardware clock keeps run.And this command configurates and managers the hardware clock.

popular options:

  1. without options
  2. --set --date "dd mmm yyyy HH:MM"
  3. --systohc
  4. --hctosys
  5. --systohc --localtime/--utc

chapter 3 Managing Users and Groups

see the reserved uid an gid by using this command:

cat /usr/share/doc/setup*/uidgid

It's recommended to assign non-reserved IDs starting from 5000,by changing the value of UID_MIN and GID_MIN in /etc/login.defs file.

User Private Group

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
  • 序言:七十年代末辉浦,一起剝皮案震驚了整個(gè)濱河市网沾,隨后出現(xiàn)的幾起案子慌核,更是在濱河造成了極大的恐慌谈跛,老刑警劉巖蜕猫,帶你破解...
    沈念sama閱讀 222,729評(píng)論 6 517
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件箫措,死亡現(xiàn)場(chǎng)離奇詭異腹备,居然都是意外死亡,警方通過(guò)查閱死者的電腦和手機(jī)斤蔓,發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 95,226評(píng)論 3 399
  • 文/潘曉璐 我一進(jìn)店門植酥,熙熙樓的掌柜王于貴愁眉苦臉地迎上來(lái),“玉大人附迷,你說(shuō)我怎么就攤上這事惧互。” “怎么了喇伯?”我有些...
    開封第一講書人閱讀 169,461評(píng)論 0 362
  • 文/不壞的土叔 我叫張陵喊儡,是天一觀的道長(zhǎng)。 經(jīng)常有香客問(wèn)我稻据,道長(zhǎng)艾猜,這世上最難降的妖魔是什么? 我笑而不...
    開封第一講書人閱讀 60,135評(píng)論 1 300
  • 正文 為了忘掉前任捻悯,我火速辦了婚禮匆赃,結(jié)果婚禮上,老公的妹妹穿的比我還像新娘今缚。我一直安慰自己算柳,他們只是感情好,可當(dāng)我...
    茶點(diǎn)故事閱讀 69,130評(píng)論 6 398
  • 文/花漫 我一把揭開白布姓言。 她就那樣靜靜地躺著瞬项,像睡著了一般。 火紅的嫁衣襯著肌膚如雪何荚。 梳的紋絲不亂的頭發(fā)上囱淋,一...
    開封第一講書人閱讀 52,736評(píng)論 1 312
  • 那天,我揣著相機(jī)與錄音餐塘,去河邊找鬼妥衣。 笑死,一個(gè)胖子當(dāng)著我的面吹牛,可吹牛的內(nèi)容都是我干的税手。 我是一名探鬼主播蜂筹,決...
    沈念sama閱讀 41,179評(píng)論 3 422
  • 文/蒼蘭香墨 我猛地睜開眼,長(zhǎng)吁一口氣:“原來(lái)是場(chǎng)噩夢(mèng)啊……” “哼芦倒!你這毒婦竟也來(lái)了狂票?” 一聲冷哼從身側(cè)響起,我...
    開封第一講書人閱讀 40,124評(píng)論 0 277
  • 序言:老撾萬(wàn)榮一對(duì)情侶失蹤熙暴,失蹤者是張志新(化名)和其女友劉穎,沒(méi)想到半個(gè)月后慌盯,有當(dāng)?shù)厝嗽跇淞掷锇l(fā)現(xiàn)了一具尸體周霉,經(jīng)...
    沈念sama閱讀 46,657評(píng)論 1 320
  • 正文 獨(dú)居荒郊野嶺守林人離奇死亡,尸身上長(zhǎng)有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點(diǎn)故事閱讀 38,723評(píng)論 3 342
  • 正文 我和宋清朗相戀三年亚皂,在試婚紗的時(shí)候發(fā)現(xiàn)自己被綠了俱箱。 大學(xué)時(shí)的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片。...
    茶點(diǎn)故事閱讀 40,872評(píng)論 1 353
  • 序言:一個(gè)原本活蹦亂跳的男人離奇死亡灭必,死狀恐怖狞谱,靈堂內(nèi)的尸體忽然破棺而出,到底是詐尸還是另有隱情禁漓,我是刑警寧澤跟衅,帶...
    沈念sama閱讀 36,533評(píng)論 5 351
  • 正文 年R本政府宣布,位于F島的核電站播歼,受9級(jí)特大地震影響伶跷,放射性物質(zhì)發(fā)生泄漏。R本人自食惡果不足惜秘狞,卻給世界環(huán)境...
    茶點(diǎn)故事閱讀 42,213評(píng)論 3 336
  • 文/蒙蒙 一叭莫、第九天 我趴在偏房一處隱蔽的房頂上張望。 院中可真熱鬧烁试,春花似錦雇初、人聲如沸。這莊子的主人今日做“春日...
    開封第一講書人閱讀 32,700評(píng)論 0 25
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽(yáng)。三九已至辩蛋,卻和暖如春呻畸,著一層夾襖步出監(jiān)牢的瞬間,已是汗流浹背悼院。 一陣腳步聲響...
    開封第一講書人閱讀 33,819評(píng)論 1 274
  • 我被黑心中介騙來(lái)泰國(guó)打工伤为, 沒(méi)想到剛下飛機(jī)就差點(diǎn)兒被人妖公主榨干…… 1. 我叫王不留,地道東北人。 一個(gè)月前我還...
    沈念sama閱讀 49,304評(píng)論 3 379
  • 正文 我出身青樓绞愚,卻偏偏與公主長(zhǎng)得像叙甸,于是被迫代替她去往敵國(guó)和親。 傳聞我的和親對(duì)象是個(gè)殘疾皇子位衩,可洞房花燭夜當(dāng)晚...
    茶點(diǎn)故事閱讀 45,876評(píng)論 2 361

推薦閱讀更多精彩內(nèi)容

  • 一開始糖驴,我以為這又是一部關(guān)于愛情的雞湯書僚祷。《謝你不娶之恩》贮缕,聽起來(lái)那么拽辙谜,可是做起來(lái)真是難如登天啊。經(jīng)常有人說(shuō)世界...
    林資言閱讀 249評(píng)論 0 1
  • 我沒(méi)有足夠的幸運(yùn)來(lái)選擇一個(gè)好的出生。就像世界上三分之二的人一樣無(wú)法擁有一個(gè)不努力就可以讓你過(guò)得很好的家庭定嗓。沒(méi)有那...
    青韻之安閱讀 408評(píng)論 0 0
  • 今天,我們來(lái)灌個(gè)雞湯恃逻! 我記得拿破侖希爾曾經(jīng)說(shuō)過(guò):窮人有兩個(gè)非常典型的心態(tài)号醉,永遠(yuǎn)對(duì)機(jī)會(huì)說(shuō)”不“,總想著”一夜暴富“...
    蘇東生Ins閱讀 325評(píng)論 0 0
  • 當(dāng)電腦閃閃發(fā)光的屏幕上顯示出的那幾個(gè)數(shù)字和我手里那張薄薄紙上數(shù)字完全吻合后辛块,我心和手同時(shí)顫抖了起來(lái)畔派。 我拼命地讓自...
    半朽閱讀 735評(píng)論 11 15
  • 上完兩次課以后,明顯的改變就是開始聯(lián)想了润绵,橫的线椰、縱的、天馬行空的尘盼,雖然稍縱即逝憨愉,雖然有時(shí)正在我為自己有點(diǎn)小興奮...
    暖暖的高效慢生活閱讀 553評(píng)論 3 0