리눅스 dd
IT 위키
더 많은 작업
블록 단위로 파티션이나 디스크를 복사·백업한다.
$ dd [옵션]
- 옵션에서 - 를 사용하지 않는다. ex) -if (x) if (o)
- 각 옵션마다 = 으로 대상 값을 적어 준다. ex) if=/dev/sda
- of=file : 작성될 파일을 지정한다.
- if=file : 입력된 파일을 지정한다.
- ibs=size : 지정한 크기 만큼 읽는다.
- obs=size : 지정한 크기 만큼 쓴다.
- bs=size : 지정한 크기 만큼 읽고 쓴다
- ibs, obs 와 같이 쓰일 경우 ibs, obs 무시
- size는 1K, 1M 와 같이 적을 수 있다.
자주 쓰는 명령어
압축·백업
전체 명령어 (368개)
파일·디렉터리
텍스트 보기·처리
cat · tac · more · less · zmore · head · tail · tailf · nl · wc · sort · uniq · cut · paste · join · split · csplit · tr · col · colcrt · colrm · column · comm · cmp · diff · diff3 · sdiff · diffstat · rev · look · grep · egrep · rg · awk · a2p · expr · bc · echo · printenv · iconv · ul · unexpand · pr · hexdump · strings · sum · md5sum · xargs · tee · ispell
압축·백업
프로세스·작업
시스템 정보·시간
사용자·권한
useradd · userdel · usermod · passwd · chage · chfn · chsh · gpasswd · groupadd · groupdel · groupmod · groups · grpck · grpconv · pwck · pwconv · newgrp · newusers · id · whoami · who · w · users · last · lastb · lastlog · logname · login · finger · su · sudo · htpasswd · smbpasswd · login.defs · edquota · quota · quotacheck · quotaon · repquota
디스크·파일 시스템
부팅·서비스·커널
네트워크
방화벽·네트워크 서비스
iptables · iptables-save · iptables-restore · firewall-cmd · fail2ban · portmap · exportfs · showmount · nfsstat · slattach · named-checkconf · sendmail · rmail · fetchmail · newaliases · praliases · ypbind · ypcat · ypchfn · ypchsh · ypmatch · yppasswd · yppoll · yppush · ypserv
터미널·셸
패키지·개발