(Environment) (Linux) Linux 기본 명령어 (초보에서 전문가 까지)

Linux 기본 명령어



가끔 사용하는 Linux 이어서 그런지, 매번 명령어를 잊어 버리는 일이 자주 있습니다.

이 역시 기록 해두어, 쉽게 찾아 볼수 있게 하고자 합니다.

(인터넷 검색을 해도 나오는 내용이나, 보다 빠르게 .. 불필요한 검색 시간을 줄이기 위해..)


reference

  • 1. ls(list)
    • Windows의 "dir"와 같은 역할로,  해당 디렉터리에 있는 파일의 목록을  나열해주는 명령어
    • ex) # ls /etc/systemd

  • 2. cd(change directory)
    • 디렉터리를 이동하는 명령어
    • ex) # cd ../etc/systemd

  • 3. pwd(print working directory) 
    • 현재 디렉터리의 전체 경로를 출력해주는 명령어
    • ex) # pwd

  • ​4. rm(remove)
    • 파일이나 디렉터리를 삭제하는 명령어
    • ex) # rm -rf abc

  • 5. cp(copy)
    • 파일이나 디렉터리를 복사
    • ex) # cp abc.txt cba.txt

  • 6. touch
    • 크기가 0인 새 파일을 생성
    • (이미 존재하는 경우 수정 시간을 변경한다.)
    • ex) # touch abc.txt

  • ​7. mv(move)
    • 파일과 디렉터리의 이름을 변경하거나 위치를 이동 시에 사용
    • ex) mv abc.txt   qwe.txt

  • 8. mkdir(make dir)
    • 새로운 디렉터리를 생성
    • ex) # mkdir abc

  • 9. rmdir(remove dir)
    • 해당 디렉터리를 삭제 (단, 디렉터리가 비어 있어야 한다.)
    • ex) # rmdir abc

  • ​10. cat
    • 텍스트로 작성된 파일을 화면에 출력
    • ex) # cat a.txt  b.txt

  • ​11. head, tail
    • 텍스트로 작성된 파일의 앞 10행 또는 마지막 10행만 출력
    • ex) # head /etc/systemd/bootchart.conf
    • ex) # tail /etc/systemd/bootchart.conf

  • 12. more
    • 텍스트로 장성된 파일을 화면에 페이지 단위로 출력 
    • ex) # more /etc/systemd/system.conf 

  • 13. less
    • 앞 명령어 more와 용도가 비슷하지만 기능이 더 확장 
    • ex) # less /etc/systemd/system.conf 

  • ​14. file
    • File이 어떤 종류의 파일인지를 표시 
    • ex) # file /etc/systemd/system.conf 

  • 15. clear
    • 명령창을 깨끗하게 지워 줌
    • ex) # clear


 

Comments

Popular posts from this blog

[MaritimeCyberTrend] Relationship and prospects between U.S. Chinese maritime operations and maritime cybersecurity

Examining the Reality of Cyber Incidents and the Shortfalls in Compliance Frameworks

Comprehensive List of Shipboard Systems in Commercial Vessels