Linux basic commands and linux commandsLs command
Pwd: display the current directory touch 11.txt: Create a txt file named 11 mkdir laowang under the current directory: Create a folder named laowang ls-a-l-h in the current directory: it is equivalent to ls-alh.-a is used to display all files in the current directory, including hidden files.-l is displayed as a list
Basic Linux commands and Linux commands
Cd-> transform path // file usually exists under/var/path, var can be modified storage disk
Ls-> list all properties of hidden and Related Files # ls-al
# Ls-al
-Rwxrwxrwx 1 root 293 2016-02-23 test
File property connection count file owner file user group size time file name
-Rw
Common mysql commands and basic mysql commands
Mysql database usage Summary
This article mainly records some mysql commands for future query.
1. Change the root password
Mysqladmin-uroot password 'yourpassword'
2. remotely log on to the mysql server
Mysql-uroot-p-hip-P3306
3. query the database
Show databases;
4. Enter
Linux Security Basics: network configuration commands and linux basic configuration commands
1. ifconfig view and configure network interface information(1) set an IP addressIfconfig eth0 192.168.0.1(2) temporarily disable or enable the NICIfconfig eth0 downIfconfig eth0 up(3) set the subnet maskIfconfig eth0 netmask 255.255.255.0(4) view the status of the first
Summary of basic linux vi commands and summary of linuxvi commands
This is to prevent you from forgetting and writing it, so it is not detailed.
Yum install (command) Installation command
Nano file editing
Vi
Delete file: rm
-I confirm before deletion
-F not confirmed before deletion
-R recursive Deletion
Rm-rf/file name
Cp: copy
Cp src dest
-R
-Confirm before I
A few days ago learned the basic Linux commands, here to share, as a summary.Environment: 192.168.54.242Cd:CD-Switch to the first use path;Cd.. Go to Parent PathCD ~ Enter into the root/directoryCD Ibid.Cd.. /Relative DirectoryMkdir:mkdir a Create directory AMkdir-p a/b/c Creating a tree DirectoryMKDIR-M 777 A Create directory A and give maximum permissionsMkdir-m a=rwx a ibid.(About permissions: Rwx refers
the fifth column-C take character \ (text letter \)[[emailprotected] oldboy]# cut -d " " -f3,5 oldboy.txt |sed ‘s#,myqq #,#g‘24. How many lines does the WC statistic file have?How many rows are in the-l statistics file[[emailprotected] oldboy]# wc -l /etc/services10774 /etc/services25, DUMPE2FS display the file system (partition) informationinode sizeblock sizedumpe2fs /dev/sda3|egrep -i "block size|inode count"[[emailprotected] ~]# dumpe2fs /dev/sda3 |grep -i "inode size"dumpe2fs 1.41.12
Basic Linux commands: sar and basic linux sarCommon sar command formats
Sar [options] [-A] [-o file] t [n]
Where:
T indicates the sampling interval, and n indicates the number of samples. The default value is 1;
-O file: stores the command results in binary format. file is the file name.
Options is the command line option. Common options for sar
specified user{}: Can host a comma-delimited list and expand it to multiple pathsMKDIR/TMP/X/{Y1,Y2}/{A,B}mkdir {X,y}{m,n}(5) Execution result status of the commandSuccessFailedBash uses a special variable $? Save the execution status result of the most recent command0 successes1-255 failureProgram execution has two types of results:The return value of the programExecution status results of the programDirectory Management class commandsCd,pwd,ls,mkdi
Basic LINUX operation commands and basic linux operations
Ls to list files and directories-A: displays all files and directories, including hidden files and directories.-L: displays full attribute information of files and directories.
Cd changes current path(Relative path and data pair path)
Pwd displays the current
Linux basic commands and linux basic exercises
To enable the Linux operating system, you must log on to the gnome gui as the root user. Select Chinese as the language support.
Use the shortcut key to switch to virtual terminal 2, log on as a common user, and view the system prompt
Use the command to log out of the user logged on to virtual Terminal 2.
Use the
that developers can submit locally under distributed Each developer machine has a server database backup file record history back to the past multi-share003. Git workflowWorkspaces: code written at work staging area: Staging, helping us save the code as a transition layer to avoid misoperation protect workspace and version area Branch processing version area: Manage version, code action in repository generates version004. Some basic Linux
Three basic concepts
The workspace (Workspace) is the root directory of the items in your computer
Registers (Index) like a cache area, temporarily save your changes
The version library (Repository) is divided into local warehouses (locals) and remote warehouses (sqlremote)
Almost all of the commonly used commands are based on these concepts, a picture of victory, the following is a relatively simple
use bzip2 to compress tar files
To create a tar file, enter the command:TAR–CVF Filename.tar Directory/file/home/mineThe above command puts Directory/file,/home/mine into the archive.To list the contents of a tar file, enter the command:TAR–TVF Filename.tarTo extract the tar file command, enter the command:TAR–XVF Filename.tarThis command does not delete the tar file, but it copies the contents of the archive to the current working
su
2. ls (list)
Like others, you often want to see anything in the directory. With the list Command, the terminal will display all the files and folders in the directory you are processing. Suppose I want to view the directories and files in/home in the/home folder.
/Home $ ls
The ls In/home returns the following results:
Imad lost + found
3. cd
Changing the directory (cd) is the main command that i
command sets the system time to coincide with the school time server: [[emailprotected] root]# ntpdate stdtime.microsoft.com← and Microsoft School. Then execute the date command again to find that the system time has changed. But it's not over yet. It is also necessary to execute the clock–w command to write the changed time to the computer's CMOS so that the changed time is not used at the next boot. The example is as follows: [[emailprotected] root]# clock–w Common
Linux has a big impact on our lives. At the very least, your Android phone has a Linux kernel on it. However, starting Linux for the first time will only make you feel uncomfortable. Because on Linux, you should usually use terminal commands instead of just clicking on the launcher image (just like you do on Windows). But don't worry, the 10 basic Linux commands
Linux basic commands1. What is the symbolic representation of the absolute path? What is the current directory and top level directory used for? What does the home directory say? What are the commands for switching directories?2. How do I view the current process? How do I exit? How do I view the current path?3. How to clear the screen? How do I exit the current command? How do I sleep? How do I view the cu
command will be the alias command and the original command, options and the combination of parameters display.OPTIONS: The features used during this command execution.Options can be divided into short option and long option.Short options:-charCan write more than one time,-a-l-D (separate words, the choice between the space),-ald (combined to write must have a space)Long options:--word,--help,--list,--human-readable long option cannot and merge writin
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.