2024年9月7日

在Linux中,可以使用以下命令来获取脚本所在的目录:

摘要: 在Linux中,有几种方式可以获取当前正在执行的脚本所在的路径。这些方法依赖于你正在使用的shell(比如bash)或者脚本语言(比如Python, Perl等)。以下是一些常见的方法,特别是在bash脚本中获取脚本路径: ### 1. 使用`$0`和`dirname`命令 在bash脚本中,`$0 阅读全文

posted @ 2024-09-07 23:20 zxddesk 阅读(542) 评论(0) 推荐(0)

samba不允许一个用户使用一个以上用户名与一个服务器或共享资源的多重连接

摘要: 原文 https://www.cnblogs.com/senior-engineer/p/4528378.html 参考:http://blog.chinaunix.net/u/19637/showart_491257.html怎么解决呢? 事实上这个不是samba的限制。是Windows的限制。始 阅读全文

posted @ 2024-09-07 22:19 zxddesk 阅读(1512) 评论(0) 推荐(0)

ubuntu 22.04 设置共享文件夹

摘要: sudo apt-get install python3 sudo apt-get install samba nmtui //这一步是改IP 设置samba,可以跳过设置ip https://www.cnblogs.com/zxdplay/p/17066923.html 将虚拟机网络设置为桥接模式 阅读全文

posted @ 2024-09-07 21:14 zxddesk 阅读(163) 评论(0) 推荐(0)

Ubuntu 22.04 镜像源

摘要: #sudo apt-get update # aliyundeb http://mirrors.aliyun.com/ubuntu/ lunar main restricted universe multiversedeb-src http://mirrors.aliyun.com/ubuntu/ 阅读全文

posted @ 2024-09-07 20:50 zxddesk 阅读(602) 评论(0) 推荐(0)

怎么查看ubuntu版本—查看Ubuntu版本方法

摘要: 怎么查看ubuntu版本—查看Ubuntu版本方法 城市野鹿 技术教程 2024-05-15 0 3,281 怎么查看ubuntu版本—查看Ubuntu版本方法 Ubuntu是一种基于Debian的开源操作系统,广泛应用于个人电脑、服务器和云计算平台。对于使用Ubuntu的用户来说,了解自己的系统版 阅读全文

posted @ 2024-09-07 20:47 zxddesk 阅读(14570) 评论(0) 推荐(0)

导航