腾讯云
开发者社区
文档
建议反馈
控制台
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
登录/注册
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(9999+)
视频
沙龙
1
回答
perl:在perl中调用
chdir
并从系统调用
chdir
perl
、
chdir
、
qx
在我的perl脚本中,从Perl iteself中使用
chdir
命令可以很好地工作:但是使用
linux
的qx调用
chdir
命令不是这样的: qx(
chdir
$fold_path
浏览 3
提问于2014-12-05
得票数 0
1
回答
linux
-映像-泛型似乎被破坏了。
12.04
、
apt
、
dpkg
Running depmod.Use of
chdir
('') or
chdir
(undef) as
chdir
() is deprecated at /var/lib/dpkg/inf/
linux
-image-3.2.0-34-generic.postinst line 235.:
linux
-image-
浏览 0
提问于2012-12-28
得票数 3
回答已采纳
1
回答
C中的cd命令和
chdir
()的使用
c
、
linux
、
cd
我的任务是用C语言编写
linux
cd命令,我认为使用
chdir
()方法这很简单,但是我的目录并没有改变。有趣的是,
chdir
()的返回状态是0,而不是-1,这意味着
chdir
()没有失败。下面是我使用
chdir
()的两个例子ret返回1。 2.int ret =
chdir
(dir);
浏览 0
提问于2019-05-07
得票数 1
回答已采纳
2
回答
Python:使用输入和循环创建文件夹结构
python
、
loops
、
python-3.x
、
directory
- Fourth level #3 (Reports) import os, sys, errno if not os.path.exists(year): os.
chdir
(year) if not os.path.exists(knr): os.makedi
浏览 2
提问于2014-01-28
得票数 1
1
回答
mac上.screenrc中的
chdir
macos
、
gnu-screen
、
chdir
、
screenrc
我可以在
linux
的.screenrc中使用
chdir
。在mac和screenrc中使用
chdir
没有成功。 有人这么做过吗?
浏览 37
提问于2011-04-11
得票数 1
回答已采纳
1
回答
php中的
chdir
无法工作
php
、
chdir
我想在php中使用
chdir
更改目录,因为我需要在
Linux
中执行命令。我的当前目录是/var/www/httpdocs/website/admin,我想转到httpdocs的sub_directory docs.I,使用的绝对路径如下:
chdir
("/var/www/httpdocs我只能使用:
chdir
("../");获取网站,或者使用:
chdir
("/var&
浏览 3
提问于2013-10-15
得票数 1
2
回答
python os.
chdir
()不能多次使用吗?
python
、
python-3.x
当我第一次使用os.
chdir
()时,它可以工作,然后当我再次尝试使用它时,它不能工作,并给我一个错误。已创建以下文件。import osFile "<pyshell#8>", line1, in <module>FileNotFoundError:
浏览 0
提问于2017-06-15
得票数 0
3
回答
将变量传递给C (
Linux
)中的
chdir
()
c
、
linux
、
chdir
我在C程序中使用
chdir
()时遇到了问题-只有在
Linux
上运行时才有问题(在Mac上运行得很好)。我已经精简了我的代码。下面这样的代码运行良好:但是当我试图将它作为一个变量传递时,它不想工作。char *home_directory;
chdir
(home_directory); 主目录是从我代码中其他地方的文件中读取的,如果需要,我可以发布我是如何做到这一点的
浏览 0
提问于2011-11-10
得票数 1
回答已采纳
2
回答
Linux
守护进程:
chdir
("/")的替代方案?
linux
、
daemon
、
chdir
当守护进程时,应该通过
chdir
("/")将工作目录更改为"/“。有没有比省略
chdir
("/")更好的选择呢?
浏览 2
提问于2012-10-21
得票数 0
回答已采纳
2
回答
Python os.
chdir
()似乎不起作用
python
、
directory
我似乎无法在python中更改我的目录: os.
chdir
(r"C:\Users
浏览 0
提问于2013-08-15
得票数 7
1
回答
使用std::system启动进程时,是否可以指定工作目录?
c++
、
process
我想启动一个给定完整路径的可执行文件:在这种情况下,有没有办法指定一个工作目录?
浏览 3
提问于2013-07-09
得票数 1
回答已采纳
3
回答
确定目录是否是根目录
perl
我试图向上遍历目录树,搜索给定的目录名,如果找到目录,我应该
chdir
到它,否则会给出错误消息。
chdir
("..")) { return 0; }问题是当超越根时,
chdir
不会失败,所以如果找不到.当然,我可以测试/,因为我在
Linux
上,但我想以一种独立于系统的方式进行测试。
浏览 3
提问于2014-07-27
得票数 1
回答已采纳
2
回答
如何将Python程序的当前工作目录更改为用户的主目录?
python
、
chdir
我找到了os.
chdir
()来更改程序的工作目录。现在,我需要学习如何访问当前用户的环境变量,如$HOME。os.
chdir
("$HOME")FileNotFoundError: [Errno 2] No such file
浏览 1
提问于2019-07-16
得票数 0
回答已采纳
1
回答
通过C++程序更改shell的目录
c++
、
linux
、
shell
、
directory
我试图编写一个简单的C++程序来执行
Linux
命令。我不得不更改目录(
chdir
和cd之类的命令不起作用)。到目前为止,这就是我所拥有的:system("
chdir
Desktop");
浏览 2
提问于2014-02-05
得票数 2
回答已采纳
1
回答
如何在
Linux
中使用
chdir
函数?
c
、
linux
、
unix
、
chdir
if (argc < 2) printf("Usage: %s <pathname\n",argv[0]); } { return 0; else exit(1);
浏览 3
提问于2015-09-10
得票数 0
回答已采纳
2
回答
使用c语言更改终端目录
c
、
linux
、
terminal
我正在尝试使用c语言更改我的
linux
终端的目录。问题是我使用的是线程。我曾尝试使用
chdir
(),但它不起作用,是的,
chdir
()也是一个进程函数。实际上,我正在尝试实现的是,我正在尝试编写一个编译
Linux
内核的多线程程序,如果不指定目录,这是不可能的(我曾尝试在不指定目录的情况下实现,但失败了:)提前感谢:)
浏览 2
提问于2014-11-04
得票数 0
1
回答
CLion C++无法读取/打开项目目录中的纯文本文件
c++
、
cmake
、
clion
我在项目目录中有.in文件,当我使用绝对路径打开该文件时,它可以工作,但相对路径不工作。main.cppmilk2.inCMakeLists.txtproject(project)set(SOURCE_FILES main.cpp )main.cpp #include
浏览 0
提问于2016-07-19
得票数 1
3
回答
syscalls位于glibc source中的什么位置
c
、
linux
、
glibc
因此,我查看了
linux
glibc源代码,但我看不出它实际上在哪里做任何事情。下面是来自io/
chdir
.c的代码,但它代表了许多源文件。这里发生了什么事?显然,我遗漏了一些东西。errno.h>#include <unistd.h> int return -1;
浏览 49
提问于2011-06-29
得票数 25
回答已采纳
3
回答
MD和MKDIR批处理命令有什么区别?
windows
、
batch-file
、
cmd
、
dos
、
mkdir
这两个命令都创建文件夹。我,MKDIR可以创建甚至子文件夹。
浏览 7
提问于2015-09-03
得票数 19
回答已采纳
1
回答
chdir
()可以接受相对路径吗?
c
、
linux
、
chdir
在
linux
上的C中,
chdir
()函数可以接受相对路径吗?
浏览 1
提问于2011-02-15
得票数 5
回答已采纳
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
【数学函数分享】PHP函数chdir()分享(2021-3-5)
dos命令cd图文教程,改变当前目录路径chdir,bat批处理脚本
Linux DNS 查询剖析 Linux 中国
Manjaro Linux 22.0 发布|Linux 中国
Alpine Linux 3.18 发布|Linux 中国
热门
标签
更多标签
云服务器
即时通信 IM
ICP备案
对象存储
实时音视频
活动推荐
运营活动
广告
关闭
领券