rsync -avz source_directory/ user@remote_host:/destination_directory/:将本地目录同步到远程服务器(仅传输已更改的文件)。 rsync -avz user@remote_host:/source_directory/ local_destination_directory/:从远程服务器同步目录到本地。 df:显示磁盘使用情况。 df -h:以人类可读的格式(例如GB,MB)显示磁盘空间...
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME sshd 2776 root 3u IPv4 16724 0t0 TCP *:ssh (LISTEN) sshd 2776 root 4u IPv6 16730 0t0 TCP *:ssh (LISTEN) sshd 23312 root 3r IPv4 3417749 0t0 TCP LS-B:ssh->127.0.0.1:patrolview(ESTABLISHED) 44、crontab命令 crontab–操作每个用户的...
[root@centos7 ~]# scp -v root@192.168.1.100:/root/nginxWebUI-1.3.5.jar /root/download/ Executing: program /usr/bin/ssh host 192.168.1.100, user root, command scp -v -f /root/nginxWebUI-1.3.5.jar OpenSSH_7.4p1, OpenSSL 1.0.2k-fips 26 Jan 2017 debug1: Reading configuration data ...
If you’d like to use parted, you can use the command-line parted utility or a graphical interface such as gparted; for an fdisk-style interface, use gdisk if you’re using GPT partitioning. These utilities all have online help and are easy to learn. (Try using them on a flash device...
在Linux系统运行的进程中,有一个叫做命令Shell(command Shell)的进程。如果你从系统的虚拟终端登录系统,或在X中启动一个终端程序,将会看到一个命令提示,要求你输入命令让系统执行。这个命令提示由负责读取和解释命令的Shell产生。红帽企业版Linux的默认命令Shell是bash(Bourne-again Shell)Shell。
command [-options [parameter]] [file] 例子:tar(命令) -zxvf(参数) Data.tar.gz(待处理文件) 代码语言:javascript 复制 ###文件-目录### pwd #打印工作目录 print working directory ls #列出当前目录的文件-a,-l,-h,-S,-t,-r 参数[路径/目录/文件名]list cd #切换...
示例:mkdir directory_name、mkdir -p path/to/new/directory touch:创建新文件或更新文件的时间戳。 示例:touch filename cp:复制文件或目录。 参数: -r:递归复制目录 -i:交互式复制,提示是否覆盖已存在文件 示例:cp source_file destination_file、cp -r source_directory destination_directory ...
List contents of the current directory. Thelscommand also displays additional information about files and folders such as permissions, file size (in bytes), and file dates with theloption. Like in Windows, some files and folders may be hidden by the OS from normal view. View files that are...
(minimum/optimal): 512 bytes / 512 bytes Disk label type: dos Disk identifier: 0x9277b47b Device Boot Start End Blocks Id System /dev/vdb1 2048 41943039 20970496 83 Linux Command (m for help): d Selected partition 1 Partition 1 is deleted Command (m for help): p Disk /dev/vdb: ...
Type 'help' to view a list of commands. (parted) help #帮助信息 align-check TYPE N check partition N for TYPE(min|opt) alignment help [COMMAND] print general help, or help on COMMAND mklabel,mktable LABEL-TYPE create a new disklabel (partition table) mkpart PART-TYPE [FS-TYPE] START...