Notice that rmdir only
works on empty directories. If the directory contains files, you must
delete those files first, or alternatively you can use rm -r in place of
rmdir.
cd ..
This moves out of the current directory, and into its parent directory.
Now you can type the following:
rmdir practice
This will delete the last remnants of your practice session.
So now you know how to create, copy, move, rename, and delete files and
directories. You also learned some shortcuts, like typing simply cd to
jump to your home directory, and how . and .. refer to the current
directory and its parent, respectively. You should also remember the
concept of the root directory, or /, and the alias ~ for your home
directory.
Dot Files and ls -a
When you type ls, files beginning with a dot are not listed.
Traditionally, files that contain configuration information, user
preferences, and so on begin with a dot; these are hidden and out of your
way while you do your day-to-day work. Sample dot files are ~/.emacs,
~/.newsrc, ~/.bashrc, ~/.xsession, and ~/.fvwmrc.
Pages:
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111