Linux Issue Highlights

Source: Internet
Author: User

1. Execute script hint ls command does not exist?

The script defines the environment variable path as a string, causing the system to not find the LS command based on path

2. How can I see if the port is occupied?

lsof-i:6789

4. How to view the current system?

Lsb_release-a

5. How do I know which installation package A command comes from?

Rpm-qf/bin/pwd

6. ldd/usr/local/bin/memcachedb file cannot be found?

Export Ld_library_path= $LD _library_path:/usr/local/lib:/lib64/

7. How can I see how long the process is running?

Ps-a-opid,stime,etime,args | grep cron

8, start NFS error?

Check whether the Portmap is started, CENOS6 has been renamed to Rpcbind, start Rpcbind,service rpcbind start First, and then Start Nfs,service NFS start.

9, how to release the port?

LSOF-I:7100, check which process is occupied by the port, kill it

10. How to find files and delete them?

find/data/stb/log/-name "*.log" | Xargs RM-FR

Linux Issue Highlights

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.