Prepare
Practice
Interview
Aptitude
Reasoning
English
GD
Placement papers
HR
Current affairs
Engineering
MCA
MBA
Online test
Login
Online Practice Test
>
Linux
« Previous
Next »
Which of the following commands delete the files from the /tmp directory, issued by non-root user?
Options
- rmdir -rf /tmp/*
- rm -rf /tmp/* -su
- su -c "rm -rf /tmp/*"
- su "rm -rf /tmp/*"
CORRECT ANSWER : su -c "rm -rf /tmp/*"
Discussion Board
Wrong Answer
su -c "rm -rf /tmp/*" is wrong answer it should be
su -c " rm -f /tmp/*" because "-r" parameter is used for remove the directories "-f" parameter is used for forcefully. So if you run the su -c "rm -rf /tmp/*" it wil delete all the directories from the /temp directory.
Correct Ans: su -c "rm -f /tmp/*"
Krishna Kumar 05-30-2017 02:50 AM
wrong answer
su -c "rm -rf /tmp/*' removes all the directories inside /tmp along with all file in /tmp
it should have been #su -c "rm -f /tmp/*'
laxmareddy 09-5-2016 11:42 AM
linux
so nice
nabi hussaian 08-28-2014 01:14 AM
« Previous
Next »
Write your comments
*
*
Email must be in the form someone@domain.com
*
*
Enter the code shown above:
Please enter the code shown above
(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)
Related Content
Networking (40)
Iphone (10)
Android (11)
Wireless communication (11)
OS (10)
Linuxpart (27)
Linuxpart (25)
Linux part (25)
Advertisement
▲