What is a dashed file in Linux? Last Updated: November 10th, 2020 by Hitesh J in Linux. In Unix or Linux operating systems, working with dashed filename requires some attention. In some cases, you may need to handle files with a dash (-) as the first character. Because dash (-) is generally used by commands to specify options and arguments.
Can a dash be used in a filename? Illegal Filename Characters
Don’t start or end your filename with a space, period, hyphen, or underline. Keep your filenames to a reasonable length and be sure they are under 31 characters.
What is the dash called in Linux? dash is the standard command interpreter for the system. The current version of dash is in the process of being changed to conform with the POSIX 1003.2 and 1003.2a specifications for the shell.
How do you read a filename in Linux? Using `basename` command to read filename
`basename` command is used to read the file name without extension from a directory or file path.