Computing.Net > Forums > Unix > /etc folder

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

/etc folder

Reply to Message Icon

Name: pt cruiser
Date: January 3, 2003 at 20:26:29 Pacific
OS: Mini FreeBSD
CPU/Ram: PIII/16MB
Comment:

Hello,

When I go to the etc directory I can run ls and see the programs listed with no problem. I can't run/execute them. I can run programs found under other folders. Sorry, I can't provide any direct examples right now. Can anybody provide a pointer or two? I found a Unix book in my closet but it doesn't seem to answer questions like these.

thanks in advance



Sponsored Link
Ads by Google

Response Number 1
Name: David Perry
Date: January 3, 2003 at 20:40:16 Pacific
Reply:

The /etc and also in the case of FreeBSD /usr/local/etc directories usually contain configuration files for programs. If you want to know what you can execute, run

ls -l

in some directory. In the first column, you shoud see 10 characters.

1 Special notes, like directory, or symbolic link
2-4 read, write and execute privs for the owner
5-7 read , write and execute privs for the group
8-10 read, write and execute privs for everyone

So privs for a world executable binary might look like

-r-xr-xr-x something

A file that is modifiable and executable by the owner and the group might look like

-rwxrwx--- something

Does this make it more clear?


0

Response Number 2
Name: pt cruiser
Date: January 4, 2003 at 04:28:54 Pacific
Reply:

Yes it does. I'm probably going to buy Unix for dummies or something to that effect. I want to reserve this board for the real tough issues.

With that said, I have a few more questions, if I may before I buy the book.

Which included programs are used for system diagnostics? In DOS command like mem allow me to view memory resources, ver gives me the software version and so on. I want to see exactly what resources/services are in use upon bootup. I can get all this information in the Windows Control Panel. How do I do it with Unix or is this too broad of a question?

thanks as always,

pt


0

Response Number 3
Name: David Perry
Date: January 4, 2003 at 07:11:10 Pacific
Reply:

Have a look at the freebsd handbook. You can browse or search online at the freebsd.org site, or you can d/l from

ftp://ftp.freebsd.org/pub/FreeBSD/doc/en_US.ISO8859-1/books/handbook/

Or you can find it in bookstores. It was a big help to me. On to your question -

the 'ps' command ( process status ) will list all running processes. The syntax is slightly different that linux but to see all running jobs for all users

ps -ax

to look at a single job

ps -ax | grep programname

To see a real time performance monitor, have a look at 'top'. It will show your current memory usage, virtual memory usage and the top 20 or so most CPU demanding processes running. I'm sure the are many similar GUI tools but I never fun in GUI mode so I can't help you with that answer.

Many programs will output version information if you use the '-V' flag. Check the man pages for a particular command to verify. Sendmail is different

sendmail -d.11 < /dev/null

You will find as you look at top, that although there may be in excess of 50 processes running at a time, most are using 0 cpu time and only a little memory. The web server for example spawns child processes when it starts so they can wait and be ready to answer requests. Other processes like telnet and ftp are started on demand. They use no resources until a client requests that service, then they start up.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: /etc folder

Delete folder www.computing.net/answers/unix/delete-folder/6177.html

Setting TFTP server www.computing.net/answers/unix/setting-tftp-server/7469.html

filesystem full www.computing.net/answers/unix/filesystem-full/6371.html