Linux Experiment II

Source: Internet
Author: User

First, Summary of Knowledge points:

What is Shell:shell is a system program provided to the user by the Linux/unix system to interpret the user's commands. It is the interface between the user and the system kernel.

Common shell commands are: sh, csh, ksh, bash;

Second, the Simple shell command:

(1) Echo: Display string

(2) Date: Displays or sets the system date and time

Date: Displays the current date and time of the local time zone

Date-u: Displays the current date, time, or UTC (That is, zero zone)

(3) Cal command: Display calendar

Command format: cal [parameter name] [month] [year]

Aa.

Cal-y: Displays all calendars for the current year

CAL-J displays the number of days in the current month from January 1

(4) Who order

Who-a print out the system boot time, current user, user run level

Who-d prints out the dead process and does not output if there are no dead processes.

Who-q Print the current user name and number of logged in users

Who-u to print the login information of the currently logged in user

Who-r Print system operating level

(5) Clear command

Empty the contents of the current page

Third, the experiment two parts:

3, browse the file system;

(1) PWD:

To view the current directory:

  

(2) Ls-l

  

(3) Ls-ai

(4) CD

(5) Direct use of CD:

(6) Create a subdirectory with mkdir subdir, change the working directory to SubDir

4. File Operation:

(1) Run the date >file1 and run the cat file1

(2) Show date command with Man

(3) Running Cat SubDir

(4) Running Man Date>>file1 no reaction.

(5) Running cat file1, you will see the man page of date

(6) Using Ls-l file1

Run ln file1. /FA, then run ls-l file1

(7) CP file1 File2, then ls-l

(8) Run MV File2 File3, then ls-l

Linux Experiment II

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.