I have 6 .txt
files on my desktop that I am trying to move using the Terminal. However when I try to mass move them all into the texts
folder that is on my Desktop, I get the the following error:
mv: cannot stat ‘Desktop/*.txt’: No such file or directory
Here is the code that I am executing to perform the task:
mv Desktop/*.txt Desktop/texts
What am I doing wrong?
Also I am currently in ~/home/dlundy1
Here is out of ls -al ~/Desktop/*.txt
ls: cannot access /home/ubuntu/Desktop/*.txt: No such file or directory
** NOTE: ** I want to get the hang of using only the terminal to perform basic tasks to please restrict solutions to those that don't utilize GUI.
pwd
output) and the output ofls ~/Desktop/*.txt
? Thank you!Desktop/*.txt
is called a "relative pathname", meaning the path is relative to the directory you are currently in. IfDesktop/
is not a child directory of your present working directory, you would need to use an "absolute pathname", such as/home/user/Desktop/*.txt
or~/Desktop/*.txt
, where~
expands to the current users home directory.~/home/dlundy1