How to change MAC address
Answer:
To change MAC address, you need to take the network interface
# sudo ifconfig eth1 down
Then change it by
# sudo ifconfig eth1 hw ether 00:01:02:03:04:05
Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.
How to change MAC address
Answer:
To change MAC address, you need to take the network interface
# sudo ifconfig eth1 down
Then change it by
# sudo ifconfig eth1 hw ether 00:01:02:03:04:05
How to tell if Apache 2 is using prefork or worker MPM?
Answer:
If you are running in Red Hat Linux/ Fedora/ CentOS
# httpd -V
....
Architecture: 64-bit
Server MPM: Prefork
threaded: no
forked: yes (variable process count)
...
If you are running in Debian/ Ubuntu, you can use apache2 -V, which get the same output as above.
How to list all the UUID of my hard disks
Answer:
To list all the UUID of my hard disks, you can use the blkid command.
# sudo blkid
/dev/sda1: UUID="9f95f559-9986-4dfc-8661-849bb54ed5a5" TYPE="ext3"
/dev/sda5: TYPE="swap" UUID="0fe4eedc-65dd-4b46-85c9-11795f2cdc57"
Remove default Debian/Ubuntu default Apache welcome page
Answer:
To remove the Apache default welcome page under Debian/Ubuntu,
1. Remove the welcome page configuration
# a2dissite default
2. Restart Apache
# sudo /etc/init.d/apache2 restart
That's all.
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