Linux First Experience

Source: Internet
Author: User

now formally back to the content of the plan. In order to go out to play when the article some hair, opened a few "NET MVC Enterprise Combat", and later because the work needs to learn a little angular, business real good book, the back of time also want to see, angular originally thought of quick, but it seems to need at least one months, Then first understand the point of foundation, later time to go deeper.
many years ago, the notebook, using WIN10 32-bit, run VS2017 when the card is deadly, after the course if you install the virtual machine, it is impossible. So simply upgraded the memory and SSD, installed 64-bit WIN7 and Ubuntu 16.04, would have feared 16.04 cards, but actually very smooth. Next try to start the Linux experience in daily use only, Windows and Linux do not have the advantage of the problem,
focus on the difference. Just for novelty also to take a good toss.


First, the file system
a) One of the differences between Linux and Windows systems is the file system, where Windows is a multiple file system, and the root of each disk is the root of the file tree. Linux file systems are single, each disk is used as a folder, and the disk's nodes are called mount points. The folders under Windows are called directories here (directionary). In addition, the file name of Linux is case-sensitive.
b) Learn about some of the major Linux directories
Boot files are stored by boot
bin Storage binary executable file
user holds data about users
opt-In is an additional installation package
dev places device files
etc inside is the system configuration file
home The root directory of the user files
Lib is a shared library
var is a file that needs to change data at run time
MNT is the installation point for installing a temporary file system

two or one common commands for Linux:
a) Common file operation commands
working directory working directory
pwd Print working directory
LS displays files in the current directory, also available in Dir
CD Change Directory
CD/Back to the root directory
CD.. Back to superiors
mkdir Create folder, due to permissions issues, the default can only be in the home of the current user directory operation
rmdir Deleting a folder
RM Delete File
-R Delete non-empty directory recursive
-RF Force Delete all Files
CP a B replication
MV 1 t1/2 moving files
Cat View file contents, cat means concatenate files and print on the standard output to connect the file to the screen
More Paging View
find-name ' lib* ' Find files and folders

b) System commands
ctrl+alt+t Open Terminal
PS currently running process
-ef All running processes of the current computer
Reboot Restart
shutdown
- h now shuts down
Exit quit Terminal
clear clears the screen ctrl+l also, under Windows is CLS
up and down arrows to bring up historical instructions
Ctrl + C cancels the current instruction
tab Auto-completion CD c then tab
tar compression, archiving, packaging
tar-c-F A.tar T1 (folder to package)
Decompression Tar-x-C (uppercase) T2-f A.tar
Man view manual man dir

c) Piping Instructions
The output of one command as input to another command
can freely combine multiple instructions
Use vertical bar | to split
ps-ef| More
netstat-a| More list network ports

e) sudo
to execute commands with Superuser privileges, you need to enter your password

Third, VI

A) VI has three modes, three modes of relationship and switching modes are:
I insert mode
ESC Command mode
: Last line mode

Save: W file name
exit: Q
do not save exit: q!

b) Last-line mode
: Wq Save and exit to have file name
: q! does not save exit
: W save does not exit
!+shell can execute shell instructions without leaving VI

c) Command mode:
shift+^ move to the beginning of the line
shift+$
Ctrl+b Backward
Ctrl+f forward
DD Delete Current line
x Delete current character
u undo, only once
o Add a row below the current line and automatically enter insert mode
I insert before current cursor
A after insert append

Learning materials: such as Peng Network. NET Accelerated www.rupeng.com/News/10/4603.shtml

Linux First Experience

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.