📖
zhaoqiang
  • Home
  • Python
    • Python Base
      • Grammar
      • Issue
    • Web DEV
      • Html
      • WebFrame
        • Flask
        • Django
      • WebTemplate
    • Web Crawler
  • Linux
    • Navieboom
    • Telegram Bot
      • RSSBot
      • TwitterBot
    • LetsEncrypt
      • ACME Create
      • ACME Install
    • NextCloud
      • NextCloud创建
      • NextCloud性能优化
    • Google
      • Google Drive
        • 离线下载
      • Chromium
    • Synology
      • Docker
        • 清理Docker占用的磁盘空间
      • Youtube-dl
      • 群晖—-外部访问DDNS教程(第一部分)
      • 群晖—-外部访问DDNS教程(第二部分)
      • SpeedTest - Install
      • BestTrace - Install
      • Rclone - Install
      • IPKG - Install
      • LEDE - Install
    • OpenWrt
      • Compile
        • Lean-4.14
        • Lean-4.9
    • LEDE
    • Linux Base
      • Command
      • Cron
  • DynamicsAX
    • Functions
      • Document Services
        • Auto Generate XML From AX
        • Load XML Files On Server
      • Webservice
      • DB Connect
      • DirectSQL
      • Email Alert
      • Auto Items
      • Auto BOM
      • Auto Order
      • Auto Invoice
      • Auto Packing
    • Data Import
      • Initial Static Data
      • initial Dynamic Data
        • Open SO
        • Open PO
        • Opening Balance
    • Access Right
    • Process
    • Instance
      • DYNAMICS 365 FOR OPERATION INSTANCE
  • Other Skills
    • Markdown
    • GIT
      • Command
    • Office365
Powered by GitBook
On this page

Was this helpful?

  1. Linux
  2. Linux Base

Command

Ubuntu&Debian 常用命令

PreviousLinux BaseNextCron

Last updated 6 years ago

Was this helpful?

常用指令

ls

  • -l :列出长数据串,包含文件的属性与权限数据等

  • -a :列出全部的文件,连同隐藏文件(开头为.的文件)一起列出来(常用)

  • -d :仅列出目录本身,而不是列出目录的文件数据

  • -h :将文件容量以较易读的方式(GB,kB等)列出来

  • -R :连同子目录的内容一起列出(递归列出),等于该目录下的所有文件都会显示出来

这些参数也可以组合使用,下面举两个例子:
ls -l #以长数据串的形式列出当前目录下的数据文件和目录 
ls -lR #以长数据串的形式列出当前目录下的所有文件

grep

find

cp

mv

rm

ps

kill

tar

chmod

Screen

  • screen -S name 启动一个名字为name的screen

  • screen -ls 是列出所有的screen

  • screen -r name或者id,就可以回到某个screen了

  • screen -S name -X quit 删除screen

  • ctrl + a + d 可以回到前一个screen,当时在当前screen运行的程序不会停止

Rclone

Google
nohup rclone -v mount myspacesh:CopyFromShare /root/myspacesh --allow-other --dir-cache-time 2h --buffer-size 32M --poll-interval 5m --tpslimit 2 &
nohup rclone -v mount myspaceshto:CopyFromShare /root/myspaceshto --allow-other --dir-cache-time 2h --buffer-size 32M --poll-interval 5m --tpslimit 2 &
fusermount -u /root/myspaceshto
rclone copy -v myspacesh:CopyFromShare/'TPimage MegaPack' myspaceshto:CopyFromShare/inbox/'TPimage MegaPack'
rclone copy -v drivefrom:CopyFromShare/M1-50 driveto:CopyFromShare/M1-250

Shell脚本

Shell
#!/bin/bash
echo "Hello world!"

chmod +x hello.sh

初窥Linux 之 我最常用的20条命令_ljianhui的博客-CSDN博客_linux常用的20个命令
Logo