Ext.: http://blog.csdn.net/xiaoguaihai/article/details/8705992There are many common commands in Linux that must be mastered, and here I will learn some common basic commands that I learned from Linux to share with you and hope to help you.This is
The Find command summarizes:1) Search by name,find/-type f-name ' xiaoyao.txt ', Find and delete:Find/-type f-name ' xiaoyao.txt '-exec rm -f {} \; or:find/-type f-name ' xiaoyao.txt ' |xargs rm-f2) Find files by modified time, such as last 5 days:
Linux system files have three main time attributes, CTime (change times), Atime (Access Time), Mtime (Modify).Later in order to solve the atime performance problem, also introduced a Relatime attribute, the following one by one explanation.CTime,
Linux Entry Disk Management (3) file system Mount when a disk is partitioned and a file system is created, it simply means that the device can be used for storage, but to access the device, it is necessary to provide access to the user by
1, copy/etc/skel directory for/home/tuser1, request/home/tuser1 and itsGroup of internal files and other users do not have any access rights. [Email protected] ~]# cp-a/etc/ske1/home/tuser1[Email protected]/]# chmod-r go-rwx/home/tuser12. Edit
[Email protected] ~]# umount/drbd/Umount:/drbd:device is busy.(In some cases useful info about processes, use the device are found by lsof (8) or fuser (1))Solution One:First, find the process and command to use this file, the specific operation
1. List the user name of all logged-in users on the current system, note: The same user logged in multiple times, only once.[email protected] ~]$ who | Cut-d '-f1 | Sort | Uniq2. Remove the information about the user who last logged in to the
Installation: Yum install-y squidConfiguration file: vim/etc/squid/squid.confSpecify disk directory: Cache_dir ufs/var/spool/squid 100 16 256Cache_dir is used to specify the disk directory and size, the three values following the directory are
I am using ubuntu14.4, so everything is OK in Ubuntu, and it should be similar in other Linux systems.1 Scheduled Tasks, crontab command options:-u Specifies a user,-l lists a user's task schedule,-R Deletes a user's task,-e Edit a user's tasks2
Bash Script Programming second, conditional judgmentCondition Judgment:If the user does not existAdd user, give password and display add success;OtherwiseShow that the user is already present, not addedHow do I make conditional judgments in
One: Linux system overview 1. Common Operating Systems-server-side operating system: Linux, UNIX, Windows Server-Standalone operating system: Windows (DOS, Ucdos, Win95, Win98, Win2000, XP, Vista, Win7, win8)MAC, Linux (Ubuntu)-Mobile OS Android,
Tar commandTar can create archives for files and directories. The tar user can create files for a specific file (backup file), change files in the file, or add new files to the file. With the tar command, you can package a whole bunch of files and
for network services that can be started by xinetd programs, such as FTP telnet, we can modify the configuration of/etc/hosts.allow and/etc/hosts.deny to license or deny which IP, host, user can access.For example, we are/etc/hosts.allowJoin inall:21
Tar commandTar can create archives for files and directories. The tar user can create files for a specific file (backup file), change files in the file, or add new files to the file. With the tar command, you can package a whole bunch of files and
T1- Close Linux init0/shutdown-h now-Switching Terminals CTRL+ALT+FN n=1-6-View terminal TTY-View the currently used SHELL #echo $SHELL Linux Strict case sensitivity-View the available shell #cat/etc/shells for Linux-Power off restart
1. command format and directory processing command LSCommand format: command [-options] [parameters] Example: ls-la/etc (Note: Individual commands do not follow this format; when there are multiple options, they can be written together; option
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