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
mount -t tmpfs -o size=64m tmpfs /dev/shm | |
mount -t tmpfs -o size=64m /dev/shm /var/tmp | |
# root user |
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
sort -R list.txt |
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
find /var/tmp -type f |
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
find /var/tmp -type f -exec ls -i {} \; |
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
# 100 byte | |
dd if=/dev/urandom of=/var/100byte.dat count=100 bs=1; | |
# 150 kbyte | |
dd if=/dev/urandom of=/var/150kbyte.dat count=150 bs=1k; |
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
#!/bin/sh | |
for i in `seq 1 25`; do | |
dd if=/dev/urandom of=/var/temp/$i.dat count=180 bs=1k; | |
done; |
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
shutdown -r now | |
shutdown -h now | |
# root user |
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
long t1 = System.nanoTime(); | |
long t2 = System.nanoTime(); | |
System.out.println(t2-t1); |
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
sync | |
sysctl -w vm.drop_caches=1 | |
sysctl -w vm.drop_caches=2 | |
sysctl -w vm.drop_caches=3 | |
hdparm -f /dev/vda |
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
CREATE TABLE TEST( | |
DATA_ID INTEGER, | |
DATA_AREA BLOB, | |
CONSTRAINT TEST_PKEY PRIMARY KEY (DATA_ID) | |
); | |
echo "insert into test(DATA_ID, DATA_AREA) values(1,x'"$(hexdump -v -e '1/1 "%02x"' bin.dat)"');" |
OlderNewer