无法访问打开的/arch/x86/syscalls/syscall_32.tbl [英] Can't access the open /arch/x86/syscalls/syscall_32.tbl
问题描述
在我转到内核后,我正在写此命令.当我编译它时,它没有显示任何列表.还有其他命令可以打开列表吗?
As i'm writing this command after i shift to the kernel. When i compile it, it wasn't showing any list.Is there any other command to open the list ?
open /arch/x86/syscalls/syscall_32.tbl
推荐答案
错误
从文件路径中删除第一个/
字符(应为相对路径).
现在,使用 file
工具检查该文件是否存在:
Now, check that this file exists, using file
tool:
$ file arch/x86/syscalls/syscall_32.tbl
打印文件
如果文件存在,则可以使用 cat
或 less
命令进行打印.例如:
Print file
If file exists, you can print it using cat
or less
commands. E.g.:
$ less arch/x86/syscalls/syscall_32.tbl
您也可以在编辑器中打开此文件,例如使用 vi
命令.
You can also open this file in editor, e.g. using vi
command.
此文件随附Linux内核源代码.它是由此提交,在内核3.3中.因此,您应该使用 3.3 或更高版本的内核来获取此文件.
This file comes with Linux kernel sources. It was added by this commit, in kernel 3.3. So you should use kernel version 3.3 or above to have this file.
通过此处):
$ git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
$ cd linux/
现在,您应该确定要使用哪个版本.这取决于您的任务(您打算如何进一步使用此内核).如果打算在PC Linux发行版上使用它,我会说选择与您的发行版内核最接近的版本:
Now you should figure out which version to use. It depends on your task (how you are planning to use this kernel further). If it's intended for using on PC Linux distribution, I'd say pick nearest version to your distribution kernel:
$ uname -a
您可以通过发出下一个 Git 命令来查看所有可用版本:
You can see all versions available by issuing next Git command:
$ git tag
现在,您可以切换到所选的版本(在上述命令的输出中).例如.您可以像这样切换到 v3.3
:
Now you can switch to version you have chosen (in output from command above). E.g. you can switch to v3.3
like that:
$ git checkout v3.3
切换到版本 3.3 或更高版本,您的内核源将具有 arch/x86/syscalls/syscall_32.tbl
文件:
Switch to version 3.3 or above and your kernel sources will have arch/x86/syscalls/syscall_32.tbl
file:
$ less arch/x86/syscalls/syscall_32.tbl
这篇关于无法访问打开的/arch/x86/syscalls/syscall_32.tbl的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!