Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The reason and solution of unable to use Command in linux system

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

The reason for this problem is that the environment variables of the system are not configured correctly. There are many reasons, such as system upgrade, improper operation and so on, which lead to the overwriting and modification of environment variables. There are two ways to solve this problem.

Method 1: enter the following directly in the linux command line interface, and then enter (import environment variables and the storage address of common shell commands):

Export PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin

Method 2: if all the commands on the system are not available, you can also use the absolute command vi to open profile

/ bin/vi / etc/profile

Add the environment variable address to the configuration file of the system

Export PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin

These are the details that linux system commands cannot be used. Please pay attention to other related articles for more information.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report