Q1) when ever i am trying to delete a folder by command "rm" .... this is showing (python)
rm: cannot remove 'command line': Is a directory
Q2) why whenever i am creating a file or folder ... it is becoming a directory ?
Q3) how can i create a file or folder which is not a directory like hello.py ?
Q3) why any file or folder is not removing by command "rm"?
*IF YOU DON'T KNOW THE ANSWER ... PLEASE DON'T GIVE" I AM REQUESTING YOU AS IT IS VERY IMPORTANT* PLEASE ANSER ALL THE QUESTIONS....!!
Answers
Answered by
3
=> rm(remove) command is used to remove files, and rmdir(remove directory) command is used to remove empty directory (means if you want to remove a directory then first of all you have to remove all files and directory present in that directory). So rm command can't remove directory.
=> To make a directory you have to use mkdir(make directory) command.
=> If you are using Ubuntu terminal then gedit fileName.extension will create a new file.
Similar questions