共 6 篇文章 |
|
Bash 基础知识系列 #7:If Else 语句 | Linux 中国导读:如果这样,那就那样,否则就……。了解了 Bash Shell 脚本中的 if-else 语句后就明白了。Bash 支持 if-else 语句,以便你可以在 shell 脚本中使用逻辑推理。你是否注意到,当数字为偶数时,脚本会告诉你,但当数字为奇数时,脚本不会显示任何内容?练习 1:编写一个 Bash Shell 脚本,检... 阅2 转0 评0 公众公开 23-08-18 12:12 |
[原]linux内置命令 linux内置命令查看所有内置命令。compgen:显示所有可用的命令、别名和函数。查看内置命令详情。geoff@Geoff:~$ help exitexit: exit [n] Exit the shell. Exits the shell with a status of N. If N is omitted, the exit status is that of the last command executed.geoff@Geoff:~$ type echoecho is a shell builtingeoff@Geoff... 阅7 转0 评0 公众公开 23-08-12 16:13 |
CentOS与Windows共享文件夹。选择主机路径,即Windows系统中的文件夹,也可以新建一个指定位置的文件夹。进入 CentOS,进入mnt文件夹(cdmnt,也可以在根目录直接创建文件夹:mkdir /mnt/share)挂载:mount -t fuse.vmhgfs-fuse .host:/ /mnt/share/ -oallow_other.(命令的详解在最后,如果想自定义 Linux 中 共享文件夹的位置,可以参照最后... 阅2804 转9 评0 公众公开 20-06-21 13:47 |
virtualbox 安装Oracle Linux.进入 Oracle Linux 官网。进入官网,选择download Oracle Linux.输入Linux,点击search按钮:在virtualbox中新建虚拟机:virtualbox 虚拟机安装时产生的问题。管理-->全局设置-->常规 修改默认虚拟电脑位置, 修改到盘空闲较多的地方.另: 在建虚拟机时推荐使用动态分配,这样不会马上把硬盘空间给占用了。 阅276 转0 评0 公众公开 20-05-22 11:21 |
[root@localhost ~]# ssh。firewall-cmd --list-ports.[root@localhost ~]# firewall-cmd --list-ports /*查看已对外开放的端口*/[root@localhost ~]# firewall-cmd --zone=public --remove-port=8080/tcp --permanent.[root@localhost ~]# firewall-cmd --list-ports /*再次查看开放的端口情况*/[root@localhost ~]# firewall-cmd --list-port... 阅399 转0 评0 公众公开 20-05-22 10:50 |
[原]创建共享文件夹 root@kali:~/Desktop# mkdir /mnt/share.root@kali:~/Desktop# mount -t fuse.vmhgfs-fuse .host://mnt/share/ -o allow_other.root@kali:~/Desktop# cd /mnt/share.root@kali:/mnt/share# ls.root@kali:/mnt/share# ls -l.root@kali:/mnt/share# mount -t fuse.vmhgfs-fuse.host:/Share /mnt/share/ -o allow_other.root@kali:/mnt/share# mou... 阅225 转1 评0 公众公开 20-05-21 19:19 |