当前位置:网站首页>Ordinary users use vscode to log in to SSH and edit the root file
Ordinary users use vscode to log in to SSH and edit the root file
2022-06-29 13:16:00 【Know the old code】
Ordinary users use vscode Sign in ssh edit root file
Problem description :
brothers , Please ask me a question .
I want to log in to my Centos7 Development . I only have an ordinary account number opc, This account has sudo jurisdiction . But I can't just root Log in to this computer Centos7.
I use Vscode Of remotessh Log in to this computer Centos7, The account at the time of login is opc,opc The account can be used normally code test.md The editor is located at /home/opc/test.md This file .
But you can't use sudo code /root/test edit root The file of .
I try to use sudo code /root/filename To edit this file , Tips sudo: code: command not found.

Who has a good solution ?
边栏推荐
- ZALSM_EXCEL_TO_INTERNAL_TABLE 导入数据大问题解决
- Redis deletion policy and eviction algorithm
- clickhouse数据库使用jdbc存储毫秒和纳秒
- ZALSM_ EXCEL_ TO_ INTERNAL_ Solving the big problem of importing data from table
- C#实现图的邻接矩阵和邻接表结构
- Cvpr2022 | a convnet for the 2020s & how to design neural network Summary
- Principle and Simulation of bind
- C # realizes the first order traversal, middle order traversal and second order traversal of binary tree
- Testing -- automated testing: about the unittest framework
- C语言字符函数
猜你喜欢

Tutorial on building pytoch model from zero (V) writing training process -- some basic configurations

倍福PLC通过CANOpen通信控制伺服

Don't build the wheel again. It is recommended to use Google guava open source tool class library. It is really powerful!

Comparison table of LR and Cr button batteries

qt 自定义控件 :取值范围

超 Nice 的表格响应式布局小技巧

QT custom control: value range

Cvpr2022 | panopticdepth: a unified framework for depth aware panoramic segmentation

QT signal and slot

OPC of Beifu twincat3_ UA communication test case
随机推荐
Schiederwerk Power Supply repair smps12 / 50 pfc3800 Analysis
Cvpr2022 | a convnet for the 2020s & how to design neural network Summary
netdata邮件告警配置
安装typescript环境并开启VSCode自动监视编译ts文件为js文件
LR、CR纽扣电池对照表
C#实现二叉排序树定义、插入、构造
C#通过中序遍历对二叉树进行线索化
Record the process of a solid-state update and system migration debug
【云驻共创】工业智慧“大脑”,老厂焕新的加速秘籍
SCHIEDERWERK電源維修SMPS12/50 PFC3800解析
Simple introduction to matlab
qt json
Don't build the wheel again. It is recommended to use Google guava open source tool class library. It is really powerful!
STK_GLTF模型
Memorized Function
leetcode 903. Effective arrangement of Di sequences
CVPR2022 | 重新审视池化:你的感受野不是最理想的
QT signal and slot
Interesting talk on network protocol (II) transport layer
C#实现堆栈结构的定义、入栈、出栈