How to take down/up a network interface in Linux?
Answer:
To take the eth0 interface (the first network card) down:
# sudo ifconfig eth0 down
To take the eth0 interface up:
# sudo ifconfig eth0 up
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 take down/up a network interface in Linux?
Answer:
To take the eth0 interface (the first network card) down:
# sudo ifconfig eth0 down
To take the eth0 interface up:
# sudo ifconfig eth0 up
Quickly clear the screen
Answer:
Previously we discussed how to clear the screen using the clear command. But the most easy way is to type Ctrl+l key in your terminal.
# [Ctrl+l]
How to change hostname in RHEL/CentOS?
Answer:
1. To change the hostname, first change to the root account.
# su -
2. Run the system-config-network tool.
# system-config-network
Reboot your system to take effect.
Burn an ISO images to CDR in Ubuntu
Answer:
Burn an ISO images to CDR in Ubuntu is as easy as the following command:
# sudo cdrecord dev=/dev/scd0 driveropts=burnfree -v -data my_file.iso
Move a long running job to background
Answer:
Assume you have a job running for a very long time, and you might want it to run in background, even you have logged out from the SSH session.
1. Suspend it
# [Ctrl-Z]
2. Make it run in background
# bg && disown
You can now safely logout from the SSH session.