본문 바로가기

리눅스 명령어12

unzip (압축 파일 해제 명령어) 00 개요리눅스 환경 터미널에서 .zip 압축 파일을 풀 수 있음01 unzip이란1. 정의lists and extracts files in zip archives.기본값으로 extracts zipfile entries to the current directory, creating directories as neededZip files do not store ownership info The extracted files are owned by the user that runs the commandYou must have write permissions on the directory where you are extracting the ZIP archive.2. 문법# 기본 문법unzip [-Z] optio.. 2024. 4. 29.
nohup (터미널 끊겨도 proc 진행 시키는 명령어) 01 nohub이란1. 정의리눅스에서 프로세스 (process, proc)를 실행한 터미널 (terminal, tty)의 세션 연결이 끊어지더라도 프로세스를 계속해서 동작시키는 명령어 원래 리눅스에서는 터미널에서 ssh 세션 로그아웃(logout) 발생 시 해당 터미널에서 실행한 프로세스들에게 HUP signal을 전달하여 종료시키게 되는데 이 HUP signal을 프로세스가 무시(ignore)하도록 하고 프로세스들을 마치 데몬(daemon)인 것처럼 동작시키는 명령어라서 nohup 이라고 명명또한 nohup 명령어로 인해 백그라운드에서 실행된 프로세스들의 표준 출력(standard output)은 nohup.out 파일로 재지향(redirection)됨터미널이 종료되어도 표준 출력은 nohup.out .. 2024. 4. 29.
ls (파일 목록 명령어) 01 ls 명령어란1. ls 정의'list'의 약자2. ls 명령어 기능Linux 에서 file 및 directory에 관한 정보 목록을 출력 (기본값 = 현재 directory, 알파벳순) 3. ls 명령어 문법# ls [options] [file/directory] options (옵션): 해당 file/directory에 관해 어떠한 정보를 출력할지 정함file/directory (파일/디렉토리): 정보를 얻고자 하는 파일 또는 디렉토리여러개의 파일/디렉토리 나열 가능예) 현재 경로에 DCVBridge와 logs라는 디렉토리들이 있을 때:# ls DCVBridge logsDCVBridge:asgi.py cron_server.py DCVapi __init__.py mig.. 2024. 4. 17.