Skip to content

Instantly share code, notes, and snippets.

@naoyashiga
Created February 7, 2021 06:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save naoyashiga/8e375fcd8174c6539d50aab06cdf90bd to your computer and use it in GitHub Desktop.
Save naoyashiga/8e375fcd8174c6539d50aab06cdf90bd to your computer and use it in GitHub Desktop.
シェルスクリプトを用いてデスクトップに大量の無害のファイルを生成する。
# 1. デスクトップフォルダに移動
cd ~/Desktop/
# 2. ファイル生成コマンドを実行
for i in {1..200}; do echo "yo" > hack$i.html; done
# 3. 一括ファイル削除
rm hack*.html
# 1.Windowsキーを押す
# 2. 検索欄に「PowerShell」を入力
# 3. PowerShellを起動
# 4. OneDriveフォルダに移動
cd OneDrive
# 5. デスクトップフォルダに移動
cd デスクトップ
# 6. ファイル生成コマンドを実行
for($i = 0; i -lt 200; $i++) { echo "yo" > hack$i.html }
# 7. 一括ファイル削除
rm hack*.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment