It would delete the directory ./quake, and all of it's contents.
rm -rf /
$ rm -rf *NOTE:I would strongly recommend that you verify your PWD is exactly where you want it to be before the executing the above command, otherwise, depression, dispair or sadness may follow.
If you are just removing the directory, use the command: rmdir dir-name The dir-name directory has to be empty for this to work. If there are files or other subdirectories then use the command: rm -rf dir-name
To remove a directory that is full with other files or directories, use the below command. rm -rf directory
If for example we wanted to make i subdirictory called foo in Linux or UNIX it you use mkdir foo to change into it you would use CD foo to remove the directory rmdir foo but this will only work if the directory is empty to remove the directory called foo when it is not empty use rm -rf foo but please be sure this is what you really want to do.
rm -rf <path to directory>
hi, try this userdel -rf
Recursively removes all files from the directory and all under it.
In terminal #mv -rf /source path /destination ptath For directories '-rf' For files 'f' #cp -rf /source path /destination path For moving files to remote system #scp -rf /source path 'username'@ip:/destination path user name - user at remote system ip - remote system ip
This will depend on the distribution. Most Linux distributions allow you to assume root by simply entering "su", followed by your password. Ubuntu-based distributions disable the root account by default, and you are expected to use the "sudo" command before any command that requires root privileges (ie. sudo rm -rf /). You can gain a root shell by entering "sudo su", followed by your password.
# rm -rf Target-folder Will remove the folder Target-folder and all it's contents .
The easiest way is to use the 'rm' command recursively. For example, the command: rm -rf /data/test/docs/fall would remove the directory 'fall' from /data/test/docs, even if it isn't empty.