小编mur*_*uru的帖子

string.h 没有手动输入

我试图找到“string.h”的手动条目,我安装了 GNU gcc。但是当我输入时man string.h,它显示我no manual entry for string.h,我不确定出了什么问题?有人可以帮我吗?谢谢!

documentation c manpage 16.04

1
推荐指数
1
解决办法
1854
查看次数

“startx”在哪里叫?

我知道 X11 将通过startx. startx位于/usr/bin/startx. 那么第一个调用到startx哪里呢?我想确切地知道哪个脚本正在运行startx

command-line xorg scripts

1
推荐指数
1
解决办法
3725
查看次数

一种更有效的方式来对 netstat 命令的结果进行排序

我试图只对与 firefox 无关的 IP 地址进行排序,并将它们写入一个文件中。我结束了这个命令行,完成了这项工作,但我想知道是否有办法做得更好。

netstat -antp | grep -E ?:80 | grep -v firefox > ipadress.txt &&  awk '{print $5}' ipadress.txt > ipadress1.txt
Run Code Online (Sandbox Code Playgroud)

有没有办法通过删除 :80 端口来获得更干净的输出?我使用了ipadress1.txt因为当我试图覆盖它时它不起作用。

command-line text-processing netstat

1
推荐指数
1
解决办法
818
查看次数

挂起时如何强制重启ubuntu系统?

ubuntu死机无法进行任何操作的情况下重启系统的命令是什么?

freeze

1
推荐指数
1
解决办法
9753
查看次数

如何在 Ubuntu 16.04 LTS 中安装扩展名为 .sh 的文件?

我有一台 HP 32 位笔记本电脑,操作系统为 ubuntu 16.04 lts。我想安装一个.sh附带的软件(例如abcd.sh)。现在我在下载文件夹中下载该文件,然后从终端首先转到该文件夹​​并运行:

$ cd Download
$ ./abcd.sh
bash: ./abcd.sh: Permission denied
Run Code Online (Sandbox Code Playgroud)

所有这些命令有什么问题吗?我怎样才能执行该文件?

permissions command-line bash

1
推荐指数
1
解决办法
1万
查看次数

Python 3.6 怎么样?

谁能告诉为什么 Python 3.6 在 Zesty 中不可用?每当我尝试更新它时,最新的是 3.5.3。3.6有问题,还是他们在等3.7?

python3 17.04

1
推荐指数
1
解决办法
1799
查看次数

如何运行进程状态、ps、实用程序

如何运行该ps 实用程序

thufir@arrakis:~$ 
thufir@arrakis:~$ ps -aux
The program 'psql' is currently not installed. You can install it by typing:
sudo apt install postgresql-client-common
You will have to enable the component called 'main'
thufir@arrakis:~$ 
thufir@arrakis:~$ 
thufir@arrakis:~$ ps aux
The program 'psql' is currently not installed. You can install it by typing:
sudo apt install postgresql-client-common
You will have to enable the component called 'main'
thufir@arrakis:~$ 
Run Code Online (Sandbox Code Playgroud)

有时它比top; 不知道为什么ps不在路径中,因为它是全新安装。看起来很奇怪。

我怎样才能ps正常工作?

command-line ps

1
推荐指数
1
解决办法
839
查看次数

从 Gnome 搜索框运行 shell 命令

运行 Ubuntu Gnome 17.04。

我的问题可能在语法上是错误的。所以,请原谅标题的措辞。这里有更详细的解释。

我想按 Window 键,然后在搜索框中键入 shell 命令,例如 mv file1 dir2 并按 Enter。这样命令就被执行了。

我怎么做?我尝试输入该命令,但什么也没发生。

gnome-shell

1
推荐指数
1
解决办法
2313
查看次数

如何更改主机名?

我名字的主机名很长,很奇怪。如何更改我的系统的主机名?

目前,我的主机名是

himanshu@himanshu-Lenovo-ideapad-100-15IBD:~$

有什么办法可以缩短或完全改变它吗?

bash hostname prompt

1
推荐指数
1
解决办法
715
查看次数

无法使用 ubuntu 终端解压文件

我收到以下错误消息。zip 文件(5GB)可能太大

Archive:  /home/wing92518/Documents/simulation_set_1_result/replication_1.zip
warning [/home/wing92518/Documents/simulation_set_1_result/replication_1.zip]:  849850736 extra bytes at beginning or within zipfile
  (attempting to process anyway)
error [/home/wing92518/Documents/simulation_set_1_result/replication_1.zip]:  start of central directory not found;
  zipfile corrupt.
  (please check that you have transferred or created the zipfile in the
  appropriate BINARY mode and that you have compiled UnZip properly)
Run Code Online (Sandbox Code Playgroud)

unzip

1
推荐指数
1
解决办法
6151
查看次数