Common commands:1. ls only lists file names (equivalent to Dir, Dir can also be used)-A: lists all objects, including hidden objects.-L: a list that contains most attributes of a file.-R: recursive display.-- Help: the help of this command.
Ii. Change directory with CDCD/: Enter the root directoryCD: Return to your own directory (different directories vary by user, root is/root, xxt is/home/xxtCD...: return
Detailed explanation of common nohup commands and detailed explanation of nohup commands
Nohup command
Purpose: run the command without hanging up.
Syntax: nohup Command [Arg... ] []
Description: The nohup Command runs the Command specified by the Command parameter and any relevant Arg parameter, ignoring all SIGHUP signals. After logging out, run the nohup comma
Locate find files based on file name search based on database records, the day createdWhereis which search command commands such as Whereis lsFind/root-name "A.conf"Path optional parameter file nameParameters:-name based on file name-size according to file size K M (unit case-sensitive)-inum based on Node-mtime modification TimeUsage of-exec:Find/root-size +20k-a-size-50-exec ls-lh {} \; Find files larger than 20k below 50k in the/root directory and l
Common Database restoration commands and restoration commands
1. display the current directoryPwd
2. remote replicationScp ics20140902_0200.DMP oracle@10.10.16.40:./hpdata
3. Restart the databaseLsnrctl stop; -- the listening service is stopped.Shutdown immediate;Startup;
4. Go to OracleSqlplus "/as sysdba"
5. delete usersSQL> drop user hlj cascade;
6. User Creat
your own user directory:On the target machine: CP tmpdir.sql.gz/home/makaidong/Then on this machine:scp-r [email protected]:/home/makaidong/\*.sql.gz.Note: \* escapeNohupNohup Hive--service hiveserver 2>1 Dos2unix windows-linux Shell Format conversionFind. -name "*.conf" | Xargs Dos2unixVar.sh wrote: year=2015Shell import Source introduces other shells#!/bin/bash#在其他目录: source./sh/var.sh #sh目录下 or source sh/var.shSOURCE var.shRm-rf./data.txtTouch Data.txtFor ((i=0;iDoStr= ', name ';Name=${i}${s
Common Linux Network commands and linux commands
1. tracepath
Tracepath traces the network path of the specified destination address and provides each hop on the path ). If your network is faulty or slow, tracepath can find out where the network is broken or slow.
Command Format:
Traceroute [-dFlnrvx] [-f
Command parameters:
-D uses the Socket-level troubleshoot
specified directory or file you want to viewcommand example:View home directory information, Getfacl/homewill be displayed: File:home file nameOwner:root ownerGroup:root belongs to GroupUSER:RWX Owner PermissionsGroup:r-x Owning group permissionsOther:r-x other people's rights5. Setfacl: Change the Access control list syntax for the settings file or directory: setfacl:[options [parameters]Command description: Getfacl can view information about the access control list, and Setfacl can change the
Linux Study Notes (7) common Linux commands: compression and decompression commands, learning notes compression and decompression(1) gzip
The gzip command is used to compress files. The original English meaning is GNU zip. The path is/bin/gzip. The syntax format is as follows:
Gzip [file]
The file format is .gz.
For example, copy the services file under the/etc d
Common Linux commands (5) -- compression and decompression commands 1. Command name: gzip www.2cto.com execution permission: All Users Function Description: Compressed File Syntax: gzip option [file] compressed format :. gz gzip can only compress files, but cannot compress directories. After gzip is compressed, the original file [root @ localhost abc] # lsafile i
Common awk commands (for conversion) and awk commands
Awk usage: awk 'pattern' {action }'Variable name meaningNumber of ARGC command line VariablesARGV command line meta ArrayFILENAME current input file nameNumber of records in the current FNR FileThe input field delimiter of FS. The default Delimiter is a space.RS input record delimiterNumber of domains in the c
Common Linux commands-permission management commands chmod
Command name: chmodCommand: change the permissions mode of a fileCommand path:/bin/chmodSyntax: chmod [{ugoa} {+-=}{ rwx}] [file or directory][Mode = 777] [file or directory]-R recursive ModificationFunction Description: Change the permissions of a file or directory.
Number of PermissionsR 4W 2X 1Rwxrw-
Common Windows Run commandsMSTSC---Remote Desktop ConnectionRegedit.exe---Open the registryServices.msc---Open Service ManagerRsop.msc---Group Policy result setTaskmgr---Task ManagerEVENTVWR---Event ViewerGpedit.msc---Local Group Policy EditorOSK---Open the on-screen keyboardCalc---start CalculatorWrite---open WordPadNotepad---Open notepadWinver---View windows versionsMsconfig.exe---System Configuration UtilityDevmgmt.msc---Open Device ManagerMSPaint-
GZ format,-j action for bz2 format fileCommand name: ZipCommand path:/usr/bin/zipExecute Permissions: All UsersSyntax: Zip option [-r] [compressed file name] [file or directory]-r compression DirectoryFunction Description: Compress directory or fileFile format after compression:. zipunzip(uncompressed)Command name: bzip2 (upgraded version of Gzip)Command path:/USR/BIN/BZIP2Execute Permissions: All UsersSyntax: bzip2 options [-K] [files]-K to save the original file after generating the compresse
User Management commandsCommand name: UseraddCommand path:/usr/sbin/useraddExecute permissions: RootSyntax: Useradd user nameFunction Description: Add New User example: Useradd ceshiCommand name: passwdCommand path:/USR/BIN/PASSWDExecute Permissions: All UsersSyntax: passwd user nameFunction Description: Set User Password example: passwd CeshiCommand name: WHOCommand path:/usr/bin/whoExecute Permissions: All UsersSyntax: WHOFunction Description: View logged in user informationThe first column in
1. Change file or directory permissions: chmodchmod [{Ugoa} {+-=} {rwx}] [file directory] [mode=42] [file or directory]Digital representation of permissions: R---4 w---2 x---1 rwxrw-r--:764chmod u+x Test.listChmod-r 421 TestDir-R Recursive modification: all users under directory and directory have permissions2. Change the file or directory owner: chownchown [user] [file or directory]: chown Bob fengjie.list3. Change the owning group of the file or directory: CHGRPCharp [user Group] [file or dire
gzip [file]Compressed file format. GZ, this command only compresses files and cannot compress the directory. And this command does not retain the source file after compressiongunzip [file] or gzip-d [file]Unzip the. Gz zip filetar [-ZCVF] [file name after compression] [directory]Package DirectoryCompressed file format. tar.gz-C Packaging-X Decompression-V Show More information-F Specify File name-Z Package simultaneous compressiontar [-ZXVF] [unzip file name] [directory]Zip [file name after comp
Network communication commands1. Send a message to a user: write Command name: Write English Original: command path:/usr/bin/write Execute permissions: All user syntax: Wirte 2. Send broadcast message to all users: Wall Command name: Wall English Original: Write all command path:/usr/bin/wall Execute permissions: All user syntax: Wirte 3. Test network connectivity: Ping Command name: Ping English Original: Write all command path:/usr/sbin/ping Execute permissions: Root syntax: Ping option IP a
Command name: chmodCommand English Original: Change the permissions mode of a fileCommand path:/bin/chmodSyntax: chmod "{ugoa}{+-=}{rwx}" "File or directory""mode = 777" "File or directory"-R Recursive modificationFunction Description: Change the permissions of a file or directoryThe number represented by the permissionR 4W 2X 1rwxrw-r-7 6 4Examplechmod g+w TstfileGrant Write permission to tstfile fileChmod-r 7777 TestfileModify directory Testfile and the files in the directory to have full perm
Command name: UseraddCommand path:/usr/sbin/useraddExecute permissions: RootSyntax: Useradd user nameFunction Description: Add new userExample: $ useradd YangmiCommand name: passwdCommand path:/USR/BIN/PASSWDExecute Permissions: All UsersSyntax: passwd user nameFunction Description: Set User passwordExample: $ passwd YangmiCommand name: WHOCommand path:/usr/bin/whoExecute Permissions: All UsersSyntax: WHOFunction Description: View logged in user informationExample: $ whoCommand name: wCommand pa
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.