Created
February 7, 2021 06:59
-
-
Save naoyashiga/8e375fcd8174c6539d50aab06cdf90bd to your computer and use it in GitHub Desktop.
シェルスクリプトを用いてデスクトップに大量の無害のファイルを生成する。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 1. デスクトップフォルダに移動 | |
cd ~/Desktop/ | |
# 2. ファイル生成コマンドを実行 | |
for i in {1..200}; do echo "yo" > hack$i.html; done | |
# 3. 一括ファイル削除 | |
rm hack*.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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