导航:首页 > 程序命令 > linux退出命令行全屏

linux退出命令行全屏

发布时间:2022-12-24 16:55:31

⑴ 虚拟机装的linux如何跳出全屏

单的——虚拟机——安装VMware Tools,在弹出的对话框中选择“安装”。这时,在Ubuntu下会自动加载Linux版的VMware Tools的安装光盘镜像。你会看到虚拟机的桌面上出现了一个名为VMware Tools的光盘图标,并且被自动打开。其中包括VMwareTools-5.3.3-34685-i386.rpm和VMwareTools- 5.3.3-34685.tar.gz两个文件。

.rpm文件是给Red Hat准备的,我们只需要.tar.gz的那个,并把它拷贝到一个文件夹中(因为光驱是不可写的)。

$ tar zxf VMwareTools-5.3.3-34685.tar.gz(回车后系统会把那个.tar.gz文件解压缩

$ cd vmware-tools-distrib(回车后目录将转换到解压缩后的那个文件夹)

$ sudo ./vmware-install.pl(回车后会提示输入你的密码,表明你将以更高级权限执行一个动作——安装软件;再次回车后安装开始)

经过一番确认回车后(相当于在Windows里安装软件时所填答的诸多对话框,我们这里均采用缺省设置),直到最后出现“Enjoy——the VMware team”的字样后,VMwareTools终于安装完成了。

如果你使用的是VMware Workstation 6.0.0,现在你应该已经能看到VMware Tools安装后的效果了:鼠标再也不需要用Ctrl+Alt切换于虚拟与现实之间,一切过渡得那么自然;虚拟机的分辨率也能依窗口的大小来自动适应,一切显得那样和谐。但我们这里使用的是VMware Workstation 5.5.3,所以暂时你还看不到什么,让我们来做一下最后的设置吧。

在VMware Workstation 5.5.3里,Ubuntu下的VMware Tools安装之后是要靠手动执行/usr/bin/vmware-toolbox才能显示出效果的。你可以通过在终端中输入如下命令来运行它:

$ /usr/bin/vmware-toolbox

但如果你嫌麻烦,我们就需要让vmware-toolbox实现开机自动运行。点击Ubuntu菜单:System——首选项——会话—— Startup Programs,Add一个Name叫“vmware-toolbox”,Command是“/usr/bin/vmware-toolbox”的启动程序。这样每次开机后就能自动运行VMware Tools了。重启Ubuntu看看效果吧!(注意:vmware-toolbox并不是在后台隐藏运行的,启动后不要关闭)

25.PNG

VMware Tools固然是个好东西,但也有副作用,比如说:虚拟机中的鼠标的滚轮不好使了。我们这样解决这个问题,还是打开终端,输入:

$ sudo gedit /etc/X11/xorg.conf

这个命令使系统以root权限打开鼠标配置文件/etc/X11/xorg.conf。把文件中的

Option “Protocol” “ps/2”

改成

Option “Protocol” “IMPS/2”

重启Ubuntu搞定。

二、设置分辨率:

1、cd /usr/bin

使用此命令,进入/usr/bin目录;

2、ls *.pl

使用此命令,查找vmware-config-tools.pl文件;

3、./vmware-config-tools.pl

运行vmware-config-tools.pl文件;

4、设置分辨率

输入相应的数字回车即可,感觉设置的与原系统一样就可以了;

5、重启虚拟机。

三、压缩虚拟机空间

虚拟机随着使用,空间会越来越大,而且就算删掉了其中的文件,空间也不会减少,可以用vmware tools 的shrink, 执行 vmware-toolbox,然后用shrink进行压缩就可以了,效果挺不错的,不过时间有点长。
另外,团IDC网上有许多产品团购,便宜有口碑

⑵ redhat8怎么退出满屏模式

按 下面的步骤去做,改变分辨率。你是在虚拟机下面装的吧?xp系统下的虚拟机中安装了linux后,虚拟机VMware中的linux界面太小,是由于linux分辨率太低(通常为800×600)造成的,可以通过安装VMware Tools来更改分辨率到1024×768来解决这个问题,下面说明安装VMware Tools并配置分辨率的步骤:1.安装工具。让虚拟机运行于窗口状态,不要全屏,按Ctrl+Alt让鼠标释放出来。在VMware的菜单栏上选择"虚拟机/安装虚拟机工具(VM/Install VMware Tools...)"。然后切换到客户操作系统,即Linux。2.挂载光盘。# mount /dev/cdrom /mnt/cdrom3.执行命令。进入虚拟光盘,可以看到有两个文件,一个是压缩包,一个为rpm包。直接运行rpm包安装,命令行也可。rpm -Uvh VMwareTools-版本号-版本号.i386.rpm# cd /mnt/cdrom# ls -l有两上文件 :VMwareTools-5.5.1-19175.i386.rpmVMwareTools-5.5.1-19175.tar.gz并把这两个文件拷贝到你的文件下 如 /tmp#cp VMwareTools-5.5.1-19175.tar.gz /tmp#cp VMwareTools-5.5.1-19175.i386.rpm /tmp#cd /tmp#rpm -ivh VMwareTools-5.5.1-19175.i386.rpm4.上述操作完成后,进入/usr/bin目录,查找vmware-config-tools.pl.找到后,运行它。5.一路回车6.#tar -xzvf VMwareTools-5.5.1-19175.tar.gz#cd vmware-tools-distrib#./vmware-install.plCreating a new installer database using the tar3 format.Installing the content of the package.# 安装过程的画面,全部使用默认值,一直按 Enter 就对了In which directory do you want to install the binary files?[/usr/bin]What is the directory that contains the init directories (rc0.d/ to rc6.d/)?[/etc/rc.d]What is the directory that contains the init scripts?[/etc/rc.d/init.d]In which directory do you want to install the daemon files?[/usr/sbin]In which directory do you want to install the library files?[/usr/lib/vmware-tools]Thepath "/usr/lib/vmware-tools" does not exist currently. This program isgoingto create it, including needed parent directories. Is this whatyou want?[yes]In which directory do you want to install the documentation files?[/usr/share/doc/vmware-tools]Thepath "/usr/share/doc/vmware-tools" does not exist currently. Thisprogram isgoing to create it, including needed parent directories. Isthis what you want?[yes]The installation of VMware Tools 5.5.1 build-19175 for Linux completedsuccessfully. You can decide to remove this software from your system at anytime by invoking the following command: "/usr/bin/vmware-uninstall-tools.pl".Before running VMware Tools for the first time, you need to configure it byinvoking the following command: "/usr/bin/vmware-config-tools.pl". Do you wantthis program to invoke the command for you now? [yes]Stopping VMware Tools services in the virtual machine:Guest operating system daemon: [ 确定 ]Trying to find a suitable vmhgfs mole for your running kernel.The mole bld-2.6.9-5.EL-i686-RHEL4 loads perfectly in the running kernel.pcnet32 30153 0Unloading pcnet32 moleTrying to find a suitable vmxnet mole for your running kernel.The mole bld-2.6.9-5.EL-i686-RHEL4 loads perfectly in the running kernel.Detected X.org version 6.8.关闭控制台鼠标服务: [ 确定 ]启动控制台鼠标服务: [ 确定 ]Please choose one of the following display sizes (1 - 13):# 显示分辨率,这里是以 1024x768 为例# VMware Tools 安装的时候,会自动修改 X server 的配置文件[1] "640x480"[2]< "800x600"[3] "1024x768"[4] "1152x864"[5] "1280x800"[6] "1152x900"[7] "1280x1024"[8] "1376x1032"[9] "1400x1050"[10] "1680x1050"[11] "1600x1200"[12] "1920x1200"[13] "2364x1773"Please enter a number between 1 and 13:[2] 3X Window System Version 6.8.2Release Date: 9 February 2005X Protocol Version 11, Revision 0, Release 6.8.2Build Operating System: Linux 2.6.9-34.EL i686 [ELF]Current Operating System: Linux rd01.domain 2.6.9-34.EL #1 Wed Mar 8 00:07:35 CST 2006 i686Build Date: 04 May 2006Build Host: x8664-build.centos.orgBefore reporting problems, checkhttp://wiki.X.Orgto make sure that you have the latest version.Mole Loader presentOSKernel: Linux version 2.6.9-34.EL (buildcentos@build-i386) (gcc version3.4.5 20051201 (Red Hat 3.4.5-2)) #1 Wed Mar 8 00:07:35 CST 2006 PMarkers: (--) probed, (**) from config file, (==) default setting,(++) from command line, (!!) notice, (II) informational,(WW) warning, (EE) error, (NI) not implemented, (??) unknown.(++) Log file: "/tmp/vmware-config0/XF86ConfigLog.3131", Time: Mon Jun 12 20:57:3

⑶ 在linux的终端怎么退出python命令行

1.Ctrl + d 相信这个快捷键在很多交换式情景下都能退出交换式模式。x0dx0a2.quit()或者exit(),在很多交换式模式下是通过quit命令退出,在python的交换式模式所有命令都是函数,不能漏掉后面的()。x0dx0a3.输入 exit() 运行或按 Ctrl + D,在python shell中输入"exit()"即可退出python交互界面,1 0ctrl-c就行或者quit()有提示的。x0dx0a4.使用 quit(), exit(), 或者Ctrl-D退出命令行,python2.7.7(default,Jun32014,01:46:20) [GCC4.9.020140521(prerelease)]onlinux2 x0dx0a5.Type"help","right","credits"or"license"formoreinformation. >>>quit Usequit()orCtrl-D(i.e.EOF)toexit

⑷ linux如何退出命令操作界面

1、首先,连接相应linux主机,进入到linux命令行状态下,等待输入shell指令。

⑸ 服务器上怎么取消linux全屏

如果你是用VNC来全屏访问linux的话,把鼠标移动到桌面中间上面顶部,会有一个框出来,中间可以选择退出全屏

⑹ linux如何退出命令操作界面

linux退出命令操作界面的具体步骤如下:

1、首先要按键盘左上角的"ESC",左下角的插入状态不见了。

⑺ linux:命令行中对文件进行编辑后怎么退出到命令行界面

如果在命令行下使用gedit, 关闭程序窗口(一般先保存文件),就自动退到命令行界面。


如果在命令行下使用vim,先按下ESC退出编辑模式,然后输入:wq 保存并退出或者q退出或者q!强制退出,从而回到命令行界面。

(7)linux退出命令行全屏扩展阅读:

linux常见命令:

命令

apropos whatis 显示和word相关的命令。 参见线程安全

man-t man | ps2pdf - > man.pdf 生成一个PDF格式的帮助文件

which command 显示命令的完整路径名

time command 计算命令运行的时间

time cat 开始计时. Ctrl-d停止。参见sw

niceinfo 运行一个低优先级命令(这里是info)

renice 19 -p $$ 使脚本运行于低优先级。用于非交互任务。

目录操作

cd - 回到前一目录

cd 回到用户目录

(cd dir && command) 进入目录dir,执行命令command然后回到当前目录

pushd. 将当前目录压入栈,以后你可以使用popd回到此目录

文件搜索

aliasl='ls -l --color=auto' 单字符文件列表命令

ls -lrt 按日期显示文件. 参见newest

ls /usr/bin | pr -T9 -W$COLUMNS 在当前终端宽度上打印9列输出

find -name '*.[ch]' | xargs grep -E 'expr' 在当前目录及其子目录下所有.c和.h文件中寻找'expr'. 参见findrepo

find -type f -print0 | xargs -r0 grep -F 'example' 在当前目录及其子目录中的常规文件中查找字符串'example'

find -maxdepth 1 -type f | xargs grep -F 'example' 在当前目录下查找字符串'example'

find -maxdepth 1 -type d | whilereaddir; do echo $dir; echo cmd2; done 对每一个找到的文件执行多个命令(使用while循环)

find -type f ! -perm -444 寻找所有不可读的文件(对网站有用)

find -type d ! -perm -111 寻找不可访问的目录(对网站有用)

locate -r 'file[^/]*.txt' 使用locate 查找所有符合*file*.txt的文件

look reference 在(有序)字典中快速查找

grep--colorreference /usr/share/dict/words 使字典中匹配的正则表达式高亮

归档 and compression

gpg -c file 文件加密

gpg file.gpg 文件解密

tar -c dir/ | bzip2 > dir.tar.bz2 将目录dir/压缩打包

bzip2 -dc dir.tar.bz2 | tar -x 展开压缩包 (对tar.gz文件使用gzip而不是bzip2)

tar -c dir/ | gzip | gpg -c | ssh user@remote 'dd of=dir.tar.gz.gpg' 目录dir/压缩打包并放到远程机器上

find dir/ -name '*.txt' | tar -c --files-from=- | bzip2 > dir_txt.tar.bz2 将目录dir/及其子目录下所有.txt文件打包

find dir/ -name '*.txt' | xargs cp -a --target-directory=dir_txt/ --parents 将目录dir/及其子目录下所有.txt按照目录结构拷贝到dir_txt/

( tar -c /dir/to/ ) | ( cd /where/to/ && tar -x -p ) 拷贝目录/到目录/where/to/并保持文件属性

( cd /dir/to/ && tar -c.) | ( cd /where/to/ && tar -x -p ) 拷贝目录/下的所有文件到目录/where/to/并保持文件属性

( tar -c /dir/to/ ) | ssh -C user@remote 'cd /where/to/ && tar -x -p' 拷贝目录/到远程目录/where/to/并保持文件属性

dd bs=1M if=/dev/sda | gzip | ssh user@remote 'dd of=sda.gz' 将整个硬盘备份到远程机器上

⑻ linux下怎么退出全屏程序

ctrl + c 结束程序
其实,每个程序都有自己的退出方式,不知道的话只有用上述方法强制结束。

阅读全文

与linux退出命令行全屏相关的资料

热点内容
dvd光盘存储汉子算法 浏览:758
苹果邮件无法连接服务器地址 浏览:963
phpffmpeg转码 浏览:672
长沙好玩的解压项目 浏览:145
专属学情分析报告是什么app 浏览:564
php工程部署 浏览:833
android全屏透明 浏览:737
阿里云服务器已开通怎么办 浏览:803
光遇为什么登录时服务器已满 浏览:302
PDF分析 浏览:486
h3c光纤全工半全工设置命令 浏览:143
公司法pdf下载 浏览:383
linuxmarkdown 浏览:350
华为手机怎么多选文件夹 浏览:683
如何取消命令方块指令 浏览:350
风翼app为什么进不去了 浏览:779
im4java压缩图片 浏览:362
数据查询网站源码 浏览:151
伊克塞尔文档怎么进行加密 浏览:893
app转账是什么 浏览:163