Command practice for Linux Basics

Source: Internet
Author: User

Open Linux operating system, requires login with root user gnome GUI, language support selected for Chinese

use shortcut keys to switch to virtual Terminal 2, log in as a normal user, and view the system prompt

use the command to exit a user who is logged on in virtual Terminal 2

use shortcut keys to switch to virtual Terminal 5, log on as an administrator, and view the system prompt

use the command to exit a user who is logged on in virtual Terminal 5

Cut back to the graphical interface, right click on the desktop to open the terminal, enter the command to shut down the system

See which users are working on the system

modification Current time is August 26, 2018 11:28

View the October 2015 calendar

Use two methods to view the instructions for using the LS command

Clear Screen

Create a new Tom user with the "Useradd Tom" command and set the password "123" for the Tom User

switch the current user to Tom

View Current Login The user name used by the Linux system

Create a new Tom user with the "Useradd Tom" command and set the password "123" for the Tom User

switch the current user to Tom

View Current Login The user name used by the Linux system

Open Linux operating system requiring root user login to Gnome graphical interface

Right-click on the desktop to open the terminal and use the "useradd Lucy" command to create a Lucy user

Use the mouse to click on the method to enter the root directory

Click to go to the root user's home directory

Click to go to the Lucy user's home directory

Click to enter the directory used to store the frequently used executable files

Click to enter the directory where the executable file for the system is stored

Click to enter the device files directory

Click to go to the configuration file directory

Create a directory WG

Create a new file in the WG directory using the absolute path method A.txt

Enter the WG directory

Create a new WG01 directory and B.txt file in the current directory using a relative path method

List content in the current directory in long list format

Delete empty directory WG01

Go to the top level working directory

Force Delete non-empty directory WG

copy /etc/passwd to current directory, named File1

PS. Update, copy /etc/passwd to current directory, named File2

View the contents of the File1 file in a read-only manner

View The first 3 lines of the File1 file

View The following 2 lines of the File1 file

View the contents of the File1 file as a percentage of the page

Paging up and down to view the contents of the File1 file

Create the following directory structure

sh-3.2# tree/ftpserver/

/ftpserver/

├──bin

│ ├──register.py

│ └──start.py

├──conf

│ └──settings.py

├──core

│ └──server.py

├──db

│ └──user.db

├──lib

│ └──common.py

└──log

└──access.log

1: Switch to the path/tmp, append to the start.py to write content

2: View the current path

3: Switch to the log directory, create a new directory access, and then move the Access.log to the directory.

4: Switch to the core directory, and then create a new auth.py file under the path

5. Open two terminals, one terminal to add content to the Access.log file, and then dynamically view the new content on the Access.log at another terminal.

6. Close the terminal above, and then write the content to the access.log in a overwritten manner

7: Delete/ftpserver directory

Command practice for Linux Basics

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.