Remove parent and sub directory
Clash Royale CLAN TAG#URR8PPP
up vote
-3
down vote
favorite
sample_dir2
`-- sample_dir
|-- cambridge
| `-- security
| |-- annex
| `-- parking
|-- history.exe
|-- markham
| |-- annex
| |-- building1
| `-- parking
`-- stenton
|-- admin
| `-- accounting
| `-- payroll
|-- gen_ed
| `-- Holidays
`-- lib_arts
`-- english.txt
Your current directory is stenton. Remove the accounting directory:
You entered: rm -r /admin/accounting
Please try again.
Your current directory is stenton. Remove the accounting directory:
Shouldn't rm -rf /admin/accounting
work?
rm
add a comment |Â
up vote
-3
down vote
favorite
sample_dir2
`-- sample_dir
|-- cambridge
| `-- security
| |-- annex
| `-- parking
|-- history.exe
|-- markham
| |-- annex
| |-- building1
| `-- parking
`-- stenton
|-- admin
| `-- accounting
| `-- payroll
|-- gen_ed
| `-- Holidays
`-- lib_arts
`-- english.txt
Your current directory is stenton. Remove the accounting directory:
You entered: rm -r /admin/accounting
Please try again.
Your current directory is stenton. Remove the accounting directory:
Shouldn't rm -rf /admin/accounting
work?
rm
1
Not unless stenton is also the system's root, but almost definitely/
is.
â mikeserv
Oct 29 '14 at 7:04
This is ULI101 at Seneca College, which we get year after year. All assignments "MUST consist of the studentâÂÂs OWN work".
â JdeBP
Oct 22 '16 at 1:54
add a comment |Â
up vote
-3
down vote
favorite
up vote
-3
down vote
favorite
sample_dir2
`-- sample_dir
|-- cambridge
| `-- security
| |-- annex
| `-- parking
|-- history.exe
|-- markham
| |-- annex
| |-- building1
| `-- parking
`-- stenton
|-- admin
| `-- accounting
| `-- payroll
|-- gen_ed
| `-- Holidays
`-- lib_arts
`-- english.txt
Your current directory is stenton. Remove the accounting directory:
You entered: rm -r /admin/accounting
Please try again.
Your current directory is stenton. Remove the accounting directory:
Shouldn't rm -rf /admin/accounting
work?
rm
sample_dir2
`-- sample_dir
|-- cambridge
| `-- security
| |-- annex
| `-- parking
|-- history.exe
|-- markham
| |-- annex
| |-- building1
| `-- parking
`-- stenton
|-- admin
| `-- accounting
| `-- payroll
|-- gen_ed
| `-- Holidays
`-- lib_arts
`-- english.txt
Your current directory is stenton. Remove the accounting directory:
You entered: rm -r /admin/accounting
Please try again.
Your current directory is stenton. Remove the accounting directory:
Shouldn't rm -rf /admin/accounting
work?
rm
rm
edited Oct 29 '14 at 7:18
chaos
34.5k771114
34.5k771114
asked Oct 29 '14 at 6:53
John
13
13
1
Not unless stenton is also the system's root, but almost definitely/
is.
â mikeserv
Oct 29 '14 at 7:04
This is ULI101 at Seneca College, which we get year after year. All assignments "MUST consist of the studentâÂÂs OWN work".
â JdeBP
Oct 22 '16 at 1:54
add a comment |Â
1
Not unless stenton is also the system's root, but almost definitely/
is.
â mikeserv
Oct 29 '14 at 7:04
This is ULI101 at Seneca College, which we get year after year. All assignments "MUST consist of the studentâÂÂs OWN work".
â JdeBP
Oct 22 '16 at 1:54
1
1
Not unless stenton is also the system's root, but almost definitely
/
is.â mikeserv
Oct 29 '14 at 7:04
Not unless stenton is also the system's root, but almost definitely
/
is.â mikeserv
Oct 29 '14 at 7:04
This is ULI101 at Seneca College, which we get year after year. All assignments "MUST consist of the studentâÂÂs OWN work".
â JdeBP
Oct 22 '16 at 1:54
This is ULI101 at Seneca College, which we get year after year. All assignments "MUST consist of the studentâÂÂs OWN work".
â JdeBP
Oct 22 '16 at 1:54
add a comment |Â
2 Answers
2
active
oldest
votes
up vote
7
down vote
Paths that start with /
are from the root of the entire filesystem. Leave off the slash to specify a file relative to the current directory. You can also say ./admin/accounting
to refer to a path relative to .
, which is the current directory.
Leaving off the slash worked, thank i did not know that it would specify it to the Current directory.
â John
Oct 29 '14 at 7:10
add a comment |Â
up vote
0
down vote
110% works
rm -r admin/accounting
New contributor
add a comment |Â
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
7
down vote
Paths that start with /
are from the root of the entire filesystem. Leave off the slash to specify a file relative to the current directory. You can also say ./admin/accounting
to refer to a path relative to .
, which is the current directory.
Leaving off the slash worked, thank i did not know that it would specify it to the Current directory.
â John
Oct 29 '14 at 7:10
add a comment |Â
up vote
7
down vote
Paths that start with /
are from the root of the entire filesystem. Leave off the slash to specify a file relative to the current directory. You can also say ./admin/accounting
to refer to a path relative to .
, which is the current directory.
Leaving off the slash worked, thank i did not know that it would specify it to the Current directory.
â John
Oct 29 '14 at 7:10
add a comment |Â
up vote
7
down vote
up vote
7
down vote
Paths that start with /
are from the root of the entire filesystem. Leave off the slash to specify a file relative to the current directory. You can also say ./admin/accounting
to refer to a path relative to .
, which is the current directory.
Paths that start with /
are from the root of the entire filesystem. Leave off the slash to specify a file relative to the current directory. You can also say ./admin/accounting
to refer to a path relative to .
, which is the current directory.
answered Oct 29 '14 at 7:07
M Conrad
57628
57628
Leaving off the slash worked, thank i did not know that it would specify it to the Current directory.
â John
Oct 29 '14 at 7:10
add a comment |Â
Leaving off the slash worked, thank i did not know that it would specify it to the Current directory.
â John
Oct 29 '14 at 7:10
Leaving off the slash worked, thank i did not know that it would specify it to the Current directory.
â John
Oct 29 '14 at 7:10
Leaving off the slash worked, thank i did not know that it would specify it to the Current directory.
â John
Oct 29 '14 at 7:10
add a comment |Â
up vote
0
down vote
110% works
rm -r admin/accounting
New contributor
add a comment |Â
up vote
0
down vote
110% works
rm -r admin/accounting
New contributor
add a comment |Â
up vote
0
down vote
up vote
0
down vote
110% works
rm -r admin/accounting
New contributor
110% works
rm -r admin/accounting
New contributor
New contributor
answered 19 mins ago
user320097
1
1
New contributor
New contributor
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f164762%2fremove-parent-and-sub-directory%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
1
Not unless stenton is also the system's root, but almost definitely
/
is.â mikeserv
Oct 29 '14 at 7:04
This is ULI101 at Seneca College, which we get year after year. All assignments "MUST consist of the studentâÂÂs OWN work".
â JdeBP
Oct 22 '16 at 1:54