# Reboot the computer system - Windows ```bash shutdown /r ``` # Windows directory overview - recursive ```bash tree /f . ``` # Whitespace 제거 ```bash # awk awk '{$1=$1}1' filename.txt > output.txt # sed (in place) sed -i 's/[[:space:]]\+$//' filename.txt - `-i`: 파일을 직접 수정 (백업 없이) - `s/.../.../`: 치환 - `[[:space:]]\+
: 줄 끝의 모든 공백 문자(스페이스, 탭 등) 제거 ``` # phpinfo - `DOCUMENT_ROOT` - `DISABLE_FUNCTIONS` # grep tip ```bash grep -Horni <text> dir grep -Horni password dir 2>/dev/null ``` # print data horizontally ```bash # 줄 마다 구분지어져 있는 파일 가로로 콤마로 구분지어서 출력하기 paste -sd, <filename> nmap -sCV $IP -p $(ports -sd, <filename>) ``` # /etc/hosts ```bash # linux /etc/hosts # windows C:\Windows\System32\drivers\etc\hosts # /etc/hosts DNS cache troubleshoot in Firefox about:networking#dns ```