Sponsored Content
Full Discussion: Linux questions
Operating Systems Linux Linux questions Post 40138 by Enigma777 on Tuesday 9th of September 2003 10:03:14 PM
Old 09-09-2003
Linux questions

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!

1. 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?


2. 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)?


3. How would you automatically mount a device each time the system starts up?


4. 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
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

RedHat linux questions??

1. is redhat linux 7.3 the latest version ?? 2. where can i find FREE documentation regarding it ?? installation , etc... Thanks (2 Replies)
Discussion started by: BAM
2 Replies

2. UNIX for Dummies Questions & Answers

Is there a place like this for LINUX questions?

Is there some place like this unix.com for linux questions? a forum like area to ask questions? I love this site, i've learned a lot (use unix - solaris, and linux - redhat). Unfortunately redhat.com has gotten rid of their support forums, everything is in a list type format and I don't want to... (6 Replies)
Discussion started by: kymberm
6 Replies

3. Linux

some questions about linux system.

Hi,i am a newbie in linux,l have some questions when i study unix system.Could you help me?thx. Q1:an linux file system is broken,it can not be mounted after system boot up .how to recover it? Q2:When the UNIX system shore memory is not enough,how to change the system paramenters? Q3:How... (2 Replies)
Discussion started by: saneryee
2 Replies

4. UNIX for Dummies Questions & Answers

General Linux Questions

Hello :-) I am new to the world of UNIX/LINUX and I have just purchased my first Web Server. I have "root" access to the system and I have a few basic questions, they are: 1. How do you view all user names that have access to the system? 2. How do you add/delete or modify users? Anyone... (1 Reply)
Discussion started by: randy.moretz
1 Replies

5. What is on Your Mind?

Questions about Unix/Linux

Hello all. Im a young lad with very limited experience with computers, even though I have been playing with them the past 5 years. I have the experience of the random World of Warcraft player that plays games all day. I have a huge interest in learning everything about computers and I was... (5 Replies)
Discussion started by: Vallzi
5 Replies

6. Red Hat

Lots of questions about linux.

I am about 2 months new to Linux, and have only limited experience with PCLinuxOS, (kde) and Redhat. I am installing the latest version of PClinuxOS on my wife's PC right now but running into a problem I dont understand. I have never seen it before so i thought i'd ask how I can get around it.... (1 Reply)
Discussion started by: Methal
1 Replies

7. Linux

Few Questions on about Linux Servers.

1.On x86 Machines ( Pentium4 ), What is the maximum number of Services( sshd, ntpd,named ,samba, etc.) that can be installed.? Is there a rule of thumb to attain the best possible performence.? 2. Is there a systematic way to boot a remote Machine.? 3. Are there any problems of having two... (2 Replies)
Discussion started by: kanata
2 Replies

8. UNIX for Dummies Questions & Answers

Few questions on unix/linux

Hi , please give few answers for this questions:confused::confused: ...thanks in advance What shell do you use when you log in to a UNIX/Linux host? What command will show you the shell you're using? Describe 5 things you can do in Linux/UNIX. (1 Reply)
Discussion started by: hecker007
1 Replies

9. UNIX for Dummies Questions & Answers

Unix and Linux questions

Sorry for the dumb question......I got my B.S. in computer science Amazing how I don't these answers).....I wrote mostly in the language C in my college career. I wrote all my programs using a windows application for writing C.....and then after testing it, I would upload it to a UNIX system and... (1 Reply)
Discussion started by: Bruuuuce78
1 Replies

10. UNIX for Dummies Questions & Answers

Linux Internals Interview Questions

Can anyone list the interview questions on Linux Internals? Any link for the same will also be helpful. In a job requirement of say C, linux internals what is expected about linux internals? (0 Replies)
Discussion started by: rupeshkp728
0 Replies
UMOUNT(8)						     Linux Programmer's Manual							 UMOUNT(8)

NAME
umount - unmount file systems SYNOPSIS
umount [-hV] umount -a [-dflnrv] [-t vfstype] [-O options] umount [-dflnrv] dir | device [...] DESCRIPTION
The umount command detaches the file system(s) mentioned from the file hierarchy. A file system is specified by giving the directory where it has been mounted. Giving the special device on which the file system lives may also work, but is obsolete, mainly because it will fail in case this device was mounted on more than one directory. Note that a file system cannot be unmounted when it is `busy' - for example, when there are open files on it, or when some process has its working directory there, or when a swap file on it is in use. The offending process could even be umount itself - it opens libc, and libc in its turn may open for example locale files. A lazy unmount avoids this problem. Options for the umount command: -V Print version and exit. -h Print help message and exit. -v Verbose mode. -n Unmount without writing in /etc/mtab. -r In case unmounting fails, try to remount read-only. -d In case the unmounted device was a loop device, also free this loop device. -a All of the file systems described in /etc/mtab are unmounted. (With umount version 2.7 and later: the proc filesystem is not unmounted.) -t vfstype Indicate that the actions should only be taken on file systems of the specified type. More than one type may be specified in a comma separated list. The list of file system types can be prefixed with no to specify the file system types on which no action should be taken. -O options Indicate that the actions should only be taken on file systems with the specified options in /etc/fstab. More than one option type may be specified in a comma separated list. Each option can be prefixed with no to specify options for which no action should be taken. -f Force unmount (in case of an unreachable NFS system). (Requires kernel 2.1.116 or later.) -l Lazy unmount. Detach the filesystem from the filesystem hierarchy now, and cleanup all references to the filesystem as soon as it is not busy anymore. (Requires kernel 2.4.11 or later.) THE LOOP DEVICE
The umount command will free the loop device (if any) associated with the mount, in case it finds the option `loop=...' in /etc/mtab, or when the -d option was given. Any pending loop devices can be freed using `losetup -d', see losetup(8). FILES
/etc/mtab table of mounted file systems SEE ALSO
umount(2), mount(8), losetup(8). HISTORY
A umount command appeared in Version 6 AT&T UNIX. Linux 2.0 26 July 1997 UMOUNT(8)
All times are GMT -4. The time now is 07:59 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy