All Questions
12 questions
0
votes
0
answers
164
views
Cannot delete a sub-sub....-sub folder while trying to delete a git repository in a git repository
I wanted to delete a git repository and while doing that it gives me
Error when getting information for file “/leg/home/chaitanya/MyFolder/React/portfolio/node_modules/.cache/gh-pages/https!github.com!...
-1
votes
1
answer
3k
views
what are the difference between the Powershell commands cp and cp -r, rm and rmdir
I am learning the commands in PowerShell.
what is the difference between cp and cp -recurse ?
What is the difference between rm and rmdir ? is rm just short for rmdir?
0
votes
4
answers
237
views
How to keep certain folders and delete rest in Unix
I have around 10 folders and I am trying to keep only few subfolders under these and delete the rest.
Example: I have
A/1
A/2
A/3
A/4
B/1
B/4
B/5
B/6
I am trying to keep only the folder 1 and 4 ...
-1
votes
2
answers
98
views
Why system reboots the moment I use rm -r or rmdir to delete a directory under FreeBSD 10.2? [closed]
I have encountered a serious problem with rm command under FreeBSD 10.2.
Please use the link below to watch what I have recorded.
https://www.youtube.com/watch?v=D2qz5TY3D8M
In the current directory ...
0
votes
1
answer
24
views
How can I remove this sym link
I created a symlink, and I'm trying to remove it using rm /WebRoot it but I get the error Is a directory, but if I try rmdir /WebRoot I get an error Not a directory.
Does anyone know what's going ...
1
vote
2
answers
575
views
Remove first a from $HOME/a/a/b/c
I was reading a book on UNIX when I came across this question.
You have a directory structure
$HOME/a/a/b/c
where the first a is empty.
How do you remove it and move the lower directories up?
I ...
3
votes
1
answer
225
views
What difference does the backslash make in the below syntax to remove a UNIX directory having contents?
I need to delete a directory that contains several sub-directories and files. After googling and looking at the man pages of rmdir and rm, I have these two alternatives:
$ rm -rf <folder_name> ...
1
vote
1
answer
3k
views
how to delete folders but not files in a folder by cmd
How to delete folders but not files in a folder by cmd?
Such as, there is a direcory:
c:\image\1.png
c:\image\2.png
c:\image\3.png
c:\image\*.png
c:\image\folder1\*.png
c:\image\folder2\*.png
....
...
105
votes
4
answers
90k
views
How do I remove an empty folder and push that change?
How can I remove an empty folder locally and also have that happen for other collaborators that share the remote via pull-push? I know that folders aren't 'tracked' in that sense by git but the ...
7
votes
5
answers
9k
views
Deleting directories using single liner command [closed]
How to remove more than one directory using single command? Is it possible to do it in one liner? If yes, Please help on this.
/osmf/mgmt/scheduler>ls -lrt
total 22
drwx------ 2 root root ...
-3
votes
4
answers
779
views
How to delete a folder with other files and folders inside with PHP [duplicate]
Possible Duplicate:
A recursive remove directory function for PHP?
With PHP
I want to know the easiest way for delete a folder with files and folders inside.
450
votes
4
answers
809k
views
How to remove files and directories quickly via terminal (bash shell) [closed]
From a terminal window:
When I use the rm command it can only remove files.
When I use the rmdir command it only removes empty folders.
If I have a directory nested with files and folders within ...