Six Basic Linux Questions from a Newbie
Hey everyone, I'm really new to Linux and I just had a few really basic general questions to ask. I'm sorry if these questions are answered somewhere else but I couldn't find them. If you could point me to a good site for these sorts of questions then I'd appreciate that too.
1) What is a regular file on a Linux system? What sorts of regular files can exist and what values can the bytes within each have? 2) On Windows, most of the time when you install an application all its relevant files go in the same directory (ie. under Program Files\whatever), how is this different in Linux? 3) In addition to the normal permission bits of a node (rwxrwxrwx) what is the 10th bit for and how is it special? What uses does the special bit have? 4) What does having write access allow you to do compared with write access on individual files? Does it give you write permissions on all files within? Or just the permissions to create new files? 5) What is an inode? What does it do? Are all the blocks which comprise an inode necessarily in the same physical location? 6) Is it possible to hardlink directories in Linux? Why/why not? Thanks in advance, I know these are really stupid/simple questions, and I appreciate any answers you can give. |
Looks like homework to me.....
What distribution are you using? Do you have it up and running? Any issues? |
1) On Linux, everyhting is a file. Seriously even devices are files.
2) The executables are kept in /bin, /usr/bin, /local/bin, /usr/local/bin, /sbin, /usr/sbin and probably more. I can't think of any right now. That might seem like over kill, but it is actually very well organized. I don't want to go into detail, but most of them will be stored in /usr/bin or /usr/local/bin. There will rarely (if ever) be a need for you to locate an executable. 3) The first bit specifies the file type.'-' is ordinary, 'd' is directory, 'l' is link. 4) When set for a directory, this permission grants the ability to modify its tree. This includes creating files, changing their permissions, and deleting files. 5) http://en.wikipedia.org/wiki/Inode 6) Yes... because it's convenient. |
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
http://dict.die.net/inode/ Quote:
Quote:
If you have a question about what something is or means, type "definition <thing>" in the google searchbar. The definition will give you more search terms to the exact info you need. questions about something associated with a command can usually be investigated through the linux man pages. Open a terminal and type "man <thing>" or "info <think>" to learn more. Welcome to the community. |
Sounds like homework to me
|
Ah... you mean we're being suckered!
Well we'll just traceroute the sucker and ... and ... tell on him! Waaah! (You're only young once, but you can be immature for your whole life.) |
Quote:
|
Hmm, this does sound kinda like homework, but anyway...
Quote:
Quote:
|
Quote:
|
You didn't mention what manpage to look at for starters (hardlink question)
|
Quote:
|
From the man page for ln:
Quote:
Quote:
Quote:
Quote:
|
I was just responding to Simon's post ioerror
|
Quote:
Anyway, my above post shows that you cannot create hard links to directories. I believe that it was possible with ye olde unix (V6,V7 etc), but since it causes huge problems, it is now disallowed by the kernel (well, Linux at least, I assume all modern kernels are the same but I'm not sure). |
Well I'm studying Linux at university and I've been using Fedora Core 4 on the lab computers. I haven't been able to set it up at home yet (so I don't know about compiling my own kernels or anything like that yet). Anyways I've just been learning the commands and I'm not very familiar with the workings of the OS, that's why I had several questions and thought this would be the best place to ask.
In regards to question 4, I meant does having write permissions on a directory give you write permissions on all files within as well as giving you permissions to create new files in the directory?? |
All times are GMT -5. The time now is 06:19 AM. |