The OpenNET Project / Index page

[ новости /+++ | форум | теги | ]

Поиск:  Каталог документации / Документация по FreeBSD / Руководства по FreeBSD на английском

3 Looking Around

Logged in as an ordinary user, look around and try out some commands that will access the sources of help and information within FreeBSD.

Here are some commands and what they do:

id

Tells you who you are!

pwd

Shows you where you are--the current working directory.

ls

Lists the files in the current directory.

ls -F

Lists the files in the current directory with a * after executables, a / after directories, and an @ after symbolic links.

ls -l

Lists the files in long format--size, date, permissions.

ls -a

Lists hidden ``dot'' files with the others. If you are root, the ``dot'' files show up without the -a switch.

cd

Changes directories. cd .. backs up one level; note the space after cd. cd /usr/local goes there. cd ~ goes to the home directory of the person logged in--e.g., /usr/home/jack. Try cd /cdrom, and then ls, to find out if your CDROM is mounted and working.

view filename

Lets you look at a file (named filename) without changing it. Try view /etc/fstab. :q to quit.

cat filename

Displays filename on screen. If it is too long and you can see only the end of it, press ScrollLock and use the up-arrow to move backward; you can use ScrollLock with manual pages too. Press ScrollLock again to quit scrolling. You might want to try cat on some of the dot files in your home directory--cat .cshrc, cat .login, cat .profile.

You will notice aliases in .cshrc for some of the ls commands (they are very convenient). You can create other aliases by editing .cshrc. You can make these aliases available to all users on the system by putting them in the system-wide csh configuration file, /etc/csh.cshrc.

This, and other documents, can be downloaded from ftp://ftp.FreeBSD.org/pub/FreeBSD/doc/.

For questions about FreeBSD, read the documentation before contacting <[email protected]>.
For questions about this documentation, e-mail <[email protected]>.




Партнёры:
PostgresPro
Inferno Solutions
Hosting by Hoster.ru
Хостинг:

Закладки на сайте
Проследить за страницей
Created 1996-2024 by Maxim Chirkov
Добавить, Поддержать, Вебмастеру