Experiment one user interface with Shell commands

Source: Internet
Author: User
Tags clear screen

First, experimental hours: 2 hours second, the purpose of the experiment

V is familiar with the Redhat_linux user interface and makes common system settings.

V Master the Common shell commands.

Third, the experimental environment

V A computer running an operating system such as Windows xp\2000\2003;

V VMware virtual machine running Redhat Enterprise 5

Iv. Experimental Process
    1. Click the VMware folder on your desktop to find the VMware shortcut icon.
    2. 2. Double-click the shortcut icon to start the virtual machine, select the Redhat Enterprise 5 virtual machine and start.
    3. Experiment with the user interface on Redhat Enterprise 5 after virtual machine startup.
    4. Experiment with shell commands in the terminal window of the Redhat Enterprise 5 after the virtual machine is started.
V. Contents of the Experiment

1 into the Redhat Enterprise 5 virtual machine environment, and network settings, so that the virtual machine can access the Internet.

2 Landing into the system, into the interface operating environment.

3 in the user interface to display the system time and modification time operation.

Shell command operation under 4-character interface.

Six, the experimental steps: 1, through the VMware shortcut icon into the Open Redhat Enterprise 5 interface, and click the Green Small triangle icon to start the virtual machine.

2 Enter the user name root, password sias@123 into the virtual machine.

3 graphical user interface for Shell command operations

3.1 Show system time and modification time

1) Log in as root user

"Applications"-"accessories"-"terminal"

2) Enter date to display the system time

3) Enter Date 121700002008 (month (2), date (2), hour (2), Minute (2), Year (4)), modification time

3.2 View May 10, 2009 is the day of the week

Enter Command Cal 2009 to view the calendar.

3.3 View ls command

1) Use man ls to view the information in the Help manual to see the syntax structure of LS

2) Enter Q Exit Help manual

3) Ls–help can also be used to view help information

4) Use the LS command to view/etc Directory contents:

CD/ETC//Switch to/etc directory

Ls-al//Display all file and subdirectory information

Shell command operation under 4-character interface

4.1 View current directory

4.2 viewing files and creating files with Cat

1) Create a file named Me

2) to see if the file is generated, use the LS command

3) View the contents of the file Me

4) Add content to the file

5) Use the Cat command to see if the contents of the file increase

4.3 Counts the number of lines, words, and characters of a file, and stores the statistics in the Count file

4.4 pagination Displays information about the/etc directory

4.5 Show only the first 15 files and subdirectories in the/etc directory

4.6 Clear Screen Contents

4.7 use of wildcard characters

Displays all files and directories in the/bin/directory with the C-letter

ls/bin/c*//* as a string of characters

Ls/bin/c?? ? to one character

Experiment one user interface with Shell commands

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.