About 92,400 results
Open links in new tab
  1. Linux command to print directory structure in the form of a tree

    Aug 11, 2010 · Adding the below function in bashrc lets you run the command without any arguments which displays the current directory structure and when run with any path as …

  2. linux - How do I tar a directory without retaining the directory ...

    How do I tar a directory without retaining the directory structure? Asked 14 years, 6 months ago Modified 3 years, 1 month ago Viewed 155k times

  3. archive - How do I tar a directory of files and folders without ...

    The -C my_directory tells tar to change the current directory to my_directory, and then . means "add the entire current directory" (including hidden files and sub-directories).

  4. Bash: Copy named files recursively, preserving folder structure

    Nov 3, 2015 · Is there a simple bash function I can use to copy all files, including files specified by wildcard (e.g. src/*.js) into their rightful place within the destination directory.

  5. linux - Copy folder structure (without files) from one location to ...

    Dec 29, 2019 · I want to create a clone of the structure of our multi-terabyte file server. I know that cp --parents can move a file and it's parent structure, but is there any way to copy the directory …

  6. linux - Create zip file and ignore directory structure - Stack Overflow

    Dec 5, 2019 · Unix zip directory but excluded specific subdirectories, how to exclude directories and file zipping a directory?, How to exclude a directory when zipping files, etc.

  7. linux - Creating a full directory tree at once - Stack Overflow

    The question I believe was to make a nested directory structure of sorts from a single command/bash script. Tree however, gives a visual of the existing directory structure and does …

  8. linux - Exploring Docker container's file system - Stack Overflow

    Mar 3, 2015 · This only finds a local directory that is mounted as a volume inside the container but does not allow accessing container's entire file system.

  9. linux - How to have the cp command create any necessary folders …

    For those looking to automate, the cp --parents and rarchive answers may likely be better. This is because the mkdir -p part of this answer takes just a directory, requiring you to script an extra …

  10. Recursively List all directories and files - Stack Overflow

    Jul 3, 2015 · 6 In Linux, a simple find . -printf '%y %p\n' will give you a list of all the contained items, with directories and files mixed. You can save this output to a temporary file, then …