Linux/bash

Top / Linux / bash

bash



/

! ޥɤȤäˤʤǤ

! ʲΤɤ餫¹
$ exit
$ <Ctrl + d>

ۥ󥽡ڤؤ

<Ctrl + Alt + {F1-F7}>
ڤؤ
F1-F6ۥ󥽡tty16
F7GUIĶ

ط

! ƥɽ
$ date

! ɽ
$ cal [[<month>] <year>]
  • ̣
    [[<month>] <year>ǯλꡣǯΤ߻ǰǯʬɽ̵ǤϺɽ

桼ɽ

$ who

ѥѹ

! ʬΥѥɤѹ
$ passwd

! 桼Υѥɤѹ
# passwd [<user-name>]
  • ̣
    [<user-name>]ѥ桼Ǥϥ桼̾ꤹ뤳Ȥǥȥѥ̵˥ѥɤѹ
    ! ޥ˥奢ɽ
    man [<section-id>] <keyword>
    
  • ̣
    [<section-id>]λʸҡ15褯Ȥäݤ
    <keyword>ɡޥɤȤե̾Ȥ
  • ֹ̣
    1桼ޥ
    2ƥॳ
    3֥롼
    4ǥХ
    5ե
    6
    7¾
    8ƥ

ե

ȥǥ쥯ȥɽ

$ pwd

ǥ쥯ȥư

$ cd [<path>]
  • ̣
    [<path>]ư衣ХѥǤХѥǤ⡣άϥۡǥ쥯ȥ˰ư

եΥꥹɽ

$ ls [<-options>] [<path>]
  • ץ
    ץ̣
    -aեɽ
    -lܺɽ
    -dǥ쥯ȥ꼫Ȥξɽ
    -Fե륿פɽ
    -R֥ǥ쥯ȥɽ
  • ̣
    [<path>]ꥹɽоݤΥѥեǤǥ쥯ȥǤ

եɽʰ٤

$ cat [<-options>] <path>
  • ץ
    ץ̣
    -nֹɽ
  • ̣
    <path>ɽե롣ʣ

եɽʰ̤ġ

$ more <path>
  • ̣
    <path>ɽե롣vivimǤϤʤˤɽΤviȤä

ե륿ɽ

$ file <path>
  • ̣
    <path>ɽե롣ʣ

ǥ쥯ȥ

$ mkdir [<-options>] <path>
  • ץ
    ץ̣
    -pꤷع¤
  • ̣
    <path>ǥ쥯ȥ

եॹ׹

$ touch <path>
  • ̣
    <path>/ե롣¸ߤʤեꤷ϶ե¸ߤեꤷϥॹ׹

ԡ

$ cp [<-options>] <source-path> <destination-path>
  • ץ
    ץ̣
    -i񤭻˳ǧ
    -rǥ쥯ȥ򥳥ԡ
  • ̣
    <source-path>ԡԡ˴¸ǥ쥯ȥ̾ꤹʣ
    <destination-path>ԡ衣¸ߤʤѥꤹȤ̾ǥԡ¸Υե̾ꤹȾ񤭥ԡ¸Υǥ쥯ȥ̾ꤹȤ۲˥ԡ

ư

$ mv [<-options>] <source-path> <destination-path>
  • ץ
    ץ̣
    -i񤭻˳ǧ
  • ̣
    <source-path>ưư˴¸ǥ쥯ȥ̾ꤹʣ
    <destination-path>ư衣¸ߤʤѥꤹȤ̾ѹ¸Υե̾ꤹȾ񤭤ưư¸Υǥ쥯ȥ̾ꤹȤ۲˰ư

$ rm [<-options>] <path>
  • ץ
    ץ̣
    -i˳ǧ
    -rǥ쥯ȥκ
    -fץեǧå̵Ǻ
  • ̣
    <path>о

Ȥõ

$ grep [<-options>] <keyword> <path>
  • ץ
    ץ̣
    -vޤޤʤԤ
    -cԿΤ߽
    -iʸʸ̤ʤ
    -nսιֹ
    -lԤޤե̾Τ߽
  • ̣
    <keyword>졣ɽġϥ󥰥륯ȤǰϤ
    <path>о

ʥեõ

$ find <path> [<-expression>] [<-action>]
  • ̣
    <path>ѥ
  • ץå
    ץạ̊
    -name <keyword>ե̾
    -size [+-] <size>ե륵ꡣ+ϻͤ礭-ϻͤ꾮
    -user <username>ͭ̾ꡣUIDǤ
  • ̣
    -exec <command> {}\;ĤեǤդΥޥɤ¹
    -printĤեΥѥϡǥեȤǻѤ

ʸ

$ wc [<-options>] <path>
  • ץ
    ץ̣
    -lԿ
    -wñʥڡ֤Ƕڤ
    -mʸ
    -cХȿ
  • ̣
    <path>о

ѡߥå

ѡߥåѹ

$ chmod <mode> <path>
  • ⡼ɻ
    • ܥå⡼ɤǻ
    • ⡼ɤǻ

Last-modified: 2011-10-12 () 22:02:38 (2474d)