Frequently used Linux command records during self-work ###################### Linux ######### ################## 1. add/Remove user useradd-d/home/cxz-s/bin/bash-mcxz | userdel-rcxz2 in ubuntu. set... frequently used Linux command records during self-work ###################### Linux ######### ################## 1. add/delete user useradd-d/home/cxz-s/bin/bash-m cxz | userdel-r cxz 2 in ubuntu. add the user to sudoer. sudo adduser cxz sudo or use sudo Upload do 3. view the file size du-sh 4. view disk partitions and format fdisk-l fdisk/dev/sdb mkfs-t ext4/dev/sdb5. manual mount, and automatically mount-t ext4/dev/sdc5/mnt/new_disk1 echo "/dev/sdb5/mnt/disk1 ext4 defaults 1 1">/etc/fstab ### ################### Java #################### ####### 1. view jar-tvf XXX. jar 2. extract the specified file in the jar package jar-xvf ReadWriteFile-1.0-SNAPSHOT.jar XXX 3. execute the jar package java-jar jarfile ---- in this case, jarfile must not rely on other jars, including its own lib. you must specify the main function in MANIFEST. in MF, all classpath in this mode are invalid java-classpath. :. /.. /lib/jedis-2.1.0.jar :. readWriteFile-1.0-SNAPSHOT-job.jar com. cxz. test. readWriteFile (java-cp can also be used) ###################### Hadoop ################# ######## hadoop job-kill job_id hadoop jar XXX. jar arg0 arg1 arg2...
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