技术分享:Linux基本操作 冷不防 2022-11-22 00:15 139阅读 0赞 **常见远程桌面工具** **RealVNC** ![d3c49b81e8113449826882afb9d1147d.png][] 地址:[https://www.realvnc.com/en/][https_www.realvnc.com_en] > RealVNC远程控制程序是VNC (Virtual Network Computing)众多操作平台版本中的一员,它可以安装在Windows中而让使用者在世界各地远端遥控自己的电脑,就算是遥控不同的操作平台也没有问题。 > VNC软件主要由两个部分组成:VNC server及VNC viewer。用户需先将VNC server安装在被控端的计算机上后,才能在主控端执行 VNC viewer 控制被控端。 VNC server 与 VNC viewer 支持多种操作系统,如 windows,Linux,MacOS 及 Unix 系列(Unix,Solaris等),因此可将 VNC server 及 VNC viewer 分别安装在不同的操作系统中进行控制。 **Teamviewer** ![76fcd7b10e59f03328361e11c10d2321.png][] 地址:[http://www.teamviewer.com/en/index.aspx][http_www.teamviewer.com_en_index.aspx] > Teamviewer是最佳的远程桌面工具之一,使用它可以轻松连接到全球任意一台PC或服务器上,目前大约有2亿用户在使用Teamviewer。 > TeamViewer是一个能在任何防火墙和NAT代理的后台用于远程控制,桌面共享和文件传输的简单且快速的解决方案。为了连接到另一台计算机,只需要在两台计算机上同时运行 TeamViewer 即可,而不需要进行安装(也可以选择安装,安装后可以设置开机运行)。该软件第一次启动在两台计算机上自动生成伙伴 ID。只需要输入你的伙伴的ID到TeamViewer,然后就会立即建立起连接。 > Teamviewer面向个人使用是免费的,但会弹出烦人的广告。 **AnyDesk** ![424ffb65d54ceea25221e5d39fa99167.png][] 地址:[https://anydesk.com/zhs/downloads][https_anydesk.com_zhs_downloads] > 通过远程访问连接各个Windows客户端和服务器的桌面 > 通过远程连接控制所有的Windows设备,实现即时支持和实时管理 > AnyDesk拥有令人叹为观止的帧速率,带宽效率和难以察觉的延迟,为您提供Windows中流畅的远程桌面连接 > 使用远程桌面访问Windows轻松协作并进行在线通信 ### **5、Linux系统基本操作** ### ### **命令提示符** ### 1.登录root用户----超级管理员用户,权限最高 [root @ localhost ~ ] # 用户 主机名 当前用户家目录 管理员用户 ============ 切换用户: [root@qfedu.com ~]# su - 创建的用户名 [xuan@qfedu.com ~]$ $ :普通用户 退出普通用户: [xuan@qfedu.com ~]$ exit 查看服务器时间 [root@qfedu.com ~]# date [root@qfedu.com ~]# date +%F #只显示当前年月日 [root@qfedu.com ~]# date +%X #只显示当前时间到秒 [root@qfedu.com ~]# pwd #显示当前工作路径 pwd ---Print working directory [root@localhost ~]# 当一个用户刚刚登陆之后提示符里面的~表示的是用户的家目录,root用户 的家目录是/root目录 2.查看文件信息---ls #ls #查看当前目录下的文件 #ls /root/a.txt #单独列出文件 #ls /home #查看指定目录下的文件 #ls -l #长格式显示(显示文件的详细信息) 文件类型\权限 硬链接个数 所有者 所属组 大小 修改时间 名字 #ls -lh #-h 人性化显示 (显示文件大小) #ls -a #all 显示所有文件 (包括隐藏文件) #ls file* #以file开头的所有文件 *通配符。表示所有字符(隐藏文件除外) #ls *.txt #以任意开头以.txt结尾的所有文件 [root@qfedu.com ~]# ll -d /home/ #查看目录详细信息 [root@qfedu.com ~]# ll /home/ #查看目录下面文件的详细信息 [root@qfedu.com ~]# ll -t #按最新的修改时间排序 [root@qfedu.com ~]# clear #清屏,快捷键----ctrl+l ================================= #隐藏文件:文件名称前面加“.” 问题:想一想ll 与 ls -l 是什么关系? ll是ls -l的别名 3.创建文件: touch 文件名 4.删除文件: rm -rf 文件名 5.关机:init 0 poweroff 6.重启: reboot、init 6 **6、命令别名** 实战案例 查看别名: [root@qfedu.com ~]# type -a ll ll is aliased to `ls -l --color=auto' 设置别名: 语法:alias 别名='命令' [root@qfedu.com ~]# alias ddd='df -Th' [root@qfedu.com ~]# alias alias ddd alias ddd='df -Th' [root@qfedu.com ~]# ddd Filesystem Type Size Used Avail Use% Mounted on /dev/mapper/centos-root xfs 17G 1.1G 16G 7% / devtmpfs devtmpfs 478M 0 478M 0% /dev tmpfs tmpfs 489M 0 489M 0% /dev/shm tmpfs tmpfs 489M 6.7M 482M 2% /run tmpfs tmpfs 489M 0 489M 0% /sys/fs/cgroup /dev/sda1 xfs 1014M 125M 890M 13% /boot tmpfs tmpfs 98M 0 98M 0% /run/user/0 取消别名: [root@qfedu.com ~]# unalias -a ddd [root@qfedu.com ~]# ddd -bash: ddd: command not found **关闭防火墙与selinux** [root@qfedu.com ~]# systemctl stop firewalld #关闭防火墙 [root@qfedu.com ~]# systemctl disable firewalld #永久关闭防火墙 关闭selinux [root@qfedu.com ~]# vi /etc/sysconfig/selinux #永久关闭,需要重启机器 将文件中的SELINUX=enforcing改为disabled [root@qfedu.com ~]# getenforce #查看selinux是否开启 Enforcing [root@qfedu.com ~]# setenforce 0 #临时关闭 **扩展** [root@qfedu.com ~]# ifup ens33 #启动网卡 [root@qfedu.com ~]# systemctl restart network #重启网络 ctrl+c #终止 [d3c49b81e8113449826882afb9d1147d.png]: /images/20221120/708d5384b3ae4614af28b0fdc7613a83.png [https_www.realvnc.com_en]: https://link.zhihu.com/?target=https%3A//www.realvnc.com/en/ [76fcd7b10e59f03328361e11c10d2321.png]: https://img-blog.csdnimg.cn/img_convert/76fcd7b10e59f03328361e11c10d2321.png [http_www.teamviewer.com_en_index.aspx]: https://link.zhihu.com/?target=http%3A//www.teamviewer.com/en/index.aspx [424ffb65d54ceea25221e5d39fa99167.png]: https://img-blog.csdnimg.cn/img_convert/424ffb65d54ceea25221e5d39fa99167.png [https_anydesk.com_zhs_downloads]: https://link.zhihu.com/?target=https%3A//anydesk.com/zhs/downloads
还没有评论,来说两句吧...