pw 1aA?
nohup command >/dev/null 2>&1 # doesn't create nohup.out
nohup ./a.out &
tail -f nohup.out
-f, --follow[={name|descriptor}]
output appended data as the file grows;
an absent option argument means 'descriptor'
https://guides.github.com/
https://github.com/git-lfs/git-lfs/issues/911 Smudge filter failed with a fresh new clone
https://blog.csdn.net/weixin_34161029/article/details/86978708 ubuntu 設置開機自啓動 / 設置定時重啓 / crontab 定時執行 / 後臺執行
http://blog.topspeedsnail.com/archives/6948 Ubuntu 16.04安裝Fcitx拼音輸入法
https://www.cnblogs.com/darklights/p/7722861.html Ubuntu 16.04安裝Fcitx拼音輸入法
https://blog.csdn.net/dlmu2001/article/details/8842891 strace
http://www.javashuo.com/article/p-brcwqvua-ho.html vscode
sudo apt-get purge nvidia-*
g++ opmp.cc -fopenmp --verbose > ff 2>&1
sudo apt-get autoremove --purge
sudo add-apt-repository ppa:graphics-drivers
sudo apt-get update
sudo apt-get install nvidia-410
查看軟件版本: aptitude show xxxhtml
patch -p0 < geometry2_0.5.16_tf2.patchjava
http://www.brixbot.com/category/ros2/
docker images|grep none|awk '{print $3 }'|xargs docker rminode
Q:python
root@ubuntu:/home/pipi# find / -perm -2000linux
/sbin/unix_chkpwd
find: `/home/pipi/.gvfs': 權限不夠c++
A:git
#umount /home/useraccount/.gvfs
#find . -inum 554009 -exec rm{} \;
After that,
#rm -rf .gvfsgithub
Q:web
經過終端安裝程序sudo apt-get install xxx時出錯:
E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using itdocker
A:
出現這個問題多是有另一個程序正在運行,致使資源被鎖不可用。而致使資源被鎖的緣由多是上次運行安裝或更新時沒有正常完成,進而出現此情況,解決的辦法其實很簡單:
在終端中敲入如下兩句
sudo rm /var/cache/apt/archives/lock
sudo rm /var/lib/dpkg/lock
# 在源代碼根目錄,使用git status命令獲取已修改文件的列表
git status | grep modified | awk '{print $2}' > list.txt
# 在當前目錄下,建立temp目錄
mkdir temp
# 將已修改文件列表逐一複製到當前目錄下的temp目錄
xargs -a ./list.txt cp --parents -t ./temp
# 將temp目錄下的全部文件打包爲modules.tar.gz
cd temp
tar -czf modules.tar.gz *
https://www.runoob.com/nodejs/nodejs-http-server.html
tinyxml2 https://blog.csdn.net/zhawk/article/details/60880036
https://csuyangpeng.slack.com/messages/CG9KY8199/
https://www.cnblogs.com/51kata/category/789766.html
http://dockone.io/article/128
在Ubuntu下,時不時會有這個錯誤的。 add-apt-repository: command not found
$ sudo apt-get install software-properties-common python-software-properties
ps -aux |grep distccd |grep -v grep|awk '{print $2}' |xargs kill -9
13316476216
075506010053@163.gd
https://stackoverflow.com/questions/7832770/how-to-get-certain-commit-from-github-project
scp yangpeng@10.9.139.171:/MOM/codeBuild02/yangpeng/45G/upSystem_v2.1_sz .
yangpeng@10.9.139.171's password:
upSystem_v2.1_sz: not a regular file
[root@localhost yp]# scp -r yangpeng@10.9.139.171:/MOM/codeBuild02/yangpeng/45G/upSystem_v2.1_sz .
grep -rn "xxx" *
一、可使用grep命令來查找當前目錄下全部文件中包含的某個特定字符。
二、示例:查找當前目錄下全部帶有set的文件 。
說明:
-r 是遞歸查找
-n 是顯示行號
* : 表示當前目錄全部文件,也能夠是某個文件名
find . -name "*.cc"
find ./ -name "*.java" -o -name "*.xml"
Google C++ Style Guide
https://google.github.io/styleguide/cppguide.html#Constant_Names
https://github.com/ApolloAuto/apollo/tree/apollo csuyangpeng0308
http://wiki.ros.org/rosbag/Code%20API#cpp_api
1. 本地分支重命名
git branch -m oldbranchname newbranchname
支持C++11特性:gcc -g -Wall -std=c11 main.cpp
建立tar.xz文件:只要先 tar cvf xxx.tar xxx/ 這樣建立xxx.tar文件先,而後使用 xz -z xxx.tar 來將 xxx.tar壓縮成爲 xxx.tar.xz
解壓tar.xz文件:先 xz -d xxx.tar.xz 將 xxx.tar.xz解壓成 xxx.tar 而後,再用 tar xvf xxx.tar來解包。
https://bigsearcher.com/mirrors/gcc/releases/gcc-8.2.0/
gcc-8.1.0安裝
tar -Jxvf gcc-8.1.0.tar.xz
cd gcc-8.1.0 ./contrib/download_prerequisites
cd .. mkdir temp_gcc81 && cd temp_gcc81
../gcc-8.1.0/configure --prefix=/usr/local/gcc-8.1 --enable-threads=posix --disable-checking --disable-multilib
#error "Unable to find a suitable type for HOST_WIDE_INT"
unset LIBRARY_PATH CPATH C_INCLUDE_PATH PKG_CONFIG_PATH CPLUS_INCLUDE_PATH INCLUDE
make
sudo make install
adding-public-key-to-ssh-authorized-keys-does-not-log-me-in-automatically
https://stackoverflow.com/questions/6377009/adding-public-key-to-ssh-authorized-keys-does-not-log-me-in-automatically
You need to verify the permissions of the authorized_keys
file and the folder / parent folders in which it is located.
chmod 700 ~/.ssh
chmod 600 ~/.ssh/authorized_keys
For more information see this page.
You may also need to change/verify the permissions of your home directory to remove write access for the group and others.
chmod go-w ~
1 moonx@MoonXComputer:~/.ssh$ ssh -v moonx@192.168.4.74
2 OpenSSH_7.2p2 Ubuntu-4ubuntu2.7, OpenSSL 1.0.2g 1 Mar 2016
3 debug1: Reading configuration data /etc/ssh/ssh_config
4 debug1: /etc/ssh/ssh_config line 19: Applying options for *
5 debug1: Connecting to 192.168.4.74 [192.168.4.74] port 22.
6 debug1: Connection established.
7 debug1: identity file /home/moonx/.ssh/id_rsa type 1
8 debug1: key_load_public: No such file or directory
9 debug1: identity file /home/moonx/.ssh/id_rsa-cert type -1
10 debug1: key_load_public: No such file or directory
11 debug1: identity file /home/moonx/.ssh/id_dsa type -1
12 debug1: key_load_public: No such file or directory
13 debug1: identity file /home/moonx/.ssh/id_dsa-cert type -1
14 debug1: key_load_public: No such file or directory
15 debug1: identity file /home/moonx/.ssh/id_ecdsa type -1
16 debug1: key_load_public: No such file or directory
17 debug1: identity file /home/moonx/.ssh/id_ecdsa-cert type -1
18 debug1: key_load_public: No such file or directory
19 debug1: identity file /home/moonx/.ssh/id_ed25519 type -1
20 debug1: key_load_public: No such file or directory
21 debug1: identity file /home/moonx/.ssh/id_ed25519-cert type -1
22 debug1: Enabling compatibility mode for protocol 2.0
23 debug1: Local version string SSH-2.0-OpenSSH_7.2p2 Ubuntu-4ubuntu2.7
24 debug1: Remote protocol version 2.0, remote software version OpenSSH_7.2p2 Ubuntu-4ubuntu2.7
25 debug1: match: OpenSSH_7.2p2 Ubuntu-4ubuntu2.7 pat OpenSSH* compat 0x04000000
26 debug1: Authenticating to 192.168.4.74:22 as 'moonx'
27 debug1: SSH2_MSG_KEXINIT sent
28 debug1: SSH2_MSG_KEXINIT received
29 debug1: kex: algorithm: curve25519-sha256@libssh.org
30 debug1: kex: host key algorithm: ecdsa-sha2-nistp256
31 debug1: kex: server->client cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
32 debug1: kex: client->server cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
33 debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
34 debug1: Server host key: ecdsa-sha2-nistp256 SHA256:scmIqSf23TCO6MoFBWwq7bswmg+luMjjb14FkAm157o
35 debug1: Host '192.168.4.74' is known and matches the ECDSA host key.
36 debug1: Found key in /home/moonx/.ssh/known_hosts:1
37 debug1: rekey after 134217728 blocks
38 debug1: SSH2_MSG_NEWKEYS sent
39 debug1: expecting SSH2_MSG_NEWKEYS
40 debug1: SSH2_MSG_NEWKEYS received
41 debug1: rekey after 134217728 blocks
42 debug1: SSH2_MSG_EXT_INFO received
43 debug1: kex_input_ext_info: server-sig-algs=<rsa-sha2-256,rsa-sha2-512>
44 debug1: SSH2_MSG_SERVICE_ACCEPT received
45 debug1: Authentications that can continue: publickey,password
46 debug1: Next authentication method: publickey
47 debug1: Offering RSA public key: /home/moonx/.ssh/id_rsa
48 debug1: Server accepts key: pkalg rsa-sha2-512 blen 279
49 debug1: Authentication succeeded (publickey).
50 Authenticated to 192.168.4.74 ([192.168.4.74]:22).
51 debug1: channel 0: new [client-session]
52 debug1: Requesting no-more-sessions@openssh.com
53 debug1: Entering interactive session.
54 debug1: pledge: network
55 debug1: client_input_global_request: rtype hostkeys-00@openssh.com want_reply 0
56 debug1: Sending environment.
57 debug1: Sending env LC_PAPER = zh_CN.UTF-8
58 debug1: Sending env LC_ADDRESS = zh_CN.UTF-8
59 debug1: Sending env LC_MONETARY = zh_CN.UTF-8
60 debug1: Sending env LC_NUMERIC = zh_CN.UTF-8
61 debug1: Sending env LC_TELEPHONE = zh_CN.UTF-8
62 debug1: Sending env LC_IDENTIFICATION = zh_CN.UTF-8
63 debug1: Sending env LANG = en_US.UTF-8
64 debug1: Sending env LC_MEASUREMENT = zh_CN.UTF-8
65 debug1: Sending env LC_TIME = zh_CN.UTF-8
66 debug1: Sending env LC_NAME = zh_CN.UTF-8
67 Welcome to Ubuntu 16.04.5 LTS (GNU/Linux 4.15.0-45-generic x86_64)
68
69 * Documentation: https://help.ubuntu.com
70 * Management: https://landscape.canonical.com
71 * Support: https://ubuntu.com/advantage
72
73 8 packages can be updated.
74 0 updates are security updates.
75
76 New release '18.04.1 LTS' available.
77 Run 'do-release-upgrade' to upgrade to it.
78
79 Last login: Fri Feb 15 17:42:00 2019 from 127.0.0.1
80
81
82 gssapi-keyex,gssapi-with-mic,
View Code
最近在解決網絡問題時,須要查看本機的出口公網IP信息,因此在網絡上搜索和請求運維達人,得到以下兩個方法:
curl ifconfig.me
在linux系統中輸入上述的命令,能夠查看到本機鏈接的公網信息;若是該命令無效,可使用下面一個命令,也一樣能夠得到對應的信息
curl cip.cc
https://blog.csdn.net/gebitan505/article/details/14448429