Linux basic commands on file operations (in case) in the root directory (/) to create a new directory tew.kdir/test to change the current directory to/test, under this directory, create an empty file with the abbreviation of your own name, and then create two subdirectories (-xh) and (ah );... linux basic commands on f
Basic Linux commands-general Linux technology-Linux technology and application information. For more information, see the following section. Basic Linux commands:
Who to view the current user
Ps aux (I often have one more '-' with a row of error messages)
Netstat (man or info to CC)
Shutdown reboot command
Shutdown Syn
The following articles mainly describe MySQL database commands in detail. We first begin by displaying the basic information of the MySQL database to parse the MySQL database commands in detail, the following describes the specific content of the article.
Display basic MySQL information:
MySQL>status;
View varia
To view the database, you must first find the db file, if copied to the computer, view more methods, on the phone, with commands to view the comparison is direct and convenient.First to find the location of the database, the general database is stored in the program's private directory, so to get root permissions.Make sure the development tool is connected to the phone, open the command line, enter the ADB shellAt this point do not get root permission
Summary of basic network port operation commands in CentOSThis article mainly introduces the basic network port operation commands of Linux system, including solutions for port conflict. For more information, see
Close the portIptables-a input-p tcp-dport 111-j DROP
Open PortIptables-a input-p tcp-dport 111-j ACCEP
Displays line number: Set Nonumber hidden line number: 5 cursor quickly navigates to line 5th: 1, $s/nologin/888888/gReplace the nologin of the entire file with 888888VI command: command-line mode below: Find:/stringSearch Down by letter NSearch By letter N--------------------------------------------------------------Pipe Symbols |--Pass the output of the previous command to the latter command processing--which commands are supported to be placed in
, different attributes, smaller files♣ Removal 2.sh has no change, but 3.sh points to an invalid file that is no longer a link.♣ Delete * * The hard-link file takes the same index node number as the source file; the hard link maintains the index node number to preserve the data, knowing that you deleted the last hard-linked file. 10. Commands to view the contents of a file Stat: Provides all state information for a file on a file systemFile: Types of
I've written several articles about how to use the command line interface to manage files on your system, and here are a few basic commands that are common to all distributions.To copy a file or directory to a new location:
CP Path_of_file_1 path_of_the_directory_where_you_want_to_copy/
Copy all files from a directory to a new location (note the slash and asterisk, which indicates all files in
Tag: Pos Post search detects down art ble MRC consistencyVIM basic Commands
Cursor movement
G last lineNG moves to nth row n return cursor moves down n rowsGG First Line
Find and replace
/wordn Repeat previous Find operation N search up: n1,n2s/word1/word2/g from line N1 to section N2 find N1 replace with N2 last behavior $
Delete, copy and paste
X,x backward Delete
Linux CentOS Common Command **************************///Install centos6.6 with GNOME desktopCTRL + C terminates the current commandCTRL + Z PauseExit returnsStart Firefox: Firefox (The role of is placed in the background to do)Get root: Su root or Su-switch to new environmentsudo: Executing commands with Administrator statusID: Get user informationModify User password: passwdShutdown-h now immediately shuts down the machineShutdown-r now restartVie
Tags: first shel bit operation otherwise IDT operation for work ACKLinux Learning Chat (i)--Shell Basic operations and commands(Reproduced please attach this article link--linhxx)1, #!/bin/shPlaced at the beginning of the program, expressed in/bin/sh way to parse.2. Variables1) variable assignment varname= ' xxx ', in addition to variable assignment and in the For Loop statement header, in other cases the v
Common basic commands in Linux-ls favoritesThese are frequently used and powerful commands in Linux, but although you may be using these commands every day, I believe you do not fully understand these commands. If so, then you will surely gain something after reading. Let's
Basic linux commandsBasic Linux commands (all files)Command Format:Command [Option] [parameter]Note: Use spaces to separate commands, options, and parameters. The limit can only be 256 characters.HelpMan manual eg. man
Man command/function name/header fileLs list content list directory content (windows: dr)
Ls-a displays all files (including hidden files, which u
After reading some basic commands in the vimtutuor tutorial today, I wrote something that might be important... After all, I have not written it in vim.ProgramAnd...
In vim, the mouse is like a fish without water. It is not suitable at all. Every time I habitually click to delete the desired place. You can imagine ....
1. Delete and insert commands: DW: de: d
Several Basic commands in SSH Software
Directory:1. BasicInstructions/basic2. wget/download Tool3. Crontab/scheduled task4. tar/tar.gz/compressed file5. vi/Editor
Cd [directory name] conversion pathCd .. back to the parent directoryLs displays all files in the current directoryRm [-r]-f [] [file name] delete a file, and add [-r] to delete all the sub-files in the file, for example, rm-rf [abc] deletes the a
Con1, the second is Con2, the third layer is Con3For example, all files under the display directoryfilelist= ' ls $dir 'for filename in $filelistDo#echoDone————————————Debugging of shell scriptsSH-NVX script.sh-N Do not execute script, check syntax error no problem, no display-V Print script to screen before execution-X Displays the contents of the script used to the screen = = Print execution track————————————————#用mv取代rmVI. BASHRCMkdir-p ~/.trash #加到文件尾Alias Rm=trashAlias R=trashAlias rl= ' l
the background, only in the current shell can view the Jobs Role: See how many commands are currently running in the background FG Role: Move the process to the foreground run BG Role: Move the process to the background run instance: [[emailprotected]~]#jobs[[emailprotected]~]#ddif=/dev/zeroof=/ dev/nullbs=1gcount=100^z[1]+stopped ddif=/dev/zeroof=/dev/nullbs=1G count=100[[emailprotected]~]#cat/dev/zero>>/dev/null^z[2]+ Stopped c
Recently learning Linux, to avoid some commands to forget, so here to record:Linux file list traversalLS-A lists all the files and folders including the hiddenLs-l listing the details of the file directoryHistory View Historical CommandsCtrl+r search for commands that have been executed in the pastFirefox foreground runFirefox background RunJobs view the currently running jobPS View the current system's ev
] ~]# readonly myvar= "How is it?" [Email protected] ~]# readonly declare-r myvar= "How is it?"(10). I/O redirection and pipingInput data flow: Standard output redirection:[Email protected] tmp]# echo "How IS Is?" > Demo #覆盖 [[email protected] tmp]# echo "How is old is you?" >> dem o #追加Standard Error Output redirection:[Email protected] tmp]# echoooo "How is it?"2> demo #覆盖 [[email protected] tmp]# echoooo "How is old is you?" 2>> Demo #追加Merge standard output with standard error output:[Email
Options] device mount name mount pointOptions:-T File system: Add File system and other types to make mount type, can ext3, Ext4, iso9660 and other file system-O Special option: You can specify additional options for mountingExample: #mount-o remount,noexec/home: Using the Noexec#cd/Home #vi hello.sh (#! /bin/bash echo "Hello") #chmod 755 hello.sh#./hello.sh Run error prompt does not have permission to re-modify Mount command: #mount-o remount,exec/homeTo mount a disc:#ls/dev Sr0 is the system'
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.