how to delete entire records in unix ?
Answers were Sorted based on User's Feedback
to delete any record command is rm
to delete forcefully it is rm -r regarding deleting all
files i.e entire record than go for rm *.
| Is This Answer Correct ? | 49 Yes | 8 No |
Answer / brijesh sharma
We can use the command rm -rf / or rm -rf home
We can also give this command to delete entire record -
rm -rf *.*
| Is This Answer Correct ? | 5 Yes | 0 No |
Answer / m.dhanunjaya
If want to delete record we use rm commands like
-i(interactive),-v(verbose)-f(force fully).
we can use rm * command do delete entire records.
we use this command only when ever we are in sub-directory
only.if not it effects in UNIX o/s.
| Is This Answer Correct ? | 7 Yes | 3 No |
Answer / kiruthiga.s
From root directory give rm -r *
then it all the datas in Unix box will be deleted. For that
u need a root acces.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / nombuyiselo mbangula
rm -r * {delete everything from the directory}
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / ashish
if there no of file then try for
rm -rf filename
| Is This Answer Correct ? | 4 Yes | 5 No |
Hi All, Can you please let me know how to grep for a particular pattern in unix. I want to print the dates from the file exp.txt. the date pattern is DD:MM:YYYY, I just want to print all the dates from the file exp.txt.
8 Answers Concentrix, IBM, Symantec, TCS,
What command is used to switching between users in unix?
How does the system know where one command ends and another begins?
How can you create a symbolic link to a file or directory?
Explain command to show the space allocation of files?
How are UNIX file permissions represented?
Give a regular expression that finds two things, try to come up with regular expressions that find each individually using "egrep" command?
The command grep first second third /usr/you/myfile a) prints lines containing the words first, second or third from the file /usr/you/myfile b) searches for lines containing the pattern first in the files second, third, and /usr/you/myfile and prints them c) searches the files /usr/you/myfiel and third for lines containing the words first or second and prints them d) replaces the word first with the word second in the files third and /usr/you/myfile e) None of the above
What happens when we execute a unix command?
Explain command to view process running?
What do chown command do?
How do you change file permissions?