tree 형식으로 보여주는 command이며 기본적으로 설치되어 있지 않으며, 아래와 같이 별도로 설치하고 진행하자
$ sudo sudo apt-get install tree
$ man tree
tree [-adfghilnopqrstuvxACDFNS] [-L level [-R]] [-H baseHREF] [-T title] [-o filename] [--nolinks] [-P pattern] [-I pattern] [--inodes] [--device] [--noreport] [--dirsfirst] [--version]
[--help] [--filelimit #] [directory ...]
SORTING OPTIONS
-v Sort the output by version
-r Sort the output in reverse
-C Turn colorization on always,
XML/HTML OPTIONS
-X : Turn on XML output
GRAPHICS OPTIONS
-A Turn on ANSI line graphics
-S Turn on ASCII line graphics
GRAPHICS OPTIONS
-d List directories only.
-a All files are printed.
-s Print the size of each file
-f Prints the full path prefix
-L level
Max display depth of the directory tree.
- 사용법
$ tree -d //-d directory , 기본 ANSI Type , 현재기준
.
├── Boot_Images
├── Filesystem
├── Media_Clips
│ ├── Audio
│ ├── Images
│ └── Video
└── START_HERE
└── Setup_files
$ tree -X // XML 로 전환
.. XML 로 전환 ...
$ tree -L 2 // Level을 설정하여 Tree의 단계를 설정
....
$ tree -d -L 2 -A //-d directory만 표시하고 -L를 이용하여 Level 제한 -A ANSI Type으로 표시
....
$ tree -d -A ./tools // -d directory 와 -A ANSI Type
...
$ tree -a ./tools // -a 모든 File
...
$ tree -as -A ./tools // File Size
$ tree -t -L 1 --charset unicode // -chartset Unicode 로 변경
....
$ tree -t -L 1 --charset utf8 // -chartset utf8 로 변경
...
2. aview/asciiview 명령
그림파일(아이콘)을 아래와 같이 문자로 변경하여 보여주며, 이를 소스에 적용하기가 좋은 명령어이다.
$ sudo sudo apt-get install aview
$ man aview
aview [options] filename.p[ngbp]m
asciiview [options] filename.xxx
a,w,d,x
Move the image one row/column.
Z,+ Zoom in.
z,- Zoom out.
q Quit the viewer.
- 사용법
$ asciiview /media/sf_SHARED/20180625000155_0.jpg
3. figlet/banner/toilet 명령
3개의 command의 기능이 동일하며, 목적은 글자를 그림으로 표현해주는 명령어들이다.
사용설명법은 생략.
$ sudo sudo apt-get install figlet $ sudo apt-get install sysvbanner $ sudo apt-get install toilet
- 사용법
$ figlet HelloWorld _ _ _ _ __ __ _ _ | | | | ___| | | __\ \ / /__ _ __| | __| | | |_| |/ _ \ | |/ _ \ \ /\ / / _ \| '__| |/ _` | | _ | __/ | | (_) \ V V / (_) | | | | (_| | |_| |_|\___|_|_|\___/ \_/\_/ \___/|_| |_|\__,_|
$ banner HelloWorld # # # # # # ###### # # #### # # # #### ##### # ##### # # # # # # # # # # # # # # # # # ####### ##### # # # # # # # # # # # # # # # # # # # # # # # # # # ##### # # # # # # # # # # # # # # # # # # # # # # ###### ###### ###### #### ## ## #### # # ###### #####
$ toilet HelloWorld
m m ""# ""# m m ""# #
# # mmm # # mmm # # # mmm m mm # mmm#
#mmmm# #" # # # #" "# " #"# # #" "# #" " # #" "#
# # #"""" # # # # ## ##" # # # # # #
# # "#mm" "mm "mm "#m#" # # "#m#" # "mm "#m##
4. rig 명령
가짜 이름 /주소/ 전화번로를 생성해주며, 처음 소스에 넣어 주면 편할 꺼 같다.
$ sudo apt-get install rig $ rig Donovan Armstrong 492 Old Pinbrick Dr Sunnyvale, CA 94086 (408) xxx-xxxx
http://cloudsemina.com/index.php?mid=linux&document_srl=295