Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

move all files to parent directory

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
Comment

PREVIOUS NEXT
Code Example
Shell :: top port scan nmap 
Shell :: install passport local 
Shell :: pem to crt 
Shell :: find string terminal 
Shell :: split bash string 
Shell :: youtube dl download linux 
Shell :: uninstall all microsoft apps powershell 
Shell :: linux time set 
Shell :: execute command remotely by ssh 
Shell :: configuring git ssh keys 
Shell :: open folder vim 
Shell :: git push u origin master 
Shell :: certbot nginx certonly 
Shell :: check ip address linux 
Shell :: how to install homebrew 
Shell :: Pterodactyl wings update 
Shell :: how to change bash prompt color 
Shell :: compress directory with bzip2 
Shell :: crontab in linux 
Shell :: install discord on fedora 
Shell :: scp key 
Shell :: change file permissions terminal 
Shell :: how to install winehq in ubuntu?? 
Shell :: revert last merge git 
Shell :: find A folder IN COMMAND line 
Shell :: conda install cython 
Shell :: how to start mongodb server in ubuntu 
Shell :: ubuntu make executable 
Shell :: ruby install 
Shell :: debian 9.4 telnet install 
ADD CONTENT
Topic
Content
Source link
Name
5+1 =