본문 바로가기

OS-OE Knowledge212

Linux/tar 사용법 tar 분할 압축 해제 Syntax: tar cvf(z) - 대상디렉토리or파일 | split -b 용량 - 분할압축파일명 # tar cvf - /tmp | split -b 3000m - ahs_dump.tar ahs_dump.taraa ahs_dump.tarab ahs_dump.tarac ahs_dump.tarad # cat ahs_dump.tar* | tar zxvf - 출처: https://frody.tistory.com/5 2021. 2. 4.
RHEL/ACPI Error logged on /var/log/messages OS Event log - messagesOct 14 07:09:07 Hostname kernel: ACPI Error: SMBus/IPMI/GenericSerialBus write requires Buffer of length 66, found length 32 (20130517/exfield-389)Oct 14 07:09:07 Hostname kernel: ACPI Error: Method parse/execution failed [\_SB_.PMI0._PMM] (Node ffff88016d9e8ed8), AE_AML_BUFFER_LIMIT (20130517/psparse-536)Oct 14 07:09:07 Hostname kernel: ACPI Exception: AE_AML_BUFFER_LIMIT.. 2020. 10. 14.
Ubuntu/HPE source rpm file을 이용하여 NIC driver 업데이트 HPE NIC driver update through source rpm file from Ubuntu OS. Test System DL380 Gen10+562SFP+(X710 chipset) 1. Install SPP2020.03 2. Set WP to Virtualization - Max Performance. 3. Install Ubuntu 18.04.5 LTS Check inbox driver (dmesg | grep i40e) [ 3.733322] i40e: Intel(R) Ethernet Connection XL710 Network Driver - version 2.1.14-k a. enable root account # sudo passwd root b. enable root login vi.. 2020. 9. 11.
Linux/Directory copy Directory copy # cp -r source_directory target_directory Multiple file overwrite without interactive # \cp -rf source_directory target_directory # /bin/cp -rf source_directory target_directory 출처: cp 강제로 덮어쓰기 https://zetawiki.com/wiki/CentOS_cp_%EA%B0%95%EC%A0%9C%EB%A1%9C_%EB%8D%AE%EC%96%B4%EC%93%B0%EA%B8%B0 리눅스에서 폴더 통째로 복사하기 https://zetawiki.com/wiki/%EB%A6%AC%EB%88%85%EC%8A%A4%EC%97%90%EC%84%9.. 2019. 9. 4.
RHEL7/Add new volume disk Summaryfdisk: # fdisk /dev/sdb #추가된 Disk n #파티션 생성 w #변경사항 기록 e.g.) /dev/sdb의 partition 1 > /dev/sdb1 # pvcreate /dev/sdb1 #물리볼륨 생성 # vgcreate vgdata1 /dev/sdb1 #볼륨그룹 생성 # lvcreate -n lvdata1 -l 100%FREE vgdata1 #논리볼륨 생성 # mkfs.ext4 /dev/vgdata1/lvdata1 #파일시스템 생성 # mkdir /Depot #마운트포인트 생성 # mount -t ext4 /dev/vgdata1/lvdata1 /Depot #마운트 # df -l #상태 확인 gdisk: ------------------------ # gdisk /dev.. 2019. 8. 30.
W10 - 다운로드 폴더 그룹 보기 해제 W10이 어느날 업그레이드 되더니 생겨버린 그룹핑 기능 ... 난 이런 거 싫어한다 ... 우짜지 ... 여기 저기 찾아보다 못찾고 포기하고 사용한 지 어언 수 십일 ... (OTL) 어느 고수님의 블로그를 통해 해결책을 알게되었다는~ 알고나면 쉽지만, 그전까진 너무도 어렵다 ..., 그저 마우스 우클릭 후 분류 해제라니 ... 정보출처: https://sihloh4me.tistory.com/275 2019. 8. 3.
RHEL/cron Job을 통해 반복적으로 작업 수행 e.g.) IO workload 1. Create Job - 1G file create 100ea per every 20 mins / then remove it. # crontab -u root crontab # crontab -e */20 * * * * for i in {1..100}; do dd if=/dev/zero of=/tmp/dummy1G-$i bs=1 count=0 seek=1G; done */20 * * * * rm -f /tmp/dummy1G-* 2. List current cron job # crontab -l 3. Remove cron job # crontab -r 4. Repeat per second * * * * * * & sleep 30; 5. restart cron daemon.. 2019. 5. 21.
RHEL/Automatically execute at boot time 특정 명령을 부팅 때마다 자동으로 실행하고자 할 때, rc.local은 기본으로는 실행되지 않아서, user가 실행할 수 있도록 권한 부여 # chmod 755 /etc/rc.d/rc.local 수행하고자 하는 명령을 full path를 통해 추가해준다. # vim /etc/rc.d/rc.local "at_here_Some_Command_what_want_to_execute" e.g.) /sbin/insmod /tmp/load_tmp_module.ko 2019. 5. 18.
RHEL7/Using ifconfig command RHEL7 을 기본 설치 후 ifconfig 명령을 수행하면 오류가 난다. 더이상 기본 패키지가 아니다. # ifconfig -bash: ifconfig: command not found 대신 다른 명령을 통해 확인 가능하다. (Check IP Address)# ip a s # ip addr show # ip -s link 너무 익숙해서 다시 사용하고 싶다면, 설치하면 되는 것~ ifconfig 명령을 사용하기 위해 설치해야 하는 패키지 확인# yum provides ifconfig# yum whatprovides ifconfig 필요 패키지 설치# yum install net-tools 이제 잘 된다.# ifconfig -a 2019. 5. 18.
반응형