linux命令上传代码 linux命令

linux下用命令行怎么上传文件到百度或者其他网盘linux下可以直接运行命令下载或上传文件 1、检查并安装相应的包:yum install lrzsz 2、使用 sz 文件名 现在相应的文件到本地磁盘 。3、上传使用rz 选择相应文件即可 。
srt中linux上传文件命令通过仿真器传输命令 。
上传文件只需在shell终端仿真器中输入命令rz,即可从弹出的对话框中选择本地磁盘上的文件,利用Zmodem上传到服务器当前路径下 。下载文件只需在shell终端仿真器中输入命令sz文件名,即可利用Zmodem将文件下载到本地某目录下 。
linux怎样命令行上传git你是你是要通过git命令上传东西,还是想上传git到服务器上面 , 你可以先通过yum安装git
# yum install git
已加载插件:fastestmirror, refresh-packagekit, security
设置安装进程
Loading mirror speeds linuxprobe.com from cached hostfile
base| 3.7 kB00:00
epel| 4.3 kB00:00
epel/primary_db| 5.9 MB00:05
extras| 3.4 kB00:00
hhvm| 2.9 kB00:00
shells_fish_release_2| 1.2 kB00:00
updates| 3.4 kB00:00
updates/primary_db| 821 kB00:01
upgrade| 1.9 kB00:00
virtualbox/signature|181 B00:00
virtualbox/signature| 1.1 kB00:00 ...
包 git-1.7.1-8.el6.x86_64 已安装并且是最新版本
无须任何处理
#git --help
usage: git [--version] [--exec-path[=GIT_EXEC_PATH]] [--html-path]
[-p|--paginate|--no-pager] [--no-replace-objects]
[--bare] [--git-dir=GIT_DIR] [--work-tree=GIT_WORK_TREE]
[--help] COMMAND [ARGS]
The most commonly used git commands are:
addAdd file contents to the index
bisectFind by binary search the change that introduced a bug
branchList, create, or delete branches
checkoutCheckout a branch or paths to the working tree
cloneClone a repository into a new directory
commitRecord changes to the repository
diffShow changes between commits, commit and working tree, etc
fetchDownload objects and refs from another repository
grepPrint lines matching a pattern
initCreate an empty git repository or reinitialize an existing one
logShow commit logs
mergeJoin two or more development histories together
mvMove or rename a file, a directory, or a symlink
pullFetch from and merge with another repository or a local branch
pushUpdate remote refs along with associated objects
rebaseForward-port local commits to the updated upstream head
resetReset current HEAD to the specified state
rmRemove files from the working tree and from the index
showShow various types of objects
statusShow the working tree status
tagCreate, list, delete or verify a tag object signed with GPG
See 'git help COMMAND' for more information on a specific command.
下面我给介绍一种从本地上传到服务器的命令:
命令rz和sz命令,首先你需要安装lrzsz库
#rz --help
rz version 0.12.20
Usage: rz [options] [filename.if.xmodem]
Receive files with ZMODEM/YMODEM/XMODEM protocol
(X) = option applies to XMODEM only
(Y) = option applies to YMODEM only
(Z) = option applies to ZMODEM only
-+, --appendappend to existing files
-a, --asciiASCII transfer (change CR/LF to LF)
-b, --binarybinary transfer
-B, --bufsize Nbuffer N bytes (N==auto: buffer whole file)
-c, --with-crcUse 16 bit CRC (X)
-C, --allow-remote-commands allow execution of remote commands (Z)
-D, --nullwrite all received data to /dev/null
--delay-startup Nsleep N seconds before doing anything
-e, --escapeEscape control characters (Z)
-E, --renamerename any files already existing
--errors Ngenerate CRC error every N bytes (debugging)
-h, --helpHelp, print this usage message
-m, --min-bps Nstop transmission if BPS below N

推荐阅读