Improve readability of information in kilobytes, MB, GB
-S
Only the sum of each file size is listed
-X
Only compute files that belong to the same file system
2.5 fsck CommandThe function of the fsck command is to check and repair the Linux file system, which is best used when no one or no partition hangs up, in fact, each boot system will do a check to see if there is a bad track or data loss ph
Linux commands for managing files and directories
Command
Function
Command
Function
Pwd
Show current directory
Ls
View the contents of the directory
Cd
Change your directory
Cat
Display the contents of a file
Grep
Find a character in a file
Cp
Copying files
Touch
Create a fi
directory content in hierarchies Ls -- help: simple help for displaying ls commands Ls -- color =? : File type display color ,"? "Indicates when to distinguish the file type by color.The following options are available: TTY: only displayed on the terminal Auto: DefaultAlways: Always show colorNone: never displayedIn the character interface, the file types are distinguished by colors as follows: Gray: Common File Green: Executable File Blue: directory
(source) target (destination)[email protected] ~]# CP [options] Source1 source2 source3 .... directory
Parameters used with the CP:
-A: As-pdr means, please refer to the following instructions for PDR. (common)-D: If the source file is the attribute of the link file, the link file property is copied instead of the file itself;-I: If the target file (destination) already exists, the action will be asked (commonly used) when overwriting-P: Copy the past along with the properties of
(mm/dd/yy format)
%T
Display time format, 24-hour (HH:MM:SS)
%x
Format of the display date (MM/DD/YY)
%y
The last two digits of the year
%Y
Years (e.g. 2007, 2008)
%r
Time (Hh:mm:ss morning or afternoon)
%p
Show morning or afternoon
If you enter a command:Date "+%x,%r"The system returns the following information:March 26, 2010, 18:06 P.M. 49 seconds4.7 cal CommandThe CAL co
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
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 l
1. Format description"[email protected] Simon" $"[Email protected] ~" $Both of these methods represent the same. Simon is the specified user, localhost is the computer name, if not set to localhost by default. Simon, ~ refers to the directory where you are currently located.Terminal: Command interpreter, simulation shell2, the user's switchsu[options] [user]such as: Su-rootThe example uses the SU command to change a normal user to the root user and use the option "-" to carry the root environmen
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-
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 na
transfers data from template1 to sales
Template1 =#\ dt
Template1 =#\ d view the table structure
Template1 =#\ di View index[Basic database operations] ============================* Create a database:Create Database [database name];
* View the Database List:\ D
* Delete A database:Drop database [database name];
Create a table:Create Table ([field name 1] [Type 1]
* View the table name
Linux Study Notes 2-linux basic commands and Study Notes 2-linux
First blog: linux Study Notes 1-ubuntu installation and basic settings, has introduced how to install the
file after a few lines-N: Specify the number of rows-F: Dynamically displays the end-of-file class capacityLN: Generating a linked file-S Create soft connectionExample: Ln-s source file Destination file generation soft connection (shortcut)ln source file destination file generated hard link (source file destination file sync update, copy, source file missing hard link still in, cannot cross partition)by Ls-i to see if it is a hard link, I-node numbers are the sameThis article is from the "Tommy
represented as 2So the permission to manipulate this file is represented by a value of 662Change permissionssudo chmod [u belongs to user g belongs to group O Other User a All users] [+ Increase permissions-reduce permissions] [r W x] directory nameFor example: There is a file filename, the permission is "-rw-r----x", the permission value is changed to "-rwxrw-r-x", with a numeric representation of 765sudo chmod u+x g+w o+r filenameThe above example can be represented by a numerical valuesudo c
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
option, because you are worried that if you typo, the directory name will become messy.16. Delete "Empty" directory: RmDir17. Display of files and directories: LS18. Copying Files or directories: CP19. Removal of files or directories: RM20. Moving files and directories, or renaming: MV21, get the path of the file name and directory name: Basename,dirname22, starting from the first line to display the contents of the archive: Cat23. Starting from the last line: TAC (can see that the TAC is backw
Basic commands and directory structure directories in Linux
First, the Linux basic directory structure
II. basic Commands
Third, browse the directory
Iv. Intermedia
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.