본문 바로가기

기초공부/LINUX

[Linux]명령어 nc 모든 포스트목록 NAME nc - TCP/IP swiss army knife nc [-options] hostname port[s] [ports] ... nc -l -p port [-options] [hostname] [port] DESCRIPTION netcat is a simple unix utility which reads and writes data across network connections, using TCP or UDP protocol. It is designed to be a reliable "back-end" tool that can be used directly or easily driven by other programs and scripts. At the same time, it..
[Linux]명령어 ssh 모든 포스트목록 NAME ssh — OpenSSH SSH client (remote login program) ssh [-1246AaCfGgKkMNnqsTtVvXxYy] [-b bind_address] [-c cipher_spec] [-D [bind_address:]port] [-E log_file] [-e escape_char] [-F configfile] [-I pkcs11] [-i identity_file] [-J [user@]host[:port]] [-L address] [-l login_name] [-m mac_spec] [-O ctl_cmd] [-o option] [-p port] [-Q query_option] [-R address] [-S ctl_path] [-W host:port] [-w..
[Linux]명령어 xxd 모든 포스트목록 NAME xxd - make a hexdump or do the reverse. SYNOPSIS xxd -h[elp] xxd [options] [infile [outfile]] xxd -r[evert] [options] [infile [outfile]] DESCRIPTION xxd creates a hex dump of a given file or standard input. It can also convert a hex dump back to its original binary form. Like uuencode(1) and uudecode(1) it allows the transmission of binary data in a `mail-safe' ASCII representation..
[Linux]명령어 hexdump 모든 포스트목록 NAME hexdump, hd — ASCII, decimal, hexadecimal, octal dump SYNOPSIS hexdump [-bcCdovx] [-e format_string] [-f format_file] [-n length] [-s skip] file ... hd [-bcdovx] [-e format_string] [-f format_file] [-n length] [-s skip] file ... DESCRIPTION The hexdump utility is a filter which displays the specified files, or the standard input, if no files are specified, in a user specified forma..
[Linux]명령어 cat, touch 모든 포스트목록 cat(concatenate) 개요표준입력 내용을 파일에 저장하는 명령어 파일들을 잇는 명령어파일 내용을 출력하는 명령어 형식cat > 파일 cat 파일+ > 파일cat [옵션] 파일* 1,2의 경우 값이 저장되는 파일이 존재하지 않으면 새로 생성한다 1,2의 경우 어떤 출력 재지정 명령어를 쓰는지에 따라 결과가 달라질 수 있다 (출력 재지정에 관한 명렁은 여기) 3의 경우 파일을 지정하지 않으면 표준입력 내용을 화면에 출력한다 1, 3의 경우 ctrl+d 입력 시 표준입력이 종료된다 옵션[-n] 3의 경우 파일 내용 앞에 줄번호를 붙인다 예시 kjs@virtualbox:~$ cat > temp.txt # 첫 번째 경우 실행 test 1 2 kjs@virtualbox:~$ cat temp..
[Linux]명령어 mkdir, rmdir 모든 포스트목록 mkdir(make directory) 개요: 디렉토리를 생성하는 명령어 형식: mkdir [옵션] 디렉토리+ 중간 디렉토리가 없다면 실행되지 않는다 옵션 [-p] 중간 디렉토리도 자동 생성한다 예시 kjs@virtualbox:~$ mkdir test # 옵션x kjs@virtualbox:~$ ls linux memo.txt test kjs@virtualbox:~$ mkdir ~/temp/test # temp라는 중간 디렉토리가 없을 경우 mkdir: `/home/kjs/temp/test' 디렉토리를 만들 수 없습니다: 그런 파일이나 디렉터리가 없습니다 kjs@virtualbox:~$ mkdir -p ~/temp/test # -p kjs@virtualbox:~$ ls linux memo...
[Linux]명령어 ls 모든 포스트목록 ls 개요: 지정된 디렉토리의 내용을 리스트한다 형식: ls [옵션] 디렉토리* 파일* 디렉토리를 지정하지 않으면 현재 디렉토리 내용을 리스트한다 옵션 [-a](all) 숨겨진 파일을 포함하여 모든 파일을 리스트한다 [-s](size) 파일의 크기를 바이트 단위로 출력한다 [-l](long) 파일의 상세 정보를 출력한다 [-F] 파일의 종류를 표시하여 출력한다(파일 종류에 관한 것은 이곳) [-R](recursive) 모든 하위 디렉토리를 리스트한다 [-l] 옵션에 대한 자세한 설명 kjs@virtualbox:~$ ls -l #-l 합계 4 # (1) (2)(3) (4) (5) (6) (7) drwxr-xr-x 5 kjs kjs 4096 1월 28 16:13 linux 첫 글자는 파일의 ..
[Linux]명령어 pwd, cd, which, whereis 모든 포스트목록 pwd(print working directory) 현재 작업 디렉토리의 절대 경로명을 출력하는 명령어 입력: pwd kjs@virtualbox:~$ pwd /home/kjs cd(change directory) 현재 작업 디렉토리를 지정된 디렉토리로 이동하는 명령어 입력: cd [디렉토리] 디렉토리를 지정하지 않을 경우 홈 디렉토리로 이동한다 디렉토리의 절대 경로 또는 서브디렉토리를 입력한다 kjs@virtualbox:~$ cd ~/linux kjs@virtualbox:~/linux$ #현재 작업 디렉토리가 ~/linux 로 이동하였다 which 명령어 실행파일의 절대경로를 보여주는 명령어 입력: which 명령어 명령어는 파일 시스템 내에 실행파일 형태로 존재한다 kjs@virtual..