LINUX start
Hackers
Hacker = Black Hat
Red Guest
White Hat
Black Hat
Grey Hat
Red Hat: Redhat Linux system
CentOS6.5
"User name @ hostname name" #
#表示管理员
$ represents a normal user
To view the configuration commands:
Cat/proc/cpuinfo Viewing CPU information
Ctrl+l Clear Screen
Cat/proc/meminfo Viewing memory information
command to restart:
Reboot
Shutdown-r now reboot
Shutdown-r 15 15 min Restart
Init 6
Shutdown
Poweroff
Shutdown-h now immediately shuts down the machine
Shutdown-h 15 15 min shutdown
Init 0
Turn off the firewall shutdown selinux security mechanism
Setup command to select a firewall configuration
Remove the asterisk before enable and select OK
SELinux
Vim/etc/selinux/config
Selinux=enforcing Modify Disabled Save
LS lists the contents of the current directory
./vmware-tools-distrib-d
System directory Structure:
/root directory, operating system's starting directory
/bin a directory for common users and administrators to execute commands
/sbin commands that can only be executed by administrator root
The/boot directory holds the kernel of the system
/dev Stores the device file system in the operating system everything is file SDA for hard disk
/etc Saves the configuration file in the system
/home directory for common user homes
/root Administrator's Home directory
/lib/lib64 function Inventory put in the catalog
/media Optical Drive Mount Directory
/MNT USB flash drive temporary hanging in the directory
/proc in-Memory mapping directory
/tmp temporary file storage directory The memory in this directory can be arbitrarily deleted
/USR installation directory for third-party software
/var frequently changed file store directory mail log separate partition recommended for larger
650) this.width=650; "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/ Images/localimage.png ") no-repeat center;border:1px solid #ddd;" alt= "Spacer.gif"/>
Sda
SD interface type SATA SCSI SAS USB
HD Interface IDE
A b c D HDD sequence B second hard drive
1 2 partition of a hard disk SDA1 first primary partition of the first hard disk
MBR partitioned table format: Primary partition up to 4 extended partition logical partitions
SDA5 indicates that the first logical primary partition in the system SDA6 represents the second logical primary partition in the system
Tab key: auto-completion
Ctrl+u : Empty to the beginning of the line
ctrl+k : Clear to end of line
ctrl+l : Clear Screen
Ctrl + C : Cancels this command edit (terminates command execution)
back Slash " \ ": Force line break
Ctrl + ←: Move one word to the left
Shortcut keys
TAB completion
CTRL + U clears the current cursor to the beginning of the line
CTRL + K clears the current cursor to the end of the line
CTRL + L Clear Screen contents
CTRL + C terminates in-progress content
LS lists the contents of the directory
LS-A lists all the hidden files that include hidden files in Linux with "." Beginning
Ls-l listing the file details in a long format
Ls-lh displaying file sizes in a human-readable manner
Ls-alh-lha-lah
Fixed format for Linux operating system commands
Command word "Options" "Parameters"
option needs to be used by "-" boot
"--" string option
CD Switch Directory
Change Directory
In the directory: Represents the top level directory CD: Return to the top level directory
In the directory. Represents the current directory
CD/HOME/WJL the path starting with the root is called the absolute path (the path is absolutely not wrong)
Relative path to enter its subdirectory relative to the current directory can not be entered from/start
PWD Displays the current working directory
Print work Direcotry
Touch file name to create a new file or update the file timestamp
echo "Content" Display content to screen
echo "Content" > Files assign content to a file
echo "Content" >> file append content to File
mkdir Creating a Directory
Make Directory
mkdir Directory Name
-p recursive creation of subdirectories
RM File name Delete file
-F Force Delete
-R recursive Delete to delete directory
MV Move or rename files or directories
CP copy Copy and can be renamed
If the copy directory requires the-r option
-R Recursive copy
Cat files
-N Display Line number
ln source file Hard Link name
Hard links are valid only for files that do not have a hard link to the directory to create a delete source file.
The role of symbolic links can invalidate the link to a directory to create a delete source file.
Reinstall a new centos6.5 operating system.
Complete the second chapter after class exercises.
Linux Learning Notes 0x00