![]() ![]() In the second copy command we set the destination to the parent.In the first copy command ( cp) we set the destination to our.Then we changed to the directory a/b/c, which is the current directory for the following copy commands: Underneath a we see the sub-directories a/b, a/b/c and a/b/c2 Line by line analysisįirst we created 4 directories on one line by using & to join multiple lines together. at the top of tree output represents the new current directory a which is the grandparent of a/b/c which we navigated to using the cd. ![]() The output from tree command appears like this. / directory names in action, copy and paste the following commands into your Terminal: mkdir a & mkdir a/b & mkdir a/b/c & mkdir a/b/c2 Using your example you would type: cp ~/anotherdir/dir2/file. To use the current directory as the destination directory use a single dot '. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |