linuxfromscratch:shellcommand

차이

문서의 선택한 두 판 사이의 차이를 보여줍니다.

차이 보기로 링크

양쪽 이전 판 이전 판
다음 판
이전 판
linuxfromscratch:shellcommand [2024/04/13 00:57] – [Gawk] baecylinuxfromscratch:shellcommand [2024/04/29 15:28] (현재) – [wget] baecy
줄 3: 줄 3:
 <code lang=bash> <code lang=bash>
 alias dirfind="find -mindepth 1 -maxdepth 1 -type d | sed 's@^./@@'" alias dirfind="find -mindepth 1 -maxdepth 1 -type d | sed 's@^./@@'"
- 
 dirfind | wc -l    ## 디렉토리 갯수 확인 dirfind | wc -l    ## 디렉토리 갯수 확인
 rm -rf $(dirfind)  ## 설치 완료된 소스 디렉토리 삭제 rm -rf $(dirfind)  ## 설치 완료된 소스 디렉토리 삭제
-</code>+## 설치 완료된 패키지 디렉토리만 삭제할거면 다음과 같이 
 +alias SearchAndDestroy='find -mindepth 1 -maxdepth 1 -type d -exec rm -rf {} \;'</code> \\
  
 ==== 2. SBU 측정 ==== ==== 2. SBU 측정 ====
줄 12: 줄 12:
 ## 현재 디렉토리+생성시간을 추가해서 로그파일 작성 ## 현재 디렉토리+생성시간을 추가해서 로그파일 작성
 alias lfslog='tee ~/lfs-log/$(case $(basename $(pwd)) in build) echo $(basename $(dirname $(pwd))); ;; *) echo $(basename $(pwd)); ;; esac).$(date "+%Y%m%d_%H%M%S").log'  alias lfslog='tee ~/lfs-log/$(case $(basename $(pwd)) in build) echo $(basename $(dirname $(pwd))); ;; *) echo $(basename $(pwd)); ;; esac).$(date "+%Y%m%d_%H%M%S").log' 
-time { ./configure .... && make && make install; } | lfslog +time { ./configure .... && make && make install; } | lfslog </code>\\
-</code>+
  
  
줄 116: 줄 115:
 /dev/sdd1       1.8T   32K  1.7T   1% /mnt/4th-bay /dev/sdd1       1.8T   32K  1.7T   1% /mnt/4th-bay
 /dev/sde1       173M   95M   65M  60% /boot /dev/sde1       173M   95M   65M  60% /boot
-/dev/sde2        19G  1.5G   16G   9% /mnt/debian</code>//+/dev/sde2        19G  1.5G   16G   9% /mnt/debian</code>\\
  
 참고  참고 
줄 130: 줄 129:
 /dev/sdd1       1.8T   32K  1.7T   1% /mnt/4th-bay /dev/sdd1       1.8T   32K  1.7T   1% /mnt/4th-bay
 /dev/sde1       173M   95M   65M  60% /boot /dev/sde1       173M   95M   65M  60% /boot
-/dev/sde2        19G  1.5G   16G   9% /mnt/debian</code>//+/dev/sde2        19G  1.5G   16G   9% /mnt/debian</code>\\
  
 ==== wget ==== ==== wget ====
줄 138: 줄 137:
 # -R / --reject : 해당 파일 제외 # -R / --reject : 해당 파일 제외
 # -P / --directory-prefix=PREFIX : PREFIX/.. 에 파일 저장 # -P / --directory-prefix=PREFIX : PREFIX/.. 에 파일 저장
-wget -r -np -R "index.html*" -P <DIR> lfs/ https://ftp.osuosl.org/pub/lfs/lfs-packages/12.1/</code.>+wget -r -np -R "index.html*" -P <DIR> lfs/ https://ftp.osuosl.org/pub/lfs/lfs-packages/12.1/</code>\\ 
 + 
 +==== Firmware Blob Kernel config ==== 
 +<code lang=bash> 
 +echo CONFIG_EXTRA_FIRMWARE='" '$({ cd /lib/firmware; echo amd-ucode/*; echo amdgpu/re*; echo rtl_nic/*; echo regulatory*; })'"' >> .config 
 +make oldconfig 
 +</code>
  • linuxfromscratch/shellcommand.1712969879.txt.gz
  • 마지막으로 수정됨: 2024/04/13 00:57
  • 저자 baecy