linux+cmd

来源:互联网 发布:生辰八字起名中国网络 编辑:程序博客网 时间:2024/06/09 02:52

find /cygdrive/d/workspace/branches/v1.0/server/ -name "*.[c|cpp|cc|h|hpp]" |less

ls -R1 | grep ".[c|cc|cpp|h|hpp]$"有误 不知为何

原来要用egrep才支持正则

ls -R1 | egrep ".[c|cc|cpp|h|hpp]$"




 tail -F-n 20 filename   动态显示文件最后20行

strace ls 查看ls的调用


rename  query_account_ query_app_key_ query_account_* 批量该文件名

远程登录

ssh: 
usage: ssh [-1246AaCfgKkMNnqsTtVvXxYy] [-b bind_address] [-c cipher_spec]
           [-D [bind_address:]port] [-e escape_char] [-F configfile]
           [-I pkcs11] [-i identity_file]
           [-L [bind_address:]port:host:hostport]
           [-l login_name] [-m mac_spec] [-O ctl_cmd] [-o option] [-p port]
           [-R [bind_address:]port:host:hostport] [-S ctl_path]
           [-W host:port] [-w local_tun[:remote_tun]]
           [user@]hostname [command]

ssh uname@remote_ip

远程复制:

scp

usage: scp [-12346BCpqrv] [-c cipher] [-F ssh_config] [-i identity_file]
           [-l limit] [-o ssh_option] [-P port] [-S program]
           [[user@]host1:]file1 ... [[user@]host2:]file2

scp local_file[-rp local_dir] uname@remote_ip_addr:./remote_save_file_location

scp  [-rp] uname@remote_ip_addr:./remote_file[remote_dir]  ./local_save_file_position

原创粉丝点击