How to cp (copy) files without asking for confirmation?
Answer:
1. Type the following
unalias cp
2. Then copy the files using the cp command.
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 cp (copy) files without asking for confirmation?
Answer:
1. Type the following
unalias cp
2. Then copy the files using the cp command.
How to change the DNS setting?
Answer:
1. Edit the /etc/resolv.conf file, assume Debian/Ubuntu
sudo vi /etc/resolv.conf
2. Add or replace, e.g. using Google Public DNS servers
nameserver 8.8.8.8
nameserver 8.8.4.4
3. Done.
Safely reboot a Linux server?
Answer: Use the following command:
shutdown -r now
Find out the CPU model in Linux
Answer:
You can find the CPU information at /proc/cpuinfo
# grep "model name" /proc/cpuinfo
model name : Intel(R) Core(TM)2 Quad CPU Q9400 @ 2.66GHz
A better alternative to top
Answer:
It is the htop : http://htop.sourceforge.net
To install under Ubuntu
# sudo apt-get install htop