Convenient way to name files in Linux Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) 2019 Community Moderator Election Results Why I closed the “Why is Kali so hard” questionAudio quality issues with mpdFiles with “core” nametar specific files based on a patternHow to rename thousands of files efficiently?How to reduce size of a FLAC file without damaging its quality?Ways to consolidate music folderIs there a convenient way to classify files as “binary” or “text”?Replace file name with title in multiple audio filesWhat's a convenient way to move files and subdirs “up a subdir” with possible name clash?Find files, print creation date and file name
Writing Thesis: Copying from published papers
Slither Like a Snake
Antler Helmet: Can it work?
Two different pronunciation of "понял"
Estimated State payment too big --> money back; + 2018 Tax Reform
Fishing simulator
How are presidential pardons supposed to be used?
Who can trigger ship-wide alerts in Star Trek?
Is above average number of years spent on PhD considered a red flag in future academia or industry positions?
Can I throw a sword that doesn't have the Thrown property at someone?
Estimate capacitor parameters
3 doors, three guards, one stone
How does modal jazz use chord progressions?
Biased dice probability question
Why does tar appear to skip file contents when output file is /dev/null?
Using "nakedly" instead of "with nothing on"
How do I keep my slimes from escaping their pens?
What's the difference between (size_t)-1 and ~0?
Limit for e and 1/e
Do we know why communications with Beresheet and NASA were lost during the attempted landing of the Moon lander?
Is there a service that would inform me whenever a new direct route is scheduled from a given airport?
Determine whether f is a function, an injection, a surjection
Area of a 2D convex hull
How can players take actions together that are impossible otherwise?
Convenient way to name files in Linux
Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)
2019 Community Moderator Election Results
Why I closed the “Why is Kali so hard” questionAudio quality issues with mpdFiles with “core” nametar specific files based on a patternHow to rename thousands of files efficiently?How to reduce size of a FLAC file without damaging its quality?Ways to consolidate music folderIs there a convenient way to classify files as “binary” or “text”?Replace file name with title in multiple audio filesWhat's a convenient way to move files and subdirs “up a subdir” with possible name clash?Find files, print creation date and file name
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I've noticed that a lot of people involved in Linux (like tutorials and guides) tend to name files omitting spaces and replacing them with the character "_" and I would like to know if there's a reason to do so. Also I want to know what other characters should be avoided when naming files. What about capital letters? I've seen a preference for lowercase letters.
As a last query, what would be the best way to name my songs in Linux. For example, I got a lot of files in the format: track. artist name - song name.mp3, like 01. Crystal Castles - Untrust Us.mp3. Should I change the format to something like track._artist_name_-_song_name.mp3 as in 01._Crystal_Castles_-_Untrust_Us.mp3I would like to know your opinion on this matter.
files audio filenames
add a comment |
I've noticed that a lot of people involved in Linux (like tutorials and guides) tend to name files omitting spaces and replacing them with the character "_" and I would like to know if there's a reason to do so. Also I want to know what other characters should be avoided when naming files. What about capital letters? I've seen a preference for lowercase letters.
As a last query, what would be the best way to name my songs in Linux. For example, I got a lot of files in the format: track. artist name - song name.mp3, like 01. Crystal Castles - Untrust Us.mp3. Should I change the format to something like track._artist_name_-_song_name.mp3 as in 01._Crystal_Castles_-_Untrust_Us.mp3I would like to know your opinion on this matter.
files audio filenames
add a comment |
I've noticed that a lot of people involved in Linux (like tutorials and guides) tend to name files omitting spaces and replacing them with the character "_" and I would like to know if there's a reason to do so. Also I want to know what other characters should be avoided when naming files. What about capital letters? I've seen a preference for lowercase letters.
As a last query, what would be the best way to name my songs in Linux. For example, I got a lot of files in the format: track. artist name - song name.mp3, like 01. Crystal Castles - Untrust Us.mp3. Should I change the format to something like track._artist_name_-_song_name.mp3 as in 01._Crystal_Castles_-_Untrust_Us.mp3I would like to know your opinion on this matter.
files audio filenames
I've noticed that a lot of people involved in Linux (like tutorials and guides) tend to name files omitting spaces and replacing them with the character "_" and I would like to know if there's a reason to do so. Also I want to know what other characters should be avoided when naming files. What about capital letters? I've seen a preference for lowercase letters.
As a last query, what would be the best way to name my songs in Linux. For example, I got a lot of files in the format: track. artist name - song name.mp3, like 01. Crystal Castles - Untrust Us.mp3. Should I change the format to something like track._artist_name_-_song_name.mp3 as in 01._Crystal_Castles_-_Untrust_Us.mp3I would like to know your opinion on this matter.
files audio filenames
files audio filenames
edited 16 hours ago
Rui F Ribeiro
42.1k1483142
42.1k1483142
asked Aug 26 '14 at 2:46
Patricio FariaPatricio Faria
161
161
add a comment |
add a comment |
4 Answers
4
active
oldest
votes
Technically speaking, the only characters that are explicitly disallowed are / and (the NUL byte) since these have special meanings.
However, there are some conventions that people tend to use for convenience's sake. For example, you noticed that people prefer not to use spaces and instead use _. This is because a spaces are word delimiters on *nix command-lines. As a result, if you use a space in a file-name, you must either quote the file name or escape each space (with a ) for the name to be recognized correctly as a single entity. Though you can use spaces in filenames, the extra effort deters many people from doing so.
Additionally, capital letters are avoided (by some), probably because it takes more effort to type those file names—afterall, pressing Shift is pretty hard!
Your question of "What is the best convention?" is difficult to answer; as with many issues, under *nix, the best solution is what works best for you.
Personally, I keep my audio files in a file hierarchy (~/Music/<Artist>/<Album>/) and each track name like so: ## - <Track Name>.ext.
Nice answer. I would like to add that for myself, the only exceptions in which I allow for spaces and/or capitalization, is with filenames of songs and video's.
– twan163
Aug 26 '14 at 7:11
add a comment |
Upper and Lower Case
Upper case, lower case, and mixed case are all fine for file names. If some users have a preference for lower case names, it is just because it is faster to type lower case.
Spaces
Spaces are fine in file names with one caveat: such file names require more care when writing shell scripts. A basic tutorial on this subject is here.
Colons
Colons (
:) should probably be avoided. This is because, when moving files from one computer to another, it is a common convention, with utilities such asscp, to combine the computer name and file name in the formmachinename:filename. Thus, if your file name has a colon, it may lead to confusion.Slashes
You can't use
/as this character is used to separated directory names, just likeis used on Microsoft systems. If you want to freely transfer files back and forth, you should probably avoid both.Portability
Many mp3 players use old-style Microsoft VFAT filesystems. On these file systems,
:,,*, and?are all forbidden. If you will ever transfer your files to such a filesystem, it is best to avoid these characters as well.
add a comment |
Upper and lower case - note
*Common filesystems on nix like OS'es allows
ThisFileandthisfileto exist in the same folder. This is not possible e.g. on a vfat or ntfs filesystem (and quite a number of other older filsystems).
add a comment |
The most important thing is to match the patterns that exist and stick to it. Get to an answer without waste time mulling it over. I understand the irony that I am answering this question ;
Apple follows /Library/Extensions/SomeExtension.file so I set up my working directory like that too: Projects/Client/Project/thing.extension
Incidentally, the frontend dev work I do also follows this logic with JS namingLikeThis.js while CSS something-like-this.css - mixing conventions in my project but not to technologies at large. I asked Bootstrap's creators @fat and @mdo awhile back and its their approach a well. I adopted it and never dedicated serious thought to it again.
It is a bit wonky but solves the conundrum with a defensible answer so I can get to work with less thinking or debate.
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
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
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f152174%2fconvenient-way-to-name-files-in-linux%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
4 Answers
4
active
oldest
votes
4 Answers
4
active
oldest
votes
active
oldest
votes
active
oldest
votes
Technically speaking, the only characters that are explicitly disallowed are / and (the NUL byte) since these have special meanings.
However, there are some conventions that people tend to use for convenience's sake. For example, you noticed that people prefer not to use spaces and instead use _. This is because a spaces are word delimiters on *nix command-lines. As a result, if you use a space in a file-name, you must either quote the file name or escape each space (with a ) for the name to be recognized correctly as a single entity. Though you can use spaces in filenames, the extra effort deters many people from doing so.
Additionally, capital letters are avoided (by some), probably because it takes more effort to type those file names—afterall, pressing Shift is pretty hard!
Your question of "What is the best convention?" is difficult to answer; as with many issues, under *nix, the best solution is what works best for you.
Personally, I keep my audio files in a file hierarchy (~/Music/<Artist>/<Album>/) and each track name like so: ## - <Track Name>.ext.
Nice answer. I would like to add that for myself, the only exceptions in which I allow for spaces and/or capitalization, is with filenames of songs and video's.
– twan163
Aug 26 '14 at 7:11
add a comment |
Technically speaking, the only characters that are explicitly disallowed are / and (the NUL byte) since these have special meanings.
However, there are some conventions that people tend to use for convenience's sake. For example, you noticed that people prefer not to use spaces and instead use _. This is because a spaces are word delimiters on *nix command-lines. As a result, if you use a space in a file-name, you must either quote the file name or escape each space (with a ) for the name to be recognized correctly as a single entity. Though you can use spaces in filenames, the extra effort deters many people from doing so.
Additionally, capital letters are avoided (by some), probably because it takes more effort to type those file names—afterall, pressing Shift is pretty hard!
Your question of "What is the best convention?" is difficult to answer; as with many issues, under *nix, the best solution is what works best for you.
Personally, I keep my audio files in a file hierarchy (~/Music/<Artist>/<Album>/) and each track name like so: ## - <Track Name>.ext.
Nice answer. I would like to add that for myself, the only exceptions in which I allow for spaces and/or capitalization, is with filenames of songs and video's.
– twan163
Aug 26 '14 at 7:11
add a comment |
Technically speaking, the only characters that are explicitly disallowed are / and (the NUL byte) since these have special meanings.
However, there are some conventions that people tend to use for convenience's sake. For example, you noticed that people prefer not to use spaces and instead use _. This is because a spaces are word delimiters on *nix command-lines. As a result, if you use a space in a file-name, you must either quote the file name or escape each space (with a ) for the name to be recognized correctly as a single entity. Though you can use spaces in filenames, the extra effort deters many people from doing so.
Additionally, capital letters are avoided (by some), probably because it takes more effort to type those file names—afterall, pressing Shift is pretty hard!
Your question of "What is the best convention?" is difficult to answer; as with many issues, under *nix, the best solution is what works best for you.
Personally, I keep my audio files in a file hierarchy (~/Music/<Artist>/<Album>/) and each track name like so: ## - <Track Name>.ext.
Technically speaking, the only characters that are explicitly disallowed are / and (the NUL byte) since these have special meanings.
However, there are some conventions that people tend to use for convenience's sake. For example, you noticed that people prefer not to use spaces and instead use _. This is because a spaces are word delimiters on *nix command-lines. As a result, if you use a space in a file-name, you must either quote the file name or escape each space (with a ) for the name to be recognized correctly as a single entity. Though you can use spaces in filenames, the extra effort deters many people from doing so.
Additionally, capital letters are avoided (by some), probably because it takes more effort to type those file names—afterall, pressing Shift is pretty hard!
Your question of "What is the best convention?" is difficult to answer; as with many issues, under *nix, the best solution is what works best for you.
Personally, I keep my audio files in a file hierarchy (~/Music/<Artist>/<Album>/) and each track name like so: ## - <Track Name>.ext.
answered Aug 26 '14 at 3:00
HalosGhostHalosGhost
3,80392236
3,80392236
Nice answer. I would like to add that for myself, the only exceptions in which I allow for spaces and/or capitalization, is with filenames of songs and video's.
– twan163
Aug 26 '14 at 7:11
add a comment |
Nice answer. I would like to add that for myself, the only exceptions in which I allow for spaces and/or capitalization, is with filenames of songs and video's.
– twan163
Aug 26 '14 at 7:11
Nice answer. I would like to add that for myself, the only exceptions in which I allow for spaces and/or capitalization, is with filenames of songs and video's.
– twan163
Aug 26 '14 at 7:11
Nice answer. I would like to add that for myself, the only exceptions in which I allow for spaces and/or capitalization, is with filenames of songs and video's.
– twan163
Aug 26 '14 at 7:11
add a comment |
Upper and Lower Case
Upper case, lower case, and mixed case are all fine for file names. If some users have a preference for lower case names, it is just because it is faster to type lower case.
Spaces
Spaces are fine in file names with one caveat: such file names require more care when writing shell scripts. A basic tutorial on this subject is here.
Colons
Colons (
:) should probably be avoided. This is because, when moving files from one computer to another, it is a common convention, with utilities such asscp, to combine the computer name and file name in the formmachinename:filename. Thus, if your file name has a colon, it may lead to confusion.Slashes
You can't use
/as this character is used to separated directory names, just likeis used on Microsoft systems. If you want to freely transfer files back and forth, you should probably avoid both.Portability
Many mp3 players use old-style Microsoft VFAT filesystems. On these file systems,
:,,*, and?are all forbidden. If you will ever transfer your files to such a filesystem, it is best to avoid these characters as well.
add a comment |
Upper and Lower Case
Upper case, lower case, and mixed case are all fine for file names. If some users have a preference for lower case names, it is just because it is faster to type lower case.
Spaces
Spaces are fine in file names with one caveat: such file names require more care when writing shell scripts. A basic tutorial on this subject is here.
Colons
Colons (
:) should probably be avoided. This is because, when moving files from one computer to another, it is a common convention, with utilities such asscp, to combine the computer name and file name in the formmachinename:filename. Thus, if your file name has a colon, it may lead to confusion.Slashes
You can't use
/as this character is used to separated directory names, just likeis used on Microsoft systems. If you want to freely transfer files back and forth, you should probably avoid both.Portability
Many mp3 players use old-style Microsoft VFAT filesystems. On these file systems,
:,,*, and?are all forbidden. If you will ever transfer your files to such a filesystem, it is best to avoid these characters as well.
add a comment |
Upper and Lower Case
Upper case, lower case, and mixed case are all fine for file names. If some users have a preference for lower case names, it is just because it is faster to type lower case.
Spaces
Spaces are fine in file names with one caveat: such file names require more care when writing shell scripts. A basic tutorial on this subject is here.
Colons
Colons (
:) should probably be avoided. This is because, when moving files from one computer to another, it is a common convention, with utilities such asscp, to combine the computer name and file name in the formmachinename:filename. Thus, if your file name has a colon, it may lead to confusion.Slashes
You can't use
/as this character is used to separated directory names, just likeis used on Microsoft systems. If you want to freely transfer files back and forth, you should probably avoid both.Portability
Many mp3 players use old-style Microsoft VFAT filesystems. On these file systems,
:,,*, and?are all forbidden. If you will ever transfer your files to such a filesystem, it is best to avoid these characters as well.
Upper and Lower Case
Upper case, lower case, and mixed case are all fine for file names. If some users have a preference for lower case names, it is just because it is faster to type lower case.
Spaces
Spaces are fine in file names with one caveat: such file names require more care when writing shell scripts. A basic tutorial on this subject is here.
Colons
Colons (
:) should probably be avoided. This is because, when moving files from one computer to another, it is a common convention, with utilities such asscp, to combine the computer name and file name in the formmachinename:filename. Thus, if your file name has a colon, it may lead to confusion.Slashes
You can't use
/as this character is used to separated directory names, just likeis used on Microsoft systems. If you want to freely transfer files back and forth, you should probably avoid both.Portability
Many mp3 players use old-style Microsoft VFAT filesystems. On these file systems,
:,,*, and?are all forbidden. If you will ever transfer your files to such a filesystem, it is best to avoid these characters as well.
edited Aug 26 '14 at 3:18
answered Aug 26 '14 at 3:03
John1024John1024
48.7k5114129
48.7k5114129
add a comment |
add a comment |
Upper and lower case - note
*Common filesystems on nix like OS'es allows
ThisFileandthisfileto exist in the same folder. This is not possible e.g. on a vfat or ntfs filesystem (and quite a number of other older filsystems).
add a comment |
Upper and lower case - note
*Common filesystems on nix like OS'es allows
ThisFileandthisfileto exist in the same folder. This is not possible e.g. on a vfat or ntfs filesystem (and quite a number of other older filsystems).
add a comment |
Upper and lower case - note
*Common filesystems on nix like OS'es allows
ThisFileandthisfileto exist in the same folder. This is not possible e.g. on a vfat or ntfs filesystem (and quite a number of other older filsystems).
Upper and lower case - note
*Common filesystems on nix like OS'es allows
ThisFileandthisfileto exist in the same folder. This is not possible e.g. on a vfat or ntfs filesystem (and quite a number of other older filsystems).
edited Oct 30 '14 at 18:22
answered Aug 26 '14 at 18:30
HannuHannu
33917
33917
add a comment |
add a comment |
The most important thing is to match the patterns that exist and stick to it. Get to an answer without waste time mulling it over. I understand the irony that I am answering this question ;
Apple follows /Library/Extensions/SomeExtension.file so I set up my working directory like that too: Projects/Client/Project/thing.extension
Incidentally, the frontend dev work I do also follows this logic with JS namingLikeThis.js while CSS something-like-this.css - mixing conventions in my project but not to technologies at large. I asked Bootstrap's creators @fat and @mdo awhile back and its their approach a well. I adopted it and never dedicated serious thought to it again.
It is a bit wonky but solves the conundrum with a defensible answer so I can get to work with less thinking or debate.
add a comment |
The most important thing is to match the patterns that exist and stick to it. Get to an answer without waste time mulling it over. I understand the irony that I am answering this question ;
Apple follows /Library/Extensions/SomeExtension.file so I set up my working directory like that too: Projects/Client/Project/thing.extension
Incidentally, the frontend dev work I do also follows this logic with JS namingLikeThis.js while CSS something-like-this.css - mixing conventions in my project but not to technologies at large. I asked Bootstrap's creators @fat and @mdo awhile back and its their approach a well. I adopted it and never dedicated serious thought to it again.
It is a bit wonky but solves the conundrum with a defensible answer so I can get to work with less thinking or debate.
add a comment |
The most important thing is to match the patterns that exist and stick to it. Get to an answer without waste time mulling it over. I understand the irony that I am answering this question ;
Apple follows /Library/Extensions/SomeExtension.file so I set up my working directory like that too: Projects/Client/Project/thing.extension
Incidentally, the frontend dev work I do also follows this logic with JS namingLikeThis.js while CSS something-like-this.css - mixing conventions in my project but not to technologies at large. I asked Bootstrap's creators @fat and @mdo awhile back and its their approach a well. I adopted it and never dedicated serious thought to it again.
It is a bit wonky but solves the conundrum with a defensible answer so I can get to work with less thinking or debate.
The most important thing is to match the patterns that exist and stick to it. Get to an answer without waste time mulling it over. I understand the irony that I am answering this question ;
Apple follows /Library/Extensions/SomeExtension.file so I set up my working directory like that too: Projects/Client/Project/thing.extension
Incidentally, the frontend dev work I do also follows this logic with JS namingLikeThis.js while CSS something-like-this.css - mixing conventions in my project but not to technologies at large. I asked Bootstrap's creators @fat and @mdo awhile back and its their approach a well. I adopted it and never dedicated serious thought to it again.
It is a bit wonky but solves the conundrum with a defensible answer so I can get to work with less thinking or debate.
answered Oct 28 '14 at 16:59
KenKen
1011
1011
add a comment |
add a comment |
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
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
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f152174%2fconvenient-way-to-name-files-in-linux%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
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
Required, but never shown
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
Required, but never shown
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
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
-audio, filenames, files