display permission for all files that start with -
Clash Royale CLAN TAG#URR8PPP
up vote
1
down vote
favorite
i need help with a command for displaying the permissions details for all the files names in a directory that begin with just "_".
I have tried various commands using ls and find and no joy. I would appreciate some help with this. I am new to Linux so simple commands are good!
permissions ls command
New contributor
add a comment |Â
up vote
1
down vote
favorite
i need help with a command for displaying the permissions details for all the files names in a directory that begin with just "_".
I have tried various commands using ls and find and no joy. I would appreciate some help with this. I am new to Linux so simple commands are good!
permissions ls command
New contributor
Do the filenames start with dash or thels
permissions string?
â Jeff Schaller
9 hours ago
Sorry its an underscore, the file names that start with an underscore
â Deirdre
9 hours ago
Sorry for the mis-edit, then! You had an underscore in the title, but a dash in the body. Feel free to edit the question to take it in the correct direction. Thank you!
â Jeff Schaller
9 hours ago
have done edit now. thanks
â Deirdre
8 hours ago
add a comment |Â
up vote
1
down vote
favorite
up vote
1
down vote
favorite
i need help with a command for displaying the permissions details for all the files names in a directory that begin with just "_".
I have tried various commands using ls and find and no joy. I would appreciate some help with this. I am new to Linux so simple commands are good!
permissions ls command
New contributor
i need help with a command for displaying the permissions details for all the files names in a directory that begin with just "_".
I have tried various commands using ls and find and no joy. I would appreciate some help with this. I am new to Linux so simple commands are good!
permissions ls command
permissions ls command
New contributor
New contributor
edited 8 hours ago
New contributor
asked 10 hours ago
Deirdre
174
174
New contributor
New contributor
Do the filenames start with dash or thels
permissions string?
â Jeff Schaller
9 hours ago
Sorry its an underscore, the file names that start with an underscore
â Deirdre
9 hours ago
Sorry for the mis-edit, then! You had an underscore in the title, but a dash in the body. Feel free to edit the question to take it in the correct direction. Thank you!
â Jeff Schaller
9 hours ago
have done edit now. thanks
â Deirdre
8 hours ago
add a comment |Â
Do the filenames start with dash or thels
permissions string?
â Jeff Schaller
9 hours ago
Sorry its an underscore, the file names that start with an underscore
â Deirdre
9 hours ago
Sorry for the mis-edit, then! You had an underscore in the title, but a dash in the body. Feel free to edit the question to take it in the correct direction. Thank you!
â Jeff Schaller
9 hours ago
have done edit now. thanks
â Deirdre
8 hours ago
Do the filenames start with dash or the
ls
permissions string?â Jeff Schaller
9 hours ago
Do the filenames start with dash or the
ls
permissions string?â Jeff Schaller
9 hours ago
Sorry its an underscore, the file names that start with an underscore
â Deirdre
9 hours ago
Sorry its an underscore, the file names that start with an underscore
â Deirdre
9 hours ago
Sorry for the mis-edit, then! You had an underscore in the title, but a dash in the body. Feel free to edit the question to take it in the correct direction. Thank you!
â Jeff Schaller
9 hours ago
Sorry for the mis-edit, then! You had an underscore in the title, but a dash in the body. Feel free to edit the question to take it in the correct direction. Thank you!
â Jeff Schaller
9 hours ago
have done edit now. thanks
â Deirdre
8 hours ago
have done edit now. thanks
â Deirdre
8 hours ago
add a comment |Â
2 Answers
2
active
oldest
votes
up vote
6
down vote
accepted
Try:
ls -l -- -*
The -- indicates that what follows are not command line options.
Based on your update, for underscores you should just be able to do:
ls -l _*
Though the -- option won't hurt (it just won't do anything in that case)
New contributor
works great thanks
â Deirdre
9 hours ago
yes i used _ as i noticed the dash. worked perfectly
â Deirdre
8 hours ago
add a comment |Â
up vote
4
down vote
"-" is interpreted as a parameter, but you don't need to suffer, just append the path before the file name or just use ./.
touch ./-badfilename1 ./-badfilename2
ls -l ./-*
ls -l /full/path/for/the/file/-*
rm ./-badfilename?
And every command will just work (ls, rm, cat, touch etc!).
add a comment |Â
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
6
down vote
accepted
Try:
ls -l -- -*
The -- indicates that what follows are not command line options.
Based on your update, for underscores you should just be able to do:
ls -l _*
Though the -- option won't hurt (it just won't do anything in that case)
New contributor
works great thanks
â Deirdre
9 hours ago
yes i used _ as i noticed the dash. worked perfectly
â Deirdre
8 hours ago
add a comment |Â
up vote
6
down vote
accepted
Try:
ls -l -- -*
The -- indicates that what follows are not command line options.
Based on your update, for underscores you should just be able to do:
ls -l _*
Though the -- option won't hurt (it just won't do anything in that case)
New contributor
works great thanks
â Deirdre
9 hours ago
yes i used _ as i noticed the dash. worked perfectly
â Deirdre
8 hours ago
add a comment |Â
up vote
6
down vote
accepted
up vote
6
down vote
accepted
Try:
ls -l -- -*
The -- indicates that what follows are not command line options.
Based on your update, for underscores you should just be able to do:
ls -l _*
Though the -- option won't hurt (it just won't do anything in that case)
New contributor
Try:
ls -l -- -*
The -- indicates that what follows are not command line options.
Based on your update, for underscores you should just be able to do:
ls -l _*
Though the -- option won't hurt (it just won't do anything in that case)
New contributor
edited 9 hours ago
New contributor
answered 10 hours ago
blihp
1864
1864
New contributor
New contributor
works great thanks
â Deirdre
9 hours ago
yes i used _ as i noticed the dash. worked perfectly
â Deirdre
8 hours ago
add a comment |Â
works great thanks
â Deirdre
9 hours ago
yes i used _ as i noticed the dash. worked perfectly
â Deirdre
8 hours ago
works great thanks
â Deirdre
9 hours ago
works great thanks
â Deirdre
9 hours ago
yes i used _ as i noticed the dash. worked perfectly
â Deirdre
8 hours ago
yes i used _ as i noticed the dash. worked perfectly
â Deirdre
8 hours ago
add a comment |Â
up vote
4
down vote
"-" is interpreted as a parameter, but you don't need to suffer, just append the path before the file name or just use ./.
touch ./-badfilename1 ./-badfilename2
ls -l ./-*
ls -l /full/path/for/the/file/-*
rm ./-badfilename?
And every command will just work (ls, rm, cat, touch etc!).
add a comment |Â
up vote
4
down vote
"-" is interpreted as a parameter, but you don't need to suffer, just append the path before the file name or just use ./.
touch ./-badfilename1 ./-badfilename2
ls -l ./-*
ls -l /full/path/for/the/file/-*
rm ./-badfilename?
And every command will just work (ls, rm, cat, touch etc!).
add a comment |Â
up vote
4
down vote
up vote
4
down vote
"-" is interpreted as a parameter, but you don't need to suffer, just append the path before the file name or just use ./.
touch ./-badfilename1 ./-badfilename2
ls -l ./-*
ls -l /full/path/for/the/file/-*
rm ./-badfilename?
And every command will just work (ls, rm, cat, touch etc!).
"-" is interpreted as a parameter, but you don't need to suffer, just append the path before the file name or just use ./.
touch ./-badfilename1 ./-badfilename2
ls -l ./-*
ls -l /full/path/for/the/file/-*
rm ./-badfilename?
And every command will just work (ls, rm, cat, touch etc!).
edited 9 hours ago
answered 10 hours ago
Luciano Andress Martini
3,240830
3,240830
add a comment |Â
add a comment |Â
Deirdre is a new contributor. Be nice, and check out our Code of Conduct.
Deirdre is a new contributor. Be nice, and check out our Code of Conduct.
Deirdre is a new contributor. Be nice, and check out our Code of Conduct.
Deirdre is a new contributor. Be nice, and check out our Code of Conduct.
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%2f473060%2fdisplay-permission-for-all-files-that-start-with%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
Do the filenames start with dash or the
ls
permissions string?â Jeff Schaller
9 hours ago
Sorry its an underscore, the file names that start with an underscore
â Deirdre
9 hours ago
Sorry for the mis-edit, then! You had an underscore in the title, but a dash in the body. Feel free to edit the question to take it in the correct direction. Thank you!
â Jeff Schaller
9 hours ago
have done edit now. thanks
â Deirdre
8 hours ago