RHCE interview questions


What command do you use to format a partition with a file system?
You could use mkfs command to format partition with file system.
Which command will assign IP address 192.168.1.1 and subnet mask 255.255.255.0 to eth0 network interface?
ifconfig command can be used to assign IP address. Following command will do the given task


ifconfig eth0 192.168.1.1 netmask 255.255.255.0
Which option in fdisk will display the partition table?
In fidisk utility, the "p" command will print the partition table.
To create a recurring scheduled task, which Linux scheduling tool should you use?
The cron command allows you to create recurring tasks
What command can you use to enable an Ethernet network interface that has already been configured?
To enable already configured interface use
ifconfig [interface] up
command. For example to up eth0 interface use following command
#ifconfig eth0 up
How will you decompress the demo.tar.gz file?
To decompress use following command
#tar -zxvf demo.tar.gz
A core dump file contains this message, “Program terminated with signal 11, segmentation fault.” What does this message indicate?
The core file will tell you what exactly caused the program to crash. So this message indicate that the program crashed because of a segmentation fault in memory.
What command runs fdisk on the first ATA/IDE hard drive?
The first ATA/IDE hard drive is hda, so the command would be
# fdisk /dev/hda
loading...

No comments:

Powered by Blogger.