First, packaging compression decompression① compressionTAR-CZVF Test.tar.gz./testTAR-CJVF Test.tar.bz2./test② DecompressionTAR-XZVF Test.tar.gzTAR-XJVF Test.tar.bz2-C,--create:create a new archive-Z,--gzip:filter the archive through gzip-V,--verbose:
As a qualified Java background developmentOften need to query the log on the line, to locate the problem on the lineSo master the command of log queryAllows you to locate the error log location more quickly and solve the problem in a timely
A blocking/nonblocking method is available when an application accesses a device file. If you are using blocking mode, call Open (), read (), write () directly, but the driver layer will determine whether it is readable/writable, and if
Cause of the problemThe Windows system directly displays the physical time of the computer as a local time, while the Linux system treats the computer's physical time as UTC time, adjusts the time in its timezone and then displays it, causing the
First, before the expansion, look at their own logical volume, Volume group, Physical Volume Information: (On the basis of the previous article: the creation of logical volumes in Linux)To view a physical volume:# PVDISPLAY/DEV/SDC1To view a volume
fsck 磁盘分区功能Syntax format: fsck "option" "Filesys" fsck [options] [File system]Attention:
There must be at least one space between each element in the fsck command and subsequent options and device names
The Filesys can be a device name (
Linux system directory Structure tree diagram:The following is an explanation of these directories:
/bin:The bin is the abbreviation for binary, which holds the most frequently used commands.
/boot:Here are some of the core files used when
Mount-t Iso9660/dev/cdrom/mnt/cdromUmout/mnt/cdromTo view a file system that has been mounted by the systemMountOutput format for each line:Partition name on mount point type File system type (mounted option)When using a CD, floppy disk, or USB
more 分页显示文件内容Syntax format: more "option" "File" more [options] [file]Note: The more command and subsequent options and files, each element must have at least one spaceOption Description:
parameter Options
Explanatory notes
1. LS View File command
such as the PWD command to see the current directory is located in the root directory under LS can see the current directory folder, Ls-llTo view the properties of a directory, permissions, or a path followed by
1. Viewing the user's effective group Groups user NameNote: There may be multiple results from the view; The first is the primary group, followed by the sub-group 2. Adding and removing groupsAdding a group: Groupadd Group nameDelete a group:
Backup Restore casePremise: Log_bin=onfirst, after the morning work mistakenly deleted the database, how to restore the database1, assume that the morning has completed the backup (open binary), and then in the students table added a piece of
Today, I begin to summarize the commands I have learned, and I mainly learn to use them. Let's summarize the next xargs today.Xargs a filter that passes command-line arguments to other commands.Options-N Specify how many columns per row-I replaces
Time:2018-06-18 13:00:00Tags:linux---AttentionSystem version: Ubuntu 18.04 LTSCode# Update SystemsudoApt-get UpdatesudoApt-get upgrade-f-y# Change the system boot ordersudoVi/etc/default/grub# Press the INS key to enter insert mode# Change the value
1. Sort Command functionThe sort command is used to sort the contents of the text file, sorting the input rows by key-value fields and data type options, and by locale.A predictable sequence of records makes it easier for users to see and use: The
1. Add environment variables to PythonpathExport pythonpath= $PYTHONPATH:/home/myprojectView PythonpathEcho $PYTHONPATHYou can enter the Python interpreter and print the Sys.path proof to take effect.After adding an environment variable, this is
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