What filesystem(s) my Linux supports?
Answer:
E.g. To see what ext filesystems it support, use
# cat /proc/filesystems | grep ext
ext3
ext2
ext4
Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.
What filesystem(s) my Linux supports?
Answer:
E.g. To see what ext filesystems it support, use
# cat /proc/filesystems | grep ext
ext3
ext2
ext4
How to extract a particular file from a tar file?
Answer:
Assume you have a lot of files in a tar file, how do you extract only a particular file without extract all the files?
Just use the following command:
# tar xvf files.tar file.txt
Now only file.txt is extracted.
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.