About 584,000 results
Open links in new tab
  1. Difference between cp -r and cp -a - Unix & Linux Stack Exchange

    Aug 16, 2018 · I'm looking for the difference between cp -r and cp -a. What does "recursive" mean in terms of copying files from a folder?

  2. recursive - Using sftp to Transfer a Directory? - Unix & Linux Stack ...

    If you question is actually 'how do I use sftp to transfer a directory', then sftp -r user@server But if you transferring a directory, I might suggest two better options, depending on your needs. sftp …

  3. Recursively iterate through files in a directory

    Recursively iterating through files in a directory can easily be done by: find . -type f -exec bar {} \\; However, the above does not work for more complex things, where a lot of conditional branch...

  4. How to recursively find the amount stored in directory?

    Note that if you want to know all {sub}folders size inside a directory, you can also use the -d or --max-depth option of du (which take an argument: the recursive limit) For instance : du -h …

  5. Zip all files in directory? - Unix & Linux Stack Exchange

    Is there a way to zip all files in a given directory with the zip command? I've heard of using *.*, but I want it to work for extensionless files, too.

  6. recursive mkdir - Unix & Linux Stack Exchange

    Nov 6, 2014 · Personally, I overlooked "parent" in the man page as well because, well, I feel like the flag should be "-r" for "recursive" - or at the very least, there should be an alias for such since …

  7. Recursively delete all files with a given extension

    80 That's not quite how the -r switch of rm works: -r, -R, --recursive remove directories and their contents recursively rm has no file searching functionality, its -r switch does not make it …

  8. How do I remove a directory and all its contents?

    In bash all I know is that rmdir directoryname will remove the directory but only if it's empty. Is there a way to force remove subdirectories?

  9. recursive - what is recursion when applied to the bash shell? - Unix ...

    Feb 21, 2025 · I keep hearing people talk about "recursion" for example, when you copy and paste a file and a directory you need to also put in the -r flag to tell the cp command to …

  10. How can I list subdirectories recursively? - Unix & Linux Stack …

    The obvious ls -dR does not work. I am currently using find /path/ -type d -ls but the output is not what I need (plain listing of sub-folders) Is there a way out?