# grep -r "찾을내용" 경로 ex. # grep -r "hello" ./* -R, -r, --recursive equivalent to --directories=recurse --include=FILE_PATTERN search only files that match FILE_PATTERN --exclude=FILE_PATTERN skip files and directories matching FILE_PATTERN --exclude-from=FILE skip files matching any file pattern from FILE --exclude-dir=PATTERN directories that match PATTERN will be skipped.
$ sudo vim /etc/hostname
$ls -l | grep "^d" ^는 이 문자로 시작한다는 뜻
ilshin@ilshin-erp:~$ df -T Filesystem Type 1K-blocks Used Available Use% Mounted on /dev/sda1 ext4 474802312 75555140 375128544 17% / none devtmpfs 1021760 240 1021520 1% /dev none tmpfs 1025996 1380 1024616 1% /dev/shm none tmpfs 1025996 1584 1024412 1% /var/run none tmpfs 1025996 0 1025996 0% /var/lock none tmpfs 1025996 0 1025996 0% /lib/init/rw /dev/loop0 iso9660 568026 568026 0 100% /mnt/Of..
Samba 서버 설치 # apt-get install samba 설치 후 smb.conf 파일 수정하여 공유하고자 하는 디렉토리 및 권한 설정. - smb.conf 하단에 공유할 디렉토리 추가 [디렉토리명] path = 공유할 디렉토리 경로 writeable = 쓰기가능여부(yes or no) guest ok = 손님접근가능여부(yes or no) valid users = 사용자1;사용자2 create mask = 0774(생성시 파일 권한) directory mask = 2775(생성시 디렉토리 권한)