Learn about linux commands for hadoop administration, we have the largest and most updated linux commands for hadoop administration information on alibabacloud.com
Linux is very powerful, and the manual is divided into sections, which can be used to specify a different section to navigate by using the man, each of which has the following meanings:
1–user Commands General user commands
2-system Calls System invoke commands, such as open,write (through this,
The Linux command line attracts most Linux enthusiasts. A normal Linux user typically has about 50-60 commands to handle daily tasks. Linux commands and their transformations are the most valuable treasures for
• Format of commands • Command "Options" "Parameters" • Note • 1. Use a space separator • 2. Supports up to 256 characters clear: Clean screen, you can use Ctrl+l. Pwd:print working Director (prints the current working directory) cd:change directory switch path. /: root directory •: current directory ·: The parent directory of the current directory ~: Represents the current home directory CD "director name" (directory name) to take the path · 1) Absol
//create Netseek this directory. Tar decompression CommandEG:TAR-ZXVF nmap-3.45.tgz//unzip this into the nmap-3.45 directory.Finger can allow users to query some other user's informationEg:finger//View the user's usage profileFinger root//view root informationThe function of some major directories under Linux/bin binary Executable command/dev Device Special files/etc system administration and configuration
experiment 3:unix/linux permissions and file management commands
1. Experimental purposes
Unix/linux permissions and file management commands;
The use of Unix/linux file system;
Other commands related to file system
Organize some basic system administration commands for Linux as a memo=========================================================================To view a file or edit a file:=========================================================================View files, folders, and read and write execution permissions in the current directory$ llOutput Description: (Take mnt
/linux, it is not recommended to log into the system directly using the root account.Exit: Exit terminal (open with ctrl+alt+t)WHOAMI: View the current user's identity (view system user information: CAT/ETC/PASSWD)Who: View user information for all currently logged in systemsOptions:-Q (--count) shows only the number of user names and users logged in-U Displays the time interval that the user last action to now--heading Display column headingsSwitch U
Tags: INI win backup print system start change query usr fileLlinux basic commands and personal Linux file sharingOne,root username @ delimiter Kingle host name ~ current directory # root privilege $ not assigned rights usertwo, writing format: space [command parameter] space path third, the Linux directory structureRoot---Some of the core files used when startin
] ~]# Help CDCD:CD [-l|-p] [dir]Change the shell working directory.External command help:①] #命令--helpsuch as: [[email protected] pts]# ls--helpUsage:ls [OPTION] ... [FILE] ...List information about the FILEs (the current directory by default).Sort entries Alphabetically if none Of-cftuvsux nor--sort.②] #man command[[email protected] pts]# Man # command//#表示章节The man command uses the format:Man [-ACDFFHKKTWW] [--path] [-M system] [-p string] [-C Config_file] [-M pathlist] [-P pager] [-b browser]
Common Linux commands for project deployment, configuration, and troubleshootingI. Common commands
Ls display file or directory-L list file DETAILS l (list)-A: List all files and directories in the current directory, including hidden a (all)Ll will list all the file information under the file, including the detailed information of the hidden file. The same effect
labelT change the system ID of a partitionU Change Display recording UnitV Verify partition TableW Save exitX additional features (experts only)
Mkfs-t EXT4/DEV/SDB1#格式化分区
Fsch Partition Device file name#修复文件系统
------------------------------------------------------------------------------------------------System administration Commands
Stat#显示文件的相关信息, more detailed than the LS command disp
in order to and QQ space synchronization, also write the fourth day, the front days will be released tomorrow, it was intended to take a day to learn something to record, through a friend to give the proposal to send words slightly systematized, from Big Data need Linux Foundation, To offline data analysis including Hadoop, Hive, Flume, HBase, and so on, to real-time data analysis including Storm, Kafka, Re
We often find a file in Linux, but do not know where to put it, you can use some of the following commands to search:Which view the location of the executable file.Whereis View the location of the file.Locate to view the file location with the database.Find actual search hard disk query file name.1.whichThe purpose of the which command is to search for the location of a system command in the path specified
decompress, just replace the above command TAR-CVF/TAR-ZCVF/TAR-JCVF "C" in the "X".Shut down/Restart the machineShutdown-R shutdown Restart-H shutdown does not restartNow turn the machine off.Halt shut down the machineReboot restartLinux PipelinesUse the standard output of one command as the standard input for another command. That is, the combination of several commands to use, the latter command in addition to the results of a previous command.Exa
and user groups for changing filessudo chown [-r] Owner[:group] {file| Directory}For example: Also take jdk-7u21-linux-i586.tar.gz as an example. belongs to user Hadoop, group HadoopYou want to switch the users and groups to which this file belongs. You can use commands.sudo chown root:root jdk-7u21-linux-i586.tar.gzFile Rights ManagementThree basic permissionsR
/HOME/ABC packaged and compressed with gzipTAR-JCVF/HOME/ABC.TAR.BZ2/HOME/ABC packaged and compressed with bzip2Of course, if you want to decompress, replace the above command directlyThe "C" in the TAR-CVF/TAR-ZCVF/TAR-JCVF will be replaced by "X".Shut down/Restart the machineShutdown-R shutdown Restart-H shutdown does not restartNow turn the machine off.Halt shut down the machineReboot restartLinux PipelinesUse the standard output of one command as the standard input for another command. That
*.javaAdd a Tom user, set it to belong to the Users group, and add comment informationStep through: Useradd TomUsermod-g users TomUsermod-c "HR Tom" TomOne-Step completion: Useradd-g users-c "hr Tom" TomSet the password for the Tom userpasswd TomChange Tom User's login name to TomcatUsermod-l Tomcat TomAdd tomcat to the SYS and root groupsUsermod-g Sys,root TomcatView the group information for TomcatGroups TomcatAdd a Jerry user and set a passwordUseradd Jerrypasswd JerryAdd a cross-America gro
10 lines of content (configurable ).19. Run the command as a super Administrator
sudo rm a.txtDelete an object as an administrator20. view port usage
netstat -tln | grep 8080View port 8080 usage21. Check which program the port belongs.
lsof -i :808022. view the process
ps aux|grep javaView java Processes
ps auxView all processes23. list the contents of a directory in a tree chart
tree a
Ps: Use the tree Command in Mac24. File Download
wget http://file.tgzInstall the wget command on mac
curl htt
decompress, just replace the above command TAR-CVF/TAR-ZCVF/TAR-JCVF "C" in the "X".Shut down/Restart the machineShutdown-R shutdown Restart-H shutdown does not restartNow turn the machine off.Halt shut down the machineReboot restartLinux PipelinesUse the standard output of one command as the standard input for another command. That is, the combination of several commands to use, the latter command in addition to the results of a previous command.Exa
packaged and compressed with bzip2Of course, if you want to decompress, just replace the above command TAR-CVF/TAR-ZCVF/TAR-JCVF "C" in the "X".Shut down/Restart the machineShutdown-R shutdown Restart-H shutdown does not restartNow turn the machine off.Halt shut down the machineReboot restartLinux PipelinesUse the standard output of one command as the standard input for another command. That is, the combination of several commands to use, the latter
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.