Moving files
■ mv
• Warning: will silently overwrite existing files!
• Arguments: a source filename and a target filename
Command New file
mv a b ./b “rename”
mvadir/b dir/b
• Other form: one or more source filenames and a target directory
• Use it to move directories as well
mvabcdir dir/a, dir/b, dir/c
mv dir/a. ./a
mv* dir
dir/…
Moves all files in current directory
Moving files – mv
feel free to call us +800.241.0630 russ@russellcoder.com
Related Articles
-
Opening other files on Linux with Bash
russellc, , BASH, 0
Opening other files on Linux You need to have a graphical window utility installed. Linux does not offer a...
-
How do you go up one level in a directory? cd ..
russellc, , BASH, 0
type cd .. or cd by itself takes you to the users home directory.
-
How to Remove Directories (Folders) – Centos 7
russellc, , BASH, command line, Linux OS, terminal, 0
How to Remove Directories (Folders) To remove an empty directory use the -d option. rm -d dirname Copy To remove non-empty...
-
Relative Paths
russellc, , BASH, 0 -
Your first bash session
russellc, , BASH, 0
-Your first bash sessionPrompt shows username, hostname and current working directory and Depends on configuration -“cd”: Change Directory -cd move...
-
-
-