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