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
- linux命令-- ps命令
- 【linux命令】cd命令
- linux命令:crontab命令
- Linux 命令 --- df命令
- linux命令-touch命令
- 【linux命令】tr命令
- LINUX命令:more命令
- cmd命令,linux命令
- Linux命令-tar命令
- linux命令:wc命令
- linux命令:more命令
- linux命令:gzip命令
- linux命令:du 命令
- linux命令:wc命令
- Linux命令: PS命令
- Linux命令:wc命令
- Linux命令:lsof命令
- Linux命令:rm 命令
- ]Vi/Vim查找替换使用方法
- Rxjava简单操作字符学习
- ffmpeg基本用法
- Selenium学习14--KeyBoardUtil
- Eclipse配置PyDev插件
- linux 命令
- svn E1750002
- CentOS 7安装zabbix3.0(监控本机)
- 关于与运算和取余之间的关系
- atlassian-jira-confluence-bitbucket破解
- php判断变量是否是整数的两种方法
- web.xml配置详解
- 推出一款高端手机USB智能识别快速充电控制芯片方案
- linux练习-unit4