본문 바로가기

기타/리눅스10

리눅스 명령어 정리(10) ps, top, jobs, bg, fg, kill, killall, shutdown 10 – Processes ● ps – Report a snapshot of current processes ● top – Display tasks ● jobs – List active jobs ● bg – Place a job in the background ● fg – Place a job in the foreground ● kill – Send a signal to a process ● killall – Kill processes by name ● shutdown – Shutdown or reboot the system #ps : 현재 실행중인 프로세스를 보여주는 리눅스 명령어 이렇게 다양한 명령어들이 있다... -r : 현재 실행중인 프로세서를 보여준다. S : 20초 미만의 짧게 잠듦(sleep.. 2018. 6. 18.
리눅스 명령어 정리(9) id, chmod, umask, su, sudo, chown, chgrp, passwd 9 – Permissions ● id – Display user identity ● chmod – Change a file's mode ● umask – Set the default file permissions ● su – Run a shell as another user ● sudo – Execute a command as another user ● chown – Change a file's owner ● chgrp – Change a file's group ownership ● passwd – Change a user's password #id: 사용자의 UID,GID 번호를 확인하는 명령어이다. #chmod : 사용자 권한을 바꿀 수있다. 예를 들어서 본인만 읽기 쓰기만 되는 파일이 있는데 이를 .. 2018. 6. 18.
리눅스 명령어 정리(8) clear, history 8 – Advanced Keyboard Tricks ● clear – Clear the screen ● history – Display the contents of the history list clear : 화면에 있는 내용을 다 지운다. 이렇게 더러웠던 화면이..? 이렇게 깨끗해진다!! 유용한 명령어 같아보임. #history 전에 사용했던 명령어들을 보여줌 (단, /bin/bash 로 들어가서 확인해야함) /bin/bash로 안들어가면 오류가 난다. 2018. 6. 18.
리눅스 명령어 정리(7) echo 7-Seeing The World As The Shell Sees It ● echo – Display a line of text echo: 문자열을 화면에 출력하는 단순한 명령입니다. #echo 로 수학적인 계산이 가능! 근데 좀 비효율적 같아 보인다. 이와 같은 기능들을 할 수있답니다. #환경변수값도 알 수 있다. #echo 문자* 를 하면 '문자'로 시작하는 파일을 찾을 수 있다. 2018. 6. 18.