#Linux ```Shell ``` ### 유저관련 #### 유저 생성 ```Shell sudo adduser newuser ## 새로 생성한 계정으로 sudo 명령어를 실행할 때 다음 오류가 발생하는 경우 sudo usermod -aG sudo newuser ## 유저정보 확인 cat /etc/passwd ## 유저를 삭제 [홈디렉토리삭제] [소유파일모두삭제] sudo deluser newuser [--remove-home] [--remove-all-files] ## su 권한 주기 vi /etc/sudoers gtest ALL=(ALL) ALL gtest ALL=(ALL) NOPASSWD: ALL ``` ### Service 관련 ``` Shell # 실행상태 보기 (-:중지, +:실행중, ?:??) service --status-all # 서비스 시작 service [prosecc name] start ``` ### 기타 - 숨김파일 검색 > find . -type f -name '*.php'