Practicing File Operations in the Terminal
So I learned how to copy, move and remove directory and file recursively using the cp, mv and rm.
cp is to copy file while cp -r is to copy a directory
mv is to move a file then mv -r is move directory
rm is to delete a file while rm -r is to delete a directory
How I did it was to make sure I am in the directory where the directory or file is and I also need to make sure that I know the file path I want to copy and move them to for the directory mv -r olddir anodir moves the olddir directory to anodir
#cp #mv #rm #learned
cpmvrmlearned

41
No comments yet. Be the first to comment.
