본문 바로가기

Linux

시간을 단축 시켜주는 리눅스 명령어?

  • mkdir {} : 여러개의 디렉토리를 생성해주는 명령어
    • mkdir -p {hello,world}/{1,2,3}
  • cd -  : 빠르게 이전에 위치했던 디렉토리로 이동
    • 바로 이전의 디렉토리로 이동(cd .. 와 다름)
  • touch with a range to create multiple files at once.
    • touch log{1..10}.txt
      • log1.txt, log2.txt ...
  • tail -f : 실시간으로 로그를 주적
    • tail error_file.log | grep "error"
  • history (num) : 최근 사용했던 명령어를 num 갯수만큼 출력

 

참고

https://medium.com/gitconnected/5-linux-command-tricks-that-will-change-your-life-as-a-programmer-825a4524218a

 

5 Linux Command Tricks That Will Change Your Life as a Programmer

Boost your productivity with these powerful Linux commands for developers!

levelup.gitconnected.com

 

'Linux' 카테고리의 다른 글

Linux) 듀얼 부팅 하는 법 (Window 10 + Ubuntu 22.04)  (0) 2024.08.13
Linux) rootfs란?  (0) 2024.04.25
Linux) Makefile란?  (0) 2024.04.25
Linux) 시스템 콜(System Call): Process Management  (0) 2024.04.23
Linux) Shell script  (0) 2024.04.22