Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'For testing/customization purposes..' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
For testing/customization purposes..
Authored by: cynikal on Jan 20, '04 03:25:30PM

In case you want to see what everything looks like, you can try these set of commands to create one of each (10 and 11 are in hexadecimal 'a' and 'b' for ls sorting purposes):

mkdir test
cd test
mkdir 1 a b
touch 0 5 8 9
ln -s /dev/null 2
ln /tmp/slp_ipc 3
mkfifo 4
sudo mknod 6 b 14 0
sudo mknod 7 c 3 2
chmod 777 5 8 9 a b
chmod +t a
chmod u+s 8
chmod g+s 9
ls -l



[ Reply to This | # ]
For testing/customization purposes..
Authored by: morgion on Dec 22, '04 09:49:28AM

Thanks cynikal!

A few customizations I made:
1. More descriptive names; dual benefits of longer text and reminding you what you're looking at.
2. Added a simple 'sudo' command (prints a heading) at the beginning to get authentication out of the way.

Just copy/paste the whole block, and if you have to authenticate, paste it again after entering your password; there won't be any lingering files or directories from a partial run.

sudo echo "## create dir 'color_test' for colorization preview ##"
mkdir color_test
cd color_test
mkdir 1-directory a-dir_writeothers_sticky b-dir_writeothers_NOsticky
touch 0-file 5-executable 8-exe_setuid 9-exe_setgid
ln -s /dev/null 2-sym_link
ln /tmp/slp_ipc 3-socket
mkfifo 4-pipe
sudo mknod 6-block_special b-dir_writeothers_NOsticky 14 0
sudo mknod 7-char_special c 3 2
chmod 777 5-executable 8-exe_setuid 9-exe_setgid a-dir_writeothers_sticky b-dir_writeothers_NOsticky
chmod +t a-dir_writeothers_sticky
chmod u+s 8-exe_setuid
chmod g+s 9-exe_setgid
ls -la



[ Reply to This | # ]