tar 打包备份Syntax format: tar "option" "File" tar [options] [file]Note: There must be at least one space between each element in the tar command and in subsequent options and filesOption Description:
parameter Options
Explanatory
Commonly used compression formats:. zip. gz. bz2One,. zip format compressionZip compressed file name source fileCompress filesZip-r compressed file name source directoryCompressed directoryUnzipUnzip compressed file nameIi.. gz format
Related functions: Open, FtruncateTable header files: #include define function: int truncate (const char *path, off_t length);Truncate ("/AAA", 500);Function Description: Truncate () changes the file size specified by the parameter path to the size
I. OverviewSYSTEMD is a basic building block for a Linux system. It provides a system and service manager that runs as a PID 1 and starts the rest of the system. SYSTEMD provides aggressive parallelization, uses sockets and D-bus activation to start
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
A brief introduction to the time subsystem under Linux. Includes the contents of the Clocksource,timekeeper and timers.3.2 High-precision timers With the constant upgrading of the kernel and the continuous development of hardware, due to the
1. Document Operation Mind Mapping2. Linux system directory structure and simple descriptionLinux Directory Map:
Root---Some of the core files used when starting Linux. such as operating system kernel, boot program grub and so on.
Home--
View TCP connections for LinuxNetstat-na See which IP connections this machineNetstat-naActive Internet connections (servers and established)Protocol Receipt Package Local address external address stateProto recv-q send-q Local address Foreign
1. View the value of the/proc/sys/vm/drop_caches~]# cat/proc/sys/vm/drop_caches02. Run the sync command~]# Sync3. Enter the command to manually release memory~]# echo 1 >/proc/sys/vm/drop_cachesThe value of drop_caches can be a number between 0-3
The Export command is used to set environment variables.When using single quotes, the variables are not extended and are displayed as-is. Example:If the variable is not defined, nothing is printed:Get the variable value lengthIdentify the currently
Linux command to find filesSome files for a long time do not forget the name, only a vague impression, at this time to find the file command is particularly important! Linux provides more powerful lookup commands than Windows.(This is just a few of
This command only modifies the parameters under/proc/sys/and is only temporary.View the value of a specified parameterThe actual directory is/proc/sys/net/ipv4/ip_forwardModifying the value of a specified parameterWhat parameters can be
LDD CommandDisplays the library files on which the application (binary) dependsLsmodDisplays the modules currently loaded by the kernelYou can also view the Cat/proc/modules command by using theModinfoView kernel module information, including
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
First, review the previous common commands1. Directory Management: ls,cd,pwd,mkdir,rmdir,tree,mv2. File Management:Touch,vi,nano,rm,mv,cp,file,stat3. Time Management:Date,clock,hwclock,calSecond, view the contents of the file commonly used
First, Centos7 order collation1, CentOS off hibernation and screensaver mode method one: #xset s -#设置屏保时间为300秒, the time unit is seconds #xset s0#关闭屏幕保护 #xset DPMs0 0 0# Three values are standby, Suspend, Off, per second #xset-DPMS #关闭电源管理方法二:
Click Back to learn the path of the Linux command line and shell script8.2-linux Logical Volume LVM management 1. Linux-supported file systems
There are three types of partition formats commonly used in Windows, FAT16, FAT32, NTFS, respectively.
Using semaphore synchronization thread to implement thread access counting function under LinuxHere is the core code, other reference IPC a comprehensive small practice#include
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