First, the time to modify LinuxUnder root user, use the date command: date-s1. Only modify the date, do not modify the time, enter:-Geneva-2. Modify the time only, enter::xx 3. Also modify the date time, note to add single/double quotation marks,
Ln-s/etc/issue/tmp/issue.soft /etc/issue/tmp/issue.hard Create a hard connectionLs-l/etc/Issue -l/tmp/issue.soft View Issue.soft Soft connection long format informationNote: In the Linux system all the soft connection permission display is
Linux permissions-related commands:ID Display User IDchmod Modifying file permissionsUmask to set Default file permissionsSu runs the shell as another usersudo executes the command as another userChown Modifying the file ownerCHGRP Modify the file's
First we need to understand a few conceptsWhat is a kernel?The kernel is the most basic part of the operating system. It is part of the software that provides secure access to computer hardware for many applications, and this access is limited, and
This article is mainly about how to compile your own development of kernel modules. Since drivers are often also compiled into kernel modules, the content of the article also applies to driver compilation.Because of the limited ability under, there
About Command Extensions (Expansion)Echo[[email protected] ~]# echo * #* is expanded to file name 0227_2.sh 02273.sh 0227.sh anaconda-ks.cfg Desktop Documents Downloads err.txt I Nitial-setup-ks.cfg Music perl5 Pictures public Templates test
The web-only processing of messages on Linux is due to the fact that it is not possible to find a mail client that is too good to support exchange. Inadvertently found on the Internet Exquilla this Thunderbird plug-in, try a bit or good, very
"One" starts at line No. 3000 and displays 1000 rows. The 3000~3999 row cat filename is displayed | Tail-n +3000 | Head-n 1000 "Two" display 1000 rows to 3000 rows cat filename| Head-n 3000 | Tail-n +1000 * Note the sequence decomposition of the two
To turn off the firewall:
Firewall can be used to restrict the use of some ports, can be through the Linux command relationship to it, the corresponding instructions:To view firewall information:#service iptables StatusYou can see the state of the
A low-privileged user generates a new file to a writable directory, and since the new file does not inherit the writable permission, the user cannot modify the operation of the file after the build.Use the Setfacl command to automatically inherit
Linux man and Linux manThe man system is a powerful help system in linux. It can provide almost all help information to system users and programmers.
The help information mainly comes from the selfless contribution of many document maintainers in
Linux batch copy data script
Recently, I want to get a Linux-based Batch Transfer copy deployment remote server scriptConcept: 1. establish equivalence with remote clients2. Copy data or execute remote server commandsThe automated equivalence script
How to start a Linux application in terminal running mode
This is a short but useful tutorial that can help you start a Linux application on the terminal and prevent the terminal window from losing the focus.
There are many ways to open a terminal
CentOS disk management commandsCentOS disk management commands
Df disk free
Display disk Information
Df [-aHhiklmPT] [-- block-sze = ] [-t file system type] [-x file system type]
Parameters:
-A or all contains all file systems
-H: display
CentOS6.X disable TTY Method
In centos Linux, six consoles are opened by default, which can be accessed by ALT + F1 to ALT + F6. By default, all six consoles reside in the memory.Ps-aux:
[root@localhost ~]# ps -aux | grep ttyWarning: bad syntax,
Check whether linux32-bit or 64-bit
Check whether the linux machine is 32-bit or 64-bit:
File/sbin/init or file/bin/ls/Sbin/init: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.18,
Build a DNS server in LinuxSystem Environment: CentOS 6.5 miniIP Address: 192.168.100.1001. Install related software packages# Yum install-y bind * caching-nameserver2. Open firewall ports# Vi/etc/sysconfig/iptables-AINPUT-m state -- state NEW-m tcp-
Manage Nginx logs and use scheduled tasks to cut logs
Ngnix log management and log cutting with scheduled tasks
I. Log Management
Let's take a look at the server segment of the Ngnix configuration file.
Next, let's explain the meaning of the
Remote mysql logon backup in CentOS
1. Change the remote root password
Mysqladmin-h ip-uroot-p123456 password
If 'Access denied for user' root' @ 'IP' (using password: YES) 'appears )'
If the permission is insufficient, the remote host cannot log on
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