Is there any way to cause the ls command to display information one page at a timefor example, when showing a long directory listing?
A1:
You can display information this way by using pipes and the more command, both of which are discussed in Chapter 19, "Performing Basic Shell Tasks." To pause a long file listing after each page of output, enter
ls -l | more
When the output pauses, you can press the spacebar to continue to the next page.
Q2:
What happens if I take away owning user's write permission from a file that I own? Can I still to write to it? Can I still change the file's permissions (for example, to add write permission for myself back again)?
A2:
If you remove owning user's write permission from a file that you own, you cannot save your changes to the file any longer. In a sense, the file is "write protected." You can, however, give yourself write permission once again by using chmod or the file manager, should you decide that you want to be able to make changes to the file once again.