본문 바로가기

설정

move files and directories to the parent folder in Linux

find . -maxdepth 1 -exec mv {} .. \;
this will move hidden files as well.

You will get the message:

mv: cannot move `.' to `../.': Device or resource busy
when it tries to move . (current directory) but that won't cause any harm.

https://superuser.com/questions/88202/how-do-i-move-files-and-directories-to-the-parent-folder-in-linux

'설정' 카테고리의 다른 글

index 생성 예시  (0) 2019.09.03
예시 elasticsearch reindex와 샤드  (0) 2019.09.03
couchbase XDCR 적용  (0) 2019.07.23
elasticsearch 설치와 kibana설치  (0) 2019.07.16
redis 설치 / centosCentOS Linux release 7.6.1810 (Core) 기준  (0) 2019.07.16