I'm new to SSH. I would like to know how to move all the files, not the folder or directory, to an existing folder or directory two levels down.
Tell me more
×
Unix & Linux Stack Exchange is a question and answer site for
users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.
|
|
You'll want to use the find command.
Note that I've moved the files to a directory to one directory up, to prevent find from being stuck in a loop finding the new files that you're moving. Then move the directory two levels down. If you need only files in the current directory, you can use the command:
|
||||
|
|
If you have zsh available, this is pretty simple. The pattern
(Actually |
|||
|