Examine a folder named `-F/` [duplicate]How do I use filenames that start with a dash “-” as command arguments?Can I use ls -R to show up to 2 folder depth?Bash completion doesn't work, or is ignoring what I've typed; but works for commandsmv a folder and now the folder seems goneWhy I could not create a folder named '/' using terminal?How to find and copy files to folder in bash scriptFolder permission issueError in brand new External Hard Drive: “ls: reading directory '.': Input/output error”Examples folder not showing in ls outputSearch folder, find and copy files to new folder corresponding file endingShow permissions of a folder using `ls`
Why does it take longer to fly from London to Xi'an than to Beijing
Cryptography and elliptic curves
What does formal training in a field mean?
Translation of the latin word 'sit' in Thomas Aquinas' works
spatiotemporal regression
Why do the non-leaf Nodes of Merkle tree need to be hashed?
Can a surprised creature fall prone voluntarily on their turn?
Why is the Sun made of light elements only?
What was the notion of limit that Newton used?
Why do Thanos' punches not kill Captain America or at least cause vital wounds?
How to slow yourself down (for playing nice with others)
is it permitted to swallow spit on a fast day?
What's the difference between const array and static const array in C/C++
No such column 'DeveloperName' on entity 'RecordType' after Summer '19 release on sandbox
Can the president of the United States be guilty of insider trading?
date -d 'previous Monday" to display the preceding Monday
How are one-time password generators like Google Authenticator different from having two passwords?
Why was wildfire not used during the Battle of Winterfell?
Is there a need for better software for writers?
Is a vertical stabiliser needed for straight line flight in a glider?
Why do the Avengers care about returning these items in Endgame?
Passport stamps art, can it be done?
What's the "magic similar to the Knock spell" referenced in the Dungeon of the Mad Mage adventure?
Is it a good idea to copy a trader when investing?
Examine a folder named `-F/` [duplicate]
How do I use filenames that start with a dash “-” as command arguments?Can I use ls -R to show up to 2 folder depth?Bash completion doesn't work, or is ignoring what I've typed; but works for commandsmv a folder and now the folder seems goneWhy I could not create a folder named '/' using terminal?How to find and copy files to folder in bash scriptFolder permission issueError in brand new External Hard Drive: “ls: reading directory '.': Input/output error”Examples folder not showing in ls outputSearch folder, find and copy files to new folder corresponding file endingShow permissions of a folder using `ls`
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
This question already has an answer here:
How do I use filenames that start with a dash “-” as command arguments?
2 answers
I think this folder was probably created by accident at some point, but I can't ls or cd to it to check.
Things I have tried:
ls '-F'
ls "-F"
ls -F
ls \-F
ls \-F
and the cd equivalents
bash cd ls
New contributor
Jacob Kopczynski is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
marked as duplicate by steeldriver
StackExchange.ready(function()
if (StackExchange.options.isMobile) return;
$('.dupe-hammer-message-hover:not(.hover-bound)').each(function()
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');
$hover.hover(
function()
$hover.showInfoMessage('',
messageElement: $msg.clone().show(),
transient: false,
position: my: 'bottom left', at: 'top center', offsetTop: -7 ,
dismissable: false,
relativeToBody: true
);
,
function()
StackExchange.helpers.removeMessages();
);
);
);
13 mins ago
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
add a comment |
This question already has an answer here:
How do I use filenames that start with a dash “-” as command arguments?
2 answers
I think this folder was probably created by accident at some point, but I can't ls or cd to it to check.
Things I have tried:
ls '-F'
ls "-F"
ls -F
ls \-F
ls \-F
and the cd equivalents
bash cd ls
New contributor
Jacob Kopczynski is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
marked as duplicate by steeldriver
StackExchange.ready(function()
if (StackExchange.options.isMobile) return;
$('.dupe-hammer-message-hover:not(.hover-bound)').each(function()
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');
$hover.hover(
function()
$hover.showInfoMessage('',
messageElement: $msg.clone().show(),
transient: false,
position: my: 'bottom left', at: 'top center', offsetTop: -7 ,
dismissable: false,
relativeToBody: true
);
,
function()
StackExchange.helpers.removeMessages();
);
);
);
13 mins ago
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
add a comment |
This question already has an answer here:
How do I use filenames that start with a dash “-” as command arguments?
2 answers
I think this folder was probably created by accident at some point, but I can't ls or cd to it to check.
Things I have tried:
ls '-F'
ls "-F"
ls -F
ls \-F
ls \-F
and the cd equivalents
bash cd ls
New contributor
Jacob Kopczynski is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
This question already has an answer here:
How do I use filenames that start with a dash “-” as command arguments?
2 answers
I think this folder was probably created by accident at some point, but I can't ls or cd to it to check.
Things I have tried:
ls '-F'
ls "-F"
ls -F
ls \-F
ls \-F
and the cd equivalents
This question already has an answer here:
How do I use filenames that start with a dash “-” as command arguments?
2 answers
bash cd ls
bash cd ls
New contributor
Jacob Kopczynski is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Jacob Kopczynski is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Jacob Kopczynski is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
asked 34 mins ago
Jacob KopczynskiJacob Kopczynski
182
182
New contributor
Jacob Kopczynski is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Jacob Kopczynski is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
marked as duplicate by steeldriver
StackExchange.ready(function()
if (StackExchange.options.isMobile) return;
$('.dupe-hammer-message-hover:not(.hover-bound)').each(function()
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');
$hover.hover(
function()
$hover.showInfoMessage('',
messageElement: $msg.clone().show(),
transient: false,
position: my: 'bottom left', at: 'top center', offsetTop: -7 ,
dismissable: false,
relativeToBody: true
);
,
function()
StackExchange.helpers.removeMessages();
);
);
);
13 mins ago
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
marked as duplicate by steeldriver
StackExchange.ready(function()
if (StackExchange.options.isMobile) return;
$('.dupe-hammer-message-hover:not(.hover-bound)').each(function()
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');
$hover.hover(
function()
$hover.showInfoMessage('',
messageElement: $msg.clone().show(),
transient: false,
position: my: 'bottom left', at: 'top center', offsetTop: -7 ,
dismissable: false,
relativeToBody: true
);
,
function()
StackExchange.helpers.removeMessages();
);
);
);
13 mins ago
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
You can always specify the file as absolute or relative path instead of just the file name.
The simplest way is to just prefix it with a ./ to indicate it's in your current directory and avoid having the first character of the argument being a - that causes it to be treated as option/flag:
ls ./-F
This should work with basically every command that expects a file name or path as argument, even those which do not support the use of -- as argument separator.
1
Oh, duh. Yes, that works.
– Jacob Kopczynski
28 mins ago
add a comment |
You can do it this way:
ls -lah -- -F
The -- denotes the end of options for the command, same will work with cd and even rm.
cd -- -F
and
rm -r -- -F
add a comment |
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
You can always specify the file as absolute or relative path instead of just the file name.
The simplest way is to just prefix it with a ./ to indicate it's in your current directory and avoid having the first character of the argument being a - that causes it to be treated as option/flag:
ls ./-F
This should work with basically every command that expects a file name or path as argument, even those which do not support the use of -- as argument separator.
1
Oh, duh. Yes, that works.
– Jacob Kopczynski
28 mins ago
add a comment |
You can always specify the file as absolute or relative path instead of just the file name.
The simplest way is to just prefix it with a ./ to indicate it's in your current directory and avoid having the first character of the argument being a - that causes it to be treated as option/flag:
ls ./-F
This should work with basically every command that expects a file name or path as argument, even those which do not support the use of -- as argument separator.
1
Oh, duh. Yes, that works.
– Jacob Kopczynski
28 mins ago
add a comment |
You can always specify the file as absolute or relative path instead of just the file name.
The simplest way is to just prefix it with a ./ to indicate it's in your current directory and avoid having the first character of the argument being a - that causes it to be treated as option/flag:
ls ./-F
This should work with basically every command that expects a file name or path as argument, even those which do not support the use of -- as argument separator.
You can always specify the file as absolute or relative path instead of just the file name.
The simplest way is to just prefix it with a ./ to indicate it's in your current directory and avoid having the first character of the argument being a - that causes it to be treated as option/flag:
ls ./-F
This should work with basically every command that expects a file name or path as argument, even those which do not support the use of -- as argument separator.
answered 30 mins ago
Byte CommanderByte Commander
67.6k27182313
67.6k27182313
1
Oh, duh. Yes, that works.
– Jacob Kopczynski
28 mins ago
add a comment |
1
Oh, duh. Yes, that works.
– Jacob Kopczynski
28 mins ago
1
1
Oh, duh. Yes, that works.
– Jacob Kopczynski
28 mins ago
Oh, duh. Yes, that works.
– Jacob Kopczynski
28 mins ago
add a comment |
You can do it this way:
ls -lah -- -F
The -- denotes the end of options for the command, same will work with cd and even rm.
cd -- -F
and
rm -r -- -F
add a comment |
You can do it this way:
ls -lah -- -F
The -- denotes the end of options for the command, same will work with cd and even rm.
cd -- -F
and
rm -r -- -F
add a comment |
You can do it this way:
ls -lah -- -F
The -- denotes the end of options for the command, same will work with cd and even rm.
cd -- -F
and
rm -r -- -F
You can do it this way:
ls -lah -- -F
The -- denotes the end of options for the command, same will work with cd and even rm.
cd -- -F
and
rm -r -- -F
edited 23 mins ago
answered 31 mins ago
VideonauthVideonauth
25.4k1276104
25.4k1276104
add a comment |
add a comment |