728x90
728x90
728x90

# 가장 기본, info(=information)과 man(=manual)

info  # command 설명서, arrows key로 command가서 enter치면 해당 command information조회

info command  # 특정 command의 information조회

man command  # 특정 comman의 manual을 조회, 

(info는 default format for cocumentation inside the GNU project, Texinfo를 source format으로 사용하여 good-looking printed version이나 PDF로 변환이 쉬움, combined manuals로 like a book임)

(man은 the much older traditional format for UNIX, specific topic 정보 전달에 가까움)

(즉, specific하게는 man사용, 전체적으로 보려면 info사용)

 

참고자료:

askubuntu.com/questions/9325/what-is-the-difference-between-man-and-info-documentation

 

What is the difference between "man" and "info" documentation?

Regarding man-pages and info help documentation: Why do two such similar sources of documentation exist? Sometimes a man-page is available and the info is not; or vice-versa. I haven't yet latch...

askubuntu.com

 

728x90

'CS' 카테고리의 다른 글

[Ubuntu]command cd  (0) 2020.11.12
[Ubuntu]redirection  (0) 2020.11.12
[Ubuntu]command tr  (0) 2020.11.12
[Pandas]dataframe에서 특정 column값 기준으로 상위 rows 선별  (0) 2020.11.10
[Pandas]dataframe의 row를 shuffle하기  (0) 2020.11.10
728x90

tr  # translate, squeeze, and/or delete characters from standard input, writing to standard output.

 

echo "My UID is $UID" | tr ' ' '\n'  # space단위 word를 line마다 출력(왜냐하면 space를 new line으로 translate

echo "id pwd" | tr ' ' ':'  # space를 :로 translate

echo "abc" | tr [:lower:] [:upper:]  # 모든 lowercase를 uppercase로 translate

echo 'abc' | tr [a-z] [A-Z]  # 위와 같은 결과

echo 'a b c' | tr -d ' '  # -d는 delete, SET delete, 예를 들면 현재는 file 내 space를 모두 제거

echo 'a  bc' | tr -s ' '  # -s는 squeeze, SET이 연속적으로 나오면 1개로 squeeze

echo 'My UID is $UID" | tr -cd "[:digit:]\n"  # -c는 SET의 complement를 적용, 즉  $UID와 줄바꿈을 제외하곤 모두 삭제($UID는 userid로 정수값 가짐)

 

728x90

+ Recent posts