Unix CLI commands

ifconfig

configure or view the configuration of a network interface

ifconfig

eth0 => the first ethernet interface

wlan0 => the name of the first wireless network interface on the system

find

find -name "pattern"

ln

존재하는 파일에 대한 hard link 혹은 symbolic link 를 만들기 위한 명령어이다.

여기서 har link 란 같은 파일에 대해 여러 파일명을 가질 수 있게 해주며, hard link 는 특정 파일의 inode 를 가리킨다.

symbolic 링크란 다른 파일을 특정 이름으로 가리키는 특별한 종류의 파일이다.

hard link 의 경우 file system 을 훼손을 위험이 있으며 보통의 경우 다음과 같이 symbolic 링크를 만드는데 사용된다.

ln -s <source file> <link file>

less

Less is a terminal pager program on unix, window

less [options] [file_name]

First line: g <

last line: G >

Search: /<search keyword>

go to line: <number of the line>g

dd

On Unix-like operating systems, the dd command copies a file, converting the format of the data in the process, according to the operands specified.

Operanddescription
if=FILEinput file
iflag=FLAGSsync <br />likewise, but also for metadata

example

dd if=blockchain/block_log iflag=nocache count=0