Linux Ask!

Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.

Feb 172010
 

Set system-wide environment variables in Ubuntu

Answer:

The recommended way now is to edit the file /etc/environment .

# vi /etc/environment
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games"

Add you key=value pairs into this file and save it.

Feb 142010
 

How to check which mime types are supported by your Debian/Ubuntu

Answer:

The /etc/mime.types file is the system-wide rules which defined for mapping filename suffices to mime types. Your Apache on Debian based Linux will read this file and set the correct Content-type header for these files when serving to users.

# cat /etc/mime.types