我希望在运行命令后按两次回车键,以使终端更易于阅读。
[root@localhost ~]# fdisk -l /dev/sda1
Disk /dev/sda1: 1 GiB, 1073741824 bytes, 2097152 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
[root@localhost ~]# RETURN
[root@localhost ~]# RETURN
[root@localhost ~]# fdisk -l /dev/sda1
Disk /dev/sda1: 1 GiB, 1073741824 bytes, 2097152 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
[root@localhost ~]# RETURN
[root@localhost ~]# RETURN
[root@localhost ~]# NEW COMMAND
这可能吗?
答案1
按两次回车键即可完成此操作,但这并不是您真正想要的。
请尝试以下操作:
$ export PS1="\n\n$PS1"
如果您想自己执行此操作,请.profile
在您的主目录中进行编辑。如果您想在整个系统范围内执行此操作,请将其放入/etc/profile
.