생계/OS

리눅스 자주 쓰는 명령 모음

돌고래트레이너 2023. 5. 23. 17:17
반응형

- core 수 확인

cat /proc /cpuinfo | grep processor

- 리눅스 버전확인

cat /etc/*release

- du depth

du -h --max_depth=1



- ftp전송후  command not found

$'\r': command not found 

 sed -i -e 's/\r$//' 대상파일



- file 첫줄 편집 

sed -i "1i\spool test.log" test.sql
echo -e "spool off\next; \n" >> text.sql



- 파일에서 특정 에러만 중복제거 grep

cat test.log | grep "ORA-02291" | uniq 

반응형