Which of the following commands will you run to list all files that have been modified within the last 60 minutes?
A. find /etc -name *.txt
B. find start -dir -min -60
C. find start -dir -cmin -60
D. find start -cmin -60
You work as a System Administrator for McNeil Inc. The company has a Linux based network. You are a root user on Red Hat operating system. You have upgraded the amount of RAM in your system from 256 MB to 512 MB, but there is only 512 MB of swap space. Therefore, you want to add more swap space to / dev/hdb2 hard drive to run the applications that require a large amount of memory. Which of the following commands should you run to accomplish this task? Each correct answer represents a complete solution. Choose all that apply.
A. mkswap /dev/hdb2
B. swapon /dev/hdb2
C. mount
D. parted
John works as a Network Administrator for We-are-Secure Inc. The company uses a Linux server. John wants to give the following file permissions to the imp.c file: l Read, Write, and Execute permissions to the owner l Read and Write permissions to groups l Read Only permissions to other users
Which of the following commands will John use to accomplish the task?
A. chmod 765
B. chmod 777
C. chmod 712
D. chmod 764
You work as a Network Administrator for Secure World Inc. The company has a Linux-based network. You want to run a command with the changed root directory. Which of the following commands will you use?
A. route
B. ls
C. chroot
D. chdir
Which command is used to change access mode for files and directories?
A. chmod
B. chmode
C. chgrp
D. chown
Which of the following commands is used to compare the contents of two files for differences?
A. sort
B. cat
C. wc
D. diff
Which of the following files contain the information on how init should set up the system in every run level?
A. /etc/rc.d/rc.local
B. /sbin/runlevel
C. /etc/rc.d/rc.sysinit
D. /etc/inittab
Which of the following commands is used to verify the installed zip rpm against the RPM database?
A. rpm -Vp zip-2.3-8.i386.rpm
B. rpm -Va
C. rpm -V zip
D. rpm -qa gpg-pubkey
Which of the following commands can be used to check badblocks? Each correct answer represents a complete solution. Choose all that apply.
A. mkswap -c
B. fsck -c
C. mke2fs -I
D. fsck -p
Which of the following commands is used to scan and repair file systems on a hard disk of a Linux computer?
A. fsck
B. fixfs
C. mkfs
D. mount