About 746,000 results
Open links in new tab
  1. Concatenating two variables with an underscore - Unix & Linux …

    I need to concatenate two variables to create a filename that has an underscore. Lets call my variables $FILENAME and $EXTENSION where filename is read from a file.

  2. How to replace one char with another in all filenames of the ... - linux

    How do you rename all files/subdirs in the current folder? Lets say, I have many files and subdirs that are with spaces and I want to replace all the spaces with an underscore. File 1 File 2 File...

  3. How to append date to backup filename - Unix & Linux Stack …

    I need to make a backup of a file, and I would like to have a timestamp as part of the name to make it easier to differentiate. How would you inject the current date into a copy command? …

  4. Usage of dash (-) in place of a filename - Unix & Linux Stack …

    For a command, if using - as an argument in place of a file name will mean STDIN or STDOUT. But in this example, it creates a file with the name -: echo hello > - How can I make - in this …

  5. What does * next to the file name mean in the output of ls?

    The * means the file is executable (permissions-wise). Your alias probably includes the -F option for ls, which will add: / onto directories * onto files that are executable @ onto symbolic links = …

  6. How to use variables in a filename? - Unix & Linux Stack Exchange

    How to use variables in a filename? Ask Question Asked 8 years, 2 months ago Modified 4 years, 3 months ago

  7. What does the tilde (~) mean at the end of a filename?

    What is the file with the ~ at the end of the filename for? $ ls # aliased to add flags -rwxrwxr-x 1 durrantm 2741 May 16 09:28 strip_out_rspec_prep_cmds.sh~* drwxrwxr-x 13 durrantm 4096 …

  8. What charset encoding is used for filenames and paths on Linux?

    This may be overridden with the environment variables G_FILENAME_ENCODING and G_BROKEN_FILENAMES. On the other hand, Qt defaults to assuming that all file names are …

  9. Displaying file names with contents when using the "cat" command

    Is there a command to show the directory or file name when using cat to display the contents of files? For example: assume two files f1.txt and f2.txt are in ./tmp ./tmp/f1.txt ./tmp/f2.txt Then ...

  10. Remove numbers from the start of filenames - Unix & Linux Stack …

    To list all .mp3 regular files whose name starts with a number in a directory, with the GNU implementation of find: LC_ALL=C find . -maxdepth 1 -regextype posix-egrep -regex '.*/[0 …