linux 命令

来源:互联网 发布:怎么虚拟mac地址 编辑:程序博客网 时间:2024/06/10 07:02

用户能够运行命令但sudo 命令显示找不到文件

[root@solr3 anaconda3]#sudo jupyterhubsudo:jupyterhub:找不到命令

解决办法:创建文件软连接

#which 查找文件位置[root@solr3 anaconda3]# which jupyterhub/root/anaconda3/bin/jupyterhub[root@solr3 anaconda3]# sudo which jupyterhubwhich: no jupyterhub in (/sbin:/bin:/usr/sbin:/usr/bin)[root@solr3 anaconda3]# sudo ln -s /root/anaconda3/bin/jupyterhub /usr/bin/jupyterhub[root@solr3 anaconda3]# sudo jupyterhub 

显示一个文件权限

[root@solr3 anaconda3]# ls -l jupyterhub_config.py-rwxrwxrwx. 1 root root 693 10月 31 13:19 jupyterhub_config.py#chmod更改权限[root@solr3 anaconda3]# chmod 600 jupyterhub_config.py[root@solr3 anaconda3]# ls -l jupyterhub_config.py-rw-------. 1 root root 693 10月 31 13:19 jupyterhub_config.py#ll 命令显示文件夹中所有文件权限[root@solr3 anaconda3]# ll总用量 184drwxrwxrwx.   2 root root  8192 10月 28 14:37 bindrwxrwxrwx.   2 root root  8192 10月 28 13:17 conda-metadrwxrwxrwx.   3 root root    19 10月 28 12:57 doc
0 0
原创粉丝点击