Command Reference (2024)

To identify a specific line for configuration and begin the command in line configuration mode collection mode, use the line command in global configuration mode.

line [aux | console | tty | vty] line-number [ending-line-number]
Syntax Description

aux

(Optional) Auxiliary EIA/TIA-232 DTE port. Must be addressed as relative line0. The auxiliary port can be used for modem support and asynchronous connections.

console

(Optional) Console terminal line. The console port is DCE.

tty

(Optional) Standard asynchronous line.

vty

(Optional) Virtual terminal for remote console access.

line-number

The relative number of the terminal line (or the first line in a contiguous group) that you want to configure when the line type is specified. Numbering begins with zero.

ending-line-number

(Optional) The relative number of the last line in a contiguous group that you want to configure. If you omit the keyword, then line-number and ending-line-number are absolute rather than relative line numbers.

Defaults

There is no default line.

Command Modes

Global configuration

Command History
Release Modification

10.0

This command was introduced.

Usage Guidelines

You can address a single line or a consecutive range of lines with the line command. A line number is necessary, though, and you will receive an error message if you forget to include it.

Entering the line command with the optional line type (aux, console, tty, or vty) designates the line number as a relative line number. For example, to configure line parameters for line 7 (a TTY line), you could enter the following:

line tty 7

You also can use the line command without specifying a line type. In this case, the line number is treated as an absolute line number. For example, to configure line parameters for line 5, which can be of any type, you could enter the following:

line 5

Absolute line numbers increment consecutively and can be difficult to manage on large systems. Relative line numbers are a shorthand notation used in configuration. Internally, the Cisco IOS software uses absolute line numbers. You cannot use relative line numbers everywhere, but you can use absolute line numbers everywhere.

The absolute line number of the auxiliary port is 1. The relative line number of the auxiliary port is0. See the modem line configuration command to set up modem support on the auxiliary port.

The software keeps a table of absolute and relative line numbers that you can display with the EXEC command show users all. A sample display follows:

Router> show users all Line User Host(s) Idle Location
0 con 0 chaff console
1 tty 1 Engineering printer
2 tty 2
3 tty 3 DREGGS 1:07 Katy x1111
4 tty 4 Console E3-D
5 tty 5 Mkt. demo area
6 tty 6
7 tty 7 DREGGS 14 Marie x1112
10 tty 10 . . . 135 tty 135
136 tty 136
137 tty 137 rp4-printer
140 tty 140 Braille printer
141 aux 0
142 vty 0 Denise idle DENISE-MAC.CISCO.COM
143 vty 1 Michael idle 0 DREGGS.CISCO.COM
144 vty 2
145 vty 3
146 vty 4
147 vty 5

The absolute line numbers are listed at the far left, followed by the line type, and then the relative line number. Relative line numbers always begin numbering at zero and define the type of line. Addressing the second virtual terminal line as line VTY 1, for example, is easier than remembering it as line 143---its absolute line number.

The line types are ranked as follows in the line table:

  1. Console 0 (con 0)
  2. Standard asynchronous line (TTY)
  3. Auxiliary port (aux)
  4. Virtual terminal line (VTY)
  5. Printer

The terminal from which you locally configure the router is attached to the console port. To configure line parameters for the console port, enter the following:

line con 0

The console relative line number must be 0.

Virtual terminal lines are used to allow remote access to the router. A virtual terminal line is not associated with either the auxiliary or console port. The router has five virtual terminal lines by default. However, you can create additional virtual terminal lines as described in the chapter "Configuring Protocol Translation and Virtual Asynchronous Devices" in the Cisco IOS Dial Services Configuration Guide: Terminal Services.

Configuring the console port or virtual terminal lines allows you to perform such tasks as setting communication parameters, specifying autobaud connections, and configuring terminal operating parameters for the terminal you are using.

Examples

The following example starts configuration for virtual terminal lines 0 to 4:

line vty 0 4

In the following example, the user creates and configures the maximum 100 virtual terminal lines with the no login command:

line vty 0 99no login

n the following example, the user eliminates virtual terminal line number 5 and all higher-numbered virtual terminal lines. Only virtual terminal lines 0 to 4 will remain.

no line vty 5

In the following example, the user configures console line 0, auxiliary line 0, and virtual terminal lines 0 to 4:

line vty 0 4loginline con 0password baskervilleline aux 0password Mypasswordno execaccess-class 1 inspeed 19200line vty 0exec-timeout 0 0password Mypasswordline vty 1exec-timeout 0 0password Mypasswordline vty 2exec-timeout 0 0password Mypasswordline vty 3password Mypasswordline vty 4password Mypassword
Command Reference (2024)

FAQs

How do I get help for commands in CMD? ›

How to Check Commands in CMD. Open the Command Prompt program on your computer. Type in "Help" when the window appears and hit Enter to pull up a list of all the available commands. To learn how a specific command works, type "help" followed by the command for more details.

How to check all Linux commands? ›

2. Using the compgen Command
  1. 2.1. List Commands. We use the compgen -c command to list all available commands: $ compgen -c alert egrep fgrep grep l la ll ls ... ...
  2. 2.2. List Aliases. We use the compgen -a command to list all the available aliases: $ compgen -a alert egrep fgrep grep l la ll ls ...
Mar 18, 2024

How to specify more than one command in the command line at the same time? ›

You can enter more than one command at a time by separating your commands with a semicolon (;). As described in Pipes, you can also use pipes ( | ) to connect commands on the command line.

Should I learn command line before programming? ›

Many programming tutorials either gloss over the command line or assume you already know how to use it. But understanding the basics of the command line is absolutely essential to becoming a skilled developer.

How do I talk to someone using Command Prompt? ›

The person you're chatting with must be on a computer that's on the same network as you. Open Command Prompt and enter 'msg /SERVER:DestinationPC * TIME:60 "Message'". The MSG command is not available on Home editions of Windows.

How can you get a more detailed help description of a command? ›

If you type Get-Help followed by the exact name of a help article, or by a word unique to a help article, Get-Help displays the article's content. If you specify the exact name of a command alias, Get-Help displays the help for the original command.

How do you list all available CLI commands? ›

List of CLI commands
  1. ls - List directory contents. ls -a - List all the content, including hidden files. ls -l - List the content and its information.
  2. cd foldername – Change the working directory to foldername. cd - Return to $HOME directory. ...
  3. cat file – Print contents of file on the screen. less file - View and paginate file.

How to get all commands in terminal? ›

Common Terminal Commands
  1. Up Arrow : Will show your last command.
  2. Down Arrow : Will show your next command.
  3. Tab : Will auto-complete your command.
  4. Ctrl + L : Will clear the screen.
  5. Ctrl + C : Will cancel a command.
  6. Ctrl + R : Will search for a command.
  7. Ctrl + D : Will exit the terminal.

How do I see all running commands in Linux? ›

The 'ps' command displays information about running processes. To list all running processes, you can use the following command: ps -A or ps -e Both commands will provide you with a list of currently running processes along with their relevant details, such as process ID (PID), terminal, CPU usage, and more.

What is the basic command of Linux? ›

What are the most basic Linux Commands to learn for beginners?
Linux CommandsFunctions
cpMoves files from one directory to another.
mvRename and Replace the files
rmDelete files
unameCommand to get basic information about the OS
6 more rows
Jul 7, 2024

How do you know if a remote host is alive or not in Unix? ›

You can use the ping command to determine the status of a remote host. When you run ping, the ICMP protocol sends a datagram to the host that you specify, asking for a response. ICMP is the protocol responsible for error handling on a TCP/IP network.

What is the grep command with an example? ›

The grep command lets you use a pattern to find lines from a file. Its basic syntax is grep pattern file, but you can add various options to modify the search based on your needs. For example, add the -r option to recursively search patterns from files and subdirectories within a folder.

Is command line a skill? ›

In today's AI-driven world, command line skills are essential for advancing your tech career. Knowing how to use terminal commands and tools like git , venv , and pip are crucial for managing AI projects efficiently.

What is the best order to learn programming? ›

What programming language should I learn first?
  • Java. Java is one of the oldest object-oriented languages and one of the most sought-after languages to be proficient in. ...
  • JavaScript. JavaScript is one of the most commonly used scripting languages in the world. ...
  • Python. Python is another exceedingly popular language to learn.
Feb 2, 2024

How long does IT take to learn Linux command line? ›

How long does it take to learn the basics of Linux? It can take just a few days to learn the basics of the Linux operating system, and a few weeks to learn its system architecture and command line.

How do you get help about the command? ›

The help command is a Command Prompt command that's used to provide more information on another command. You can use the help command at any time to learn more about a command's usage and syntax, like which options are available and how to actually structure the command to use its various options.

How do you get help on using the info command? ›

To get help while using the info command, you can use the following two methods:
  1. man info: This command opens a manual page for the 'info' command. ...
  2. info info: This command works similarly to 'man info', but it opens the info document for the 'info' command, instead of the manual page.
Oct 7, 2023

How to get admin through cmd? ›

  1. Click on the Windows icon, type cmd.
  2. Right-click on "Command Prompt" and select Run as administrator.
  3. Type the following command: net user administrator /active:yes and press Enter.
  4. Restart your computer.
Aug 2, 2023

How do I open Command Prompt with help? ›

You can then type "cmd" and press enter, opening Command Prompt. If you're unsure of what commands to use, you can type "Help" into Command Prompt. This makes a list appear with different common commands you can use.

Top Articles
All Classes in Lost Ark Ranked – Tier List
The Pros and Cons of LIFO vs FIFO in Inventory Valuation – Ledger
Television Archive News Search Service
Northern Whooping Crane Festival highlights conservation and collaboration in Fort Smith, N.W.T. | CBC News
Videos De Mexicanas Calientes
Mcoc Immunity Chart July 2022
Craigslist In South Carolina - Craigslist Near You
The Best Classes in WoW War Within - Best Class in 11.0.2 | Dving Guides
Mission Impossible 7 Showtimes Near Regal Bridgeport Village
今月のSpotify Japanese Hip Hopベスト作品 -2024/08-|K.EG
Bad Moms 123Movies
Craigslist Edmond Oklahoma
Jalapeno Grill Ponca City Menu
Golden Abyss - Chapter 5 - Lunar_Angel
Eine Band wie ein Baum
Craigslist Prescott Az Free Stuff
Www.craigslist.com Savannah Ga
Ice Dodo Unblocked 76
Impact-Messung für bessere Ergebnisse « impact investing magazin
Belledelphine Telegram
1979 Ford F350 For Sale Craigslist
Copper Pint Chaska
Ultra Ball Pixelmon
TJ Maxx‘s Top 12 Competitors: An Expert Analysis - Marketing Scoop
1475 Akron Way Forney Tx 75126
Moonrise Time Tonight Near Me
Deleted app while troubleshooting recent outage, can I get my devices back?
Metra Union Pacific West Schedule
Hair Love Salon Bradley Beach
Ny Post Front Page Cover Today
CVS Near Me | Somersworth, NH
Nearest Ups Office To Me
Dr Adj Redist Cadv Prin Amex Charge
Atlanta Musicians Craigslist
Trap Candy Strain Leafly
Flags Half Staff Today Wisconsin
How to Quickly Detect GI Stasis in Rabbits (and what to do about it) | The Bunny Lady
Celsius Claims Agent
Quiktrip Maple And West
White County
10 Types of Funeral Services, Ceremonies, and Events » US Urns Online
Amy Zais Obituary
Sam's Club Gas Price Sioux City
Oak Hill, Blue Owl Lead Record Finastra Private Credit Loan
Hsi Delphi Forum
Compete My Workforce
Arnold Swansinger Family
David Turner Evangelist Net Worth
32 Easy Recipes That Start with Frozen Berries
Latest Posts
Article information

Author: Tyson Zemlak

Last Updated:

Views: 6133

Rating: 4.2 / 5 (63 voted)

Reviews: 94% of readers found this page helpful

Author information

Name: Tyson Zemlak

Birthday: 1992-03-17

Address: Apt. 662 96191 Quigley Dam, Kubview, MA 42013

Phone: +441678032891

Job: Community-Services Orchestrator

Hobby: Coffee roasting, Calligraphy, Metalworking, Fashion, Vehicle restoration, Shopping, Photography

Introduction: My name is Tyson Zemlak, I am a excited, light, sparkling, super, open, fair, magnificent person who loves writing and wants to share my knowledge and understanding with you.