Debian GNU/Linux : Guide to Installation and Usage by John Goerzen;Ossama Othman
page 83 of 298 (27%)
page 83 of 298 (27%)
![]() | ![]() |
|
called profile in your working directory, alongside the new
mysubdirectory. more profile This lets you view the contents of the file profile. more is used to view the contents of text files. It's called more because it shows one screenful of the file at a time, and you press the space bar to see more. more will exit when you get to the end of the file, or when you press q (quit). more /etc/profile Verifies that the original looks just like the copy you made. mv profile mysubdirectory mv stands for ``move.'' You've moved the file profile from the current directory into the subdirectory you created earlier. ls Verifies that profile is no longer in the current directory. ls mysubdirectory Verifies that profile has moved to mysubdirectory. cd mysubdirectory Changes to the subdirectory. mv profile myprofile Note that unlike some operating systems, there is no difference between moving a file and renaming it. Thus there's no separate rename command. Note that the second argument to mv can be a directory to move the file or |
|