Linux sudo command

Source: Internet
Author: User

sudo command

Put ("10", "amount exceeding 30,000 caps");

passwd Modifying the sudo password * * * * It is not necessary to enter the password again for some time.

Cd/usr/local/tomcat_xxl/webapps/root/web-inf/classes/conf

passwd

sudo rm-f conf.properties

Ls-l
sudo mv ~/conf.properties.
sudo bin/startup.sh basic commands

# 160906.txt


/usr/local/tomcat_xxl/webapps/root/web-inf/classes/com/xx/yy/zz/controller

##
sudo mv/home/name/*.class/usr/local/tomcat_xx/webapps/root/web-inf/classes/com/xx/yy/zz

# #点号代表当前目录
sudo mv/home/name/*.class.

sudo mv ~/*.class.

/usr/local/tomcat_xx/webapps/root/web-inf/classes/com/xx/yy/zz/controller

Cd/usr/local/tomcat_xx/bin
sudo./startup.sh
sudo./shutdown.sh

Remove sudo rm-f withdrawalsqscontroller*.class * Number is a wildcard character

sudo ps auwx | grep Java View process

PWD to view the current directory.

View logs: sudo tail-f logs/catalina.out

# 160920

The difference between Linux/and ~
/is the root directory, ~ is home
If you are logged in as a root account,/root/,/Yes/

If you log in as name, ~ is/home/name/,/Yes/

Reference: http://www.360doc.com/content/14/0510/22/17302338_376516638.shtml

Finishing 11:09 2016/9/20

Linux sudo command

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.