본문 바로가기
반응형

Linux/Linux공통14

find 명령어 find 명령어는 파일 및 디렉토리를 검색하는 데 사용되는 매우 강력한 도구입니다. 다양한 옵션을 통해 파일의 이름, 크기, 수정 시간, 유형 등을 기준으로 검색할 수 있습니다. 아래에 find 명령어의 주요 사용법과 옵션을 정리했습니다.기본 문법find [경로] [검색 조건] [연산]주요 옵션 및 예제특정 디렉토리에서 모든 파일 및 디렉토리 찾기find /path/to/directory특정 이름의 파일 찾기find /home/user -name "test.txt"find /path/to/directory -name "filename"대소문자를 구분하지 않고 이름 검색find /home/user -iname "test.txt"find /path/to/directory -iname "filename"특정 .. 2024. 6. 13.
grep 과 egrep 활용 # /usr/bin 에서 nvidia 관련한 항목검색 => grep # nvidia와 dete를 AND조건으로 검색하고 싶음. => 파이프 활용  # nvidia와 dete를 or 조건으로 검색함 grep 사용시,egrep 사용시, 2024. 5. 28.
네트워크 인터페이스 물리적으로 특정하기. #ethtool -p eno1#ethtool -p [interface name]#ethtool --identify eno1#ethtool --idenify [interface name] 해당 명령어를 통해 active LED가 활성화 할수 있습니다.인터페이스를 물리적으로 특정하고자 할때 유용한 명령어 입니다.   LAN port LED 의미이미지 출처: https://avtech.com/articles/225/what-the-ethernet-port-leds-mean-on-a-room-alert-monitor/ What The Ethernet Port LEDs Mean On A Room Alert Monitor - AVTECH The Ethernet port on your Room Alert Monito.. 2024. 4. 30.
lshw display 항목 확인. ## lshw -short |grep -i display root@user:~# lshw -short |grep -i display /0/100/1.1/0 /dev/fb0 display GA100 [A100 PCIe 80GB] /0/118/3.1/0 display GA100 [A100 PCIe 80GB] /0/120/1.1/0 display GA100 [A100 PCIe 80GB] /0/128/3.1/0 display GA100 [A100 PCIe 80GB] /0/128/5.2/0/0 /dev/fb0 display ASPEED Graphics Family /0/130/1.1/0 display GA100 [A100 PCIe 80GB] /0/138/3.1/0 display GA100 [A100 PCIe 80.. 2023. 10. 16.
User권한일 경우와 Root권한일 경우의 쉬운 구분법 User권한일 경우와 Root권한일 경우의 쉬운 구분법은 다음과 같다. User 권한일 경우, $로 표기되며, Root권한일 경우, #으로 표기된다. 2023. 9. 30.
메모리 정보 확인 명령어 #1 free 명렁어 free 명령어를 활용할 때, 단위를 지정할 수 있다. -m의 경우, 메가바이트 -g의 경우, 기가바이트 >>free -m >>free -g #2 lsmem 명령어 >>lsmem #3 dmidecode 다른 명령어와 다르게, 메모리 소켓별 정보가 출력된다. >>dmidecode -t memory 2023. 9. 29.
반응형