Cyclades PC400 Vi Editor, Vi filename, Mode What is done there How to Get There

Page 35

Cyclades-PC400

Installation Manual

Other commands allow the user to change directories and see the contents of a directory.

pwd

Supplies the name of the current directory. While logged in, the user is always

 

"in" a directory. The default initial directory is the user's home directory,

 

/home/<username>

ls [options] directory_name

Lists the files and directories within directory_name. Some useful options are -l

 

for more detailed output and -a which shows hidden system files.

cd directory_name

Changes the directory to the one specified

cat file_name

Prints the contents of file_name to the screen.

Shortcuts:

. (a dot)

represents the current directory

.. (two dots)

represents one directory above the current directory (i.e. one directory closer to the base

 

directory).

The vi Editor

To edit a file using the vi editor, type

vifile_name

viis a three-state line editor: it has a command mode, a line mode and an editing mode. If in doubt as to which

mode you are in, press the <ESC> key which will bring you to the command mode.

Mode

What is done there

How to Get There

command mode

navigation within the open file

Press the <ESC> key.

editing mode

text editing

See list of editing commands below.

line mode

file saving, opening, etc. exiting

From the command mode, type ":" (the

 

from vi

colon).

Entering the program, the user is automatically in the command mode. To navigate to the part of the file to be

Appendix A - Linux

35

Image 35
Contents Cyclades-PC400 Canadian DOC Notice Cyclades-PC400 Installation ManualFCC Warning Statement Table of Contents Appendix B Hardware Specifications Upgrades of Software and Manuals What is in the BOXStep Two Hardware InstallationStep One Step Three Step Five Step FourSoftware Installation Software Installation Make config Make menuconfig Step TWO Board and System ConfigurationStep ONE Dspprofilebegin InterfnNbegin Label Description ISDN-PRI Profile Parameters Interface Parameters USA AT&T Step Three Last or channelnumberchannelnumberchannelnumber etcPc400load Pc400util -pStep Four Guided Examples for the Most Common Applications Step FiveISDN-BRI LANRAS DIAL-IN Application Parameters Parameter Description Value for T1 Value for E1 Line∙∙∙ ETH0 Example 2 a LAN-to-LAN Example Using ChannelsLAN 10 Multiple LAN-TO-LAN Application Parameters ∙∙∙ General Tips TroubleshootingRoot@cyclades common# ./pc400hwtest Hardware TestDSP U19 U06 U20 U07 ESC Previous Menu G Global E ErrorsGlobal Test Passes Pg0 BoardESC Previous Menu G Global E ErrorsAdministrative Utilities Linux File Structure Users and PasswordsAppendix a Information for Users not Familiar with Linux PasswdCp filename destination Basic File Manipulation CommandsVi filename Mode What is done there How to Get ThereVi Editor Routing Table Ssh The Secure Shell Session Netstat -rnNet-host NetmaskProcess Table PID TTY Stat Time CommandLoading the Configuration File Crond Utility Minute hour date month day-of-week user commandGet information from the board Syslog59 * * * * /etc/testcron.sh Dhcp Dynamic Host Configuration Protocol ClientActive root /etc/tstcron.src Packet Filtering using ipchains Interface is Accept DenyCyclades-PC400 Installation Manual RJ-48C Signal Pin RxTip RxRing TxTip TxRing Appendix B Hardware SpecificationsCyclades Philippines