RalXYZ / moyu.sh

Junk file generator script

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

摸鱼.sh

Good news: moyu.pl has been added!

Welcome!
You can create a JUNK file in a specified size, which looks just like a normal file.
This shell script is great for you to deal with an irresponsible professor.

Run

Feel free to choose between moyu.sh and moyu.pl!
Before running:

chmod u+x moyu.sh
# or
chmod u+x moyu.pl

Then, you can run the script simply by:

./moyu.sh
# or
./moyu.pl
# Run the shell script with no argument for help 

Result

$ ls -alh
total 4.5M
drwxrwxr-x  2 ralxyz ralxyz 4.0K Mar 18 10:42 .
drwxrwxr-x 17 ralxyz ralxyz 4.0K Mar 18 10:42 ..
-rw-rw-r--  1 ralxyz ralxyz  23K Mar 18 10:41 CS101-lab1.docx
-rw-rw-r--  1 ralxyz ralxyz  470 Mar 18 10:38 moyu.sh
-rw-rw-r--  1 ralxyz ralxyz  23K Mar 18 10:41 实验数据记录表.xls
-rw-rw-r--  1 ralxyz ralxyz 4.5M Mar 18 10:22 数据库实验报告.pdf

About

Junk file generator script

License:The Unlicense


Languages

Language:Perl 50.8%Language:Shell 49.2%