Use the mv
command to move the file. The syntax is:
mv /path/to/original/file /new/path/to/move/file
For example, to move a file named example.txt from the Desktop to a folder named Documents, you would type:
mv ~/Desktop/example.txt ~/Documents/example.txt
Step 3: Create a Symbolic Link
After moving the file, create a symbolic link at the original location using the ln command with the -s option. The syntax is:
ln -s /new/path/to/move/file /path/to/original/file
Continuing with the previous example, to create a symbolic link back to the Desktop, you would type:
ln -s ~/Documents/example.txt ~/Desktop/example.txt
Example Commands Putting it all together, here’s how it looks:
mv ~/Desktop/example.txt ~/Documents/example.txt
ln -s ~/Documents/example.txt ~/Desktop/example.txt
- Yazelix Clone https://github.com/luccahuguet/yazelix.git into ~/.config
-
Dump brewfiles to dotfiles dir
brew bundle dump --file ~/dotfiles/Brewfile --force --describe
-
Hide default login message
touch ~/.hushlogin
Dump brewfiles to dotfile directory brew bundle dump --file ~/dotfiles/Brewfile --force use: --descripbe to get a description of each file