Hi everyone,
I came from a diffrent UNIX background and am trying to learn Linux (Red Hat) in a hurry. I would be very grateful if you could help me with the following questions. I know the answers for questions 1, 3, and 4 in a Sun Solaris environment, but not in Linux... Thanks in advance for your help!
-
When the command "touch" is used to create a file, it assigns some default permissions to the file. What would you do to make "touch" command create files with different default permissions?
-
Using bash shell, run the following commands in a clean directory:
for ((i=20000;i--;)) ; do touch test$i ; done
for ((i=10;i--;)) ; do touch file$i ; done
This will take a while.
Now try to list all files beginning with 'test':
ls test*
This will give an error:
bash: /bin/ls: Argument list too long
How would you get around this problem (i.e., successfully list all these files)?
-
How would you automatically mount a device each time the system starts up?
-
While trying to "umount" a device, it will fail if the device is busy. How would you determine which process is causing the device to be busy?
-- Enigma777