Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

how to move a directory in linux

mv /path/to/source /path/to/dest
Comment

linux how to move file to another directory

" Linux How To Move 1 File or All Files To Another Directory "

Syntax: 
mv file directory

Real Life Example With Sudo:
sudo mv /home/martin/Downloads/strategies/settings.txt /home/martin/ft_userdata/strategies/
 
Move All Files From Folder A to Folder B:
sudo mv /home/martin/Downloads/strategies/* /home/martin/ft_userdata/strategies/

This Command Returns The Full Path Of The Current Folder You Are In:
ls | xargs readlink -f

I hope this saved your day :)
Comment

how to move file in directory in linux

mv file dir
Comment

move directory with files linux

how to move a folder/Directory in Linux with files

#sytex
mv /path/to/source /path/to/destination

#example
mv Reports tools/Reports
Comment

PREVIOUS NEXT
Code Example
Shell :: how to git push to current branch 
Shell :: add project to github 
Shell :: nano enable syntax highlighting 
Shell :: deploy github repo to heroku 
Shell :: check memcached status 
Shell :: how to git clone a branch github 
Shell :: pretty print csv ubuntu terminal 
Shell :: replace a newline using sed linux bash 
Shell :: mac m1 linux install 
Shell :: rickroll ssh 
Shell :: run node api on rapberry pi 
Shell :: git add existing proj to a new repo failed 
Shell :: uninstalling vscode for centos 8 
Shell :: download and install virtualbox with powershell 
Shell :: r_dwssap.sh 
Shell :: install missforest 
Shell :: how to install programs in ubuntu using terminal 
Shell :: list all the created users only 
Shell :: amend commit change description 
Shell :: gradle init scala 
Shell :: gpg to encrypt a file 
Shell :: control pc brightness with shell script mac 
Shell :: cypress 
Shell :: how to run bash scripts from local machine to remote linux machine 
Shell :: how can I specific line in ubuntu? 
Shell :: git add only c files 
Shell :: install lc ubuntu 
Shell :: how to change branch name 
Shell :: create a new repository from command line 
Shell :: add string at the end of each line 
ADD CONTENT
Topic
Content
Source link
Name
7+3 =