linux创建文件夹

linux创建文件夹,第1张

在linux系统中,可以在连接linux系统,输入密码后,使用mkdir命令来创建文件夹。

工具/原料:

联想y7000

win10

linuxUbuntu6.02

1、点击连接linux

选择quick connect选项,来连接linux系统。

2、验证本人 *** 作

输入用户名和主机ip地址,点击connect。

3、输入密码

在新d窗输入密码,点击OK。

4、输入指令

输入mkdir hellodir指令,就可以创建文件夹了。

假设我们在/home里创建

1、创建一个叫test的文件夹

输入 cd /home 回车 就到了home目录;

输入 mkdir test 就可以了。

2、在文件夹里添加(就是创建 一个文件,例如a.txt)

输入 touch test/a.txt 回车。

3、删除

输入 rm -rf test/ 回车。

扩展资料:

一、LINUX通用命令:

1.date :print or set the system date and time

2. stty -a: 可以查看或者打印控制字符(Ctrl-C, Ctrl-D, Ctrl-Z等)

3. passwd: print or set the system date and time (用passwd -h查看)

4. logout, login: 登录shell的登录和注销命令

5. pwd: print working directory

6. more, less, head tail: 显示或部分显示文件内容.

7. lp/lpstat/cancel, lpr/lpq/lprm: 打印文件.

8. 更改文件权限: chmod u+x...

9. 删除非空目录:rm -fr dir

10. fg jobid :可以将一个后台进程放到前台。

Ctrl-z 可以将前台进程挂起(suspend), 然后可以用bg jobid 让其到后台运行。

job &可以直接让job直接在后台运行。

11. kill 的作用: send a signal to a process. eg: kill -9 发送的是SIG_KILL信号。。。 具体发送什么信号 可以通过 man kill 查看。

12. ps 的用法, ps -e 或 ps -o pid,ppid,session,tpgid, comm (其中session显示的sessionid, tpgid显示前台进程组id, comm显示命令名称。)

参考资料:LINUX命令-百度百科


欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/yw/8369298.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-04-15
下一篇 2023-04-15

发表评论

登录后才能评论

评论列表(0条)

保存