{"id":1142,"date":"2016-06-17T07:48:25","date_gmt":"2016-06-16T23:48:25","guid":{"rendered":"http:\/\/jrblog.pentaidea.com\/john\/2016\/06\/17\/linux-%e5%b8%b8%e7%94%a8%e6%8c%87%e4%bb%a4-updating\/"},"modified":"2016-06-17T07:48:25","modified_gmt":"2016-06-16T23:48:25","slug":"linux-%e5%b8%b8%e7%94%a8%e6%8c%87%e4%bb%a4-updating","status":"publish","type":"post","link":"https:\/\/john.pentaidea.com\/?p=1142","title":{"rendered":"Linux \u5e38\u7528\u6307\u4ee4 (updating)"},"content":{"rendered":"<p><span style=\"font-size: 24px\">Other<\/span><\/p>\n<ul>\n<li>\n<p>Remove all files exclude specific file<\/p>\n<\/li>\n<\/ul>\n<pre><code>find . ! -name &apos;file.txt&apos; -type f -exec rm -f {} +\n\nfind . ! -name &apos;2020*&apos; -exec rm -f {} +\n<\/code><\/pre>\n<ul>\n<li>\n<p>Linux file sharing<\/p>\n<\/li>\n<\/ul>\n<pre><code>sudo npm install -g http-server\nhttp-server -o\n<\/code><\/pre>\n<ul>\n<li>\n<p>Filter string and column<\/p>\n<\/li>\n<\/ul>\n<pre><code>| awk &apos;\/pattern\/{ print $0 }&apos;\n# $0 all, $1 column 1, $2 column 2, ...\n<\/code><\/pre>\n<ul>\n<li>\n<p>Download GitHub release<\/p>\n<\/li>\n<\/ul>\n<pre><code>wget --no-check-certificate --content-disposition https:\/\/github.com\/joyent\/node\/tarball\/v0.7.1\n\n# --no-check-cerftificate was necessary for me to have wget not puke about https\ncurl -LJO https:\/\/github.com\/joyent\/node\/tarball\/v0.7.1\n\n# Just download file\ncurl -OJ https:\/\/xxx.com\/xxx.zip\n<\/code><\/pre>\n<ul>\n<li>\n<p>Install&nbsp;mkpasswd<\/p>\n<\/li>\n<\/ul>\n<pre><code>yum install expect\n<\/code><\/pre>\n<ul>\n<li>\n<p>Install&nbsp;<\/p>\n<\/li>\n<\/ul>\n<pre><code>yum install httpd-tools\n<\/code><\/pre>\n<ul>\n<li>\n<p>Generate self-signed SSL cert<\/p>\n<\/li>\n<\/ul>\n<pre><code>$ openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout mykey.key -out mycert.pem\n<\/code><\/pre>\n<ul>\n<li>\n<p>Check if script not existed and run<\/p>\n<\/li>\n<\/ul>\n<pre><code>ps aux | grep &quot;app\/main.py&quot; | grep -v grep\nif [ $? != 0 ]; then\n&nbsp;&nbsp;python3 \/srv\/app\/main.py\nfi\n<\/code><\/pre>\n<ul>\n<li>\n<p>Check if process existed<\/p>\n<\/li>\n<\/ul>\n<pre><code>ps aux | grep &quot;your_running_command&quot; | grep -v grep\n<\/code><\/pre>\n<ul>\n<li>\n<p>Append string to file<\/p>\n<\/li>\n<\/ul>\n<pre><code>echo $&apos;first line\\nsecond line\\nthirdline&apos; &gt;&gt; foo\n<\/code><\/pre>\n<ul>\n<li>\n<p>Get http status code<\/p>\n<\/li>\n<\/ul>\n<pre><code>curl -I http:\/\/www.example.org\ncurl -v http:\/\/www.example.org&nbsp; &nbsp; # -v == --verbose\n<\/code><\/pre>\n<ul>\n<li>\n<p>Local mail box<\/p>\n<\/li>\n<\/ul>\n<pre><code>\/var\/mail\/{USER}\n\/var\/spool\/mail\/{USER}\n<\/code><\/pre>\n<ul>\n<li>\n<p>While loop infinity<\/p>\n<\/li>\n<\/ul>\n<pre><code>while true; do echo hi; sleep 5; done\n<\/code><\/pre>\n<ul>\n<li>\n<p>Print log to file by datetime<\/p>\n<\/li>\n<\/ul>\n<pre><code>ls -al &gt; output_$(date +&quot;%m_%d_%Y&quot;)\n<\/code><\/pre>\n<ul>\n<li>\n<p>Check the collected<\/p>\n<\/li>\n<li>\n<p>yum \u5217\u51fa\u6240\u6709 package \u53ef\u88dd\u7248\u672c<\/p>\n<\/li>\n<\/ul>\n<pre><code>yum list {{package}} --showduplicates | sort -r\n<\/code><\/pre>\n<ul>\n<li>\n<p>yum \u641c\u5c0b package by keyword<\/p>\n<\/li>\n<\/ul>\n<pre><code>yum search {{keyword}}\n<\/code><\/pre>\n<ul>\n<li>\n<p>Install nodeJS<\/p>\n<\/li>\n<\/ul>\n<p><span style=\"font-size: 12px;, monospace\">#delete if needed<\/span><\/p>\n<p><span style=\"font-size: 12px;, monospace\">sudo apt-get &#8211;purge remove node<\/span><\/p>\n<p><span style=\"font-size: 12px;, monospace\">sudo apt-get &#8211;purge remove nodejs<\/span><\/p>\n<p><span style=\"font-size: 12px;, monospace\">sudo apt-get install nodejs<\/span><\/p>\n<p><span style=\"font-size: 12px;, monospace\">#Use &apos;node&apos; command rather than &apos;nodejs&apos;<\/span><\/p>\n<p><span style=\"font-size: 12px;, monospace\">update-alternatives &#8211;install \/usr\/bin\/node node \/usr\/bin\/nodejs 10<\/span><\/p>\n<ul>\n<li>\n<p>Install pip3<\/p>\n<\/li>\n<\/ul>\n<p><span style=\"font-size: 12px;, monospace\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sudo apt-get install python3-pip<\/span><\/p>\n<ul>\n<li>\n<p>Install htop<\/p>\n<\/li>\n<\/ul>\n<pre><code>sudo yum install epel-release\nsudo yum update\n\nsudo yum install htop\n<\/code><\/pre>\n<ul>\n<li>\n<p>Jupyter from .ipynb to .p<span style=\"font-size: 15px\">y<\/span><\/p>\n<\/li>\n<\/ul>\n<p><span><span style=\"font-size: 10pt;, monospace\">On the&nbsp;command line, you can use&nbsp;nbconvert:<\/span><\/span><\/p>\n<p><span><span style=\"font-size: 10pt;, Arial, sans\">$ jupyter nbconvert &#8211;to script [YOUR_NOTEBOOK].ipynb<\/span><\/span><\/p>\n<p><span><span style=\"font-size: 10pt;, Arial, sans\">As a bit of a hack,&nbsp;you can even call the above command&nbsp;in&nbsp;an IPython notebook&nbsp;by pre-pending&nbsp;!&nbsp;(used for any command line argument). Inside a notebook:<\/span><\/span><\/p>\n<p><span><span style=\"font-size: 10pt;, monospace\">!jupyter nbconvert &#8211;to script config_template.ipynb<\/span><\/span><\/p>\n<ul>\n<li>\n<p>\u767c url request and show the time<\/p>\n<\/li>\n<\/ul>\n<p><span style=\"font-size: 9pt;font-family: Monaco\">curl -o \/dev\/null -s -w &quot;%{time_connect} + %{time_starttransfer} = %{time_total}\\n&quot; &lt;YOUR_URI&gt;<\/span><\/p>\n<ul>\n<li>\n<p>&quot;No package top available.<\/p>\n<p><span style=\"line-height: 1.45\">Error: Nothing to do&quot;<\/span><\/p>\n<\/li>\n<\/ul>\n<p><span style=\"font-size: 9pt;font-family: Monaco\"># htop seems to be available in the EPEL repo. Try<\/span><span style=\"font-size: 9pt;font-family: Monaco\">&nbsp;<\/span><span style=\"font-size: 9pt;font-family: Monaco\">yum install epel-release<\/span><span style=\"font-size: 9pt;font-family: Monaco\">, then<\/span><span style=\"font-size: 9pt;font-family: Monaco\">&nbsp;<\/span><span style=\"font-size: 9pt;font-family: Monaco\">yum install htop<\/span><span style=\"font-size: 9pt;font-family: Monaco\">&nbsp;<\/span><span style=\"font-size: 9pt;font-family: Monaco\">again.<\/span><\/p>\n<p><span style=\"font-size: 9pt;font-family: Monaco\">yum install epel-release<\/span><\/p>\n<ul>\n<li>\n<p>About compressing: Zip, Unzip<\/p>\n<\/li>\n<\/ul>\n<pre><code># zip with hidden file (.htaccess)\nsudo find . -type f -name &apos;.*&apos; -print | sudo zip newZipFile.zip -@\n\n\n# zip all in folder\nsudo zip -r&nbsp; {ZIPNAME}.zip {FOLDER_PATH1}&nbsp;{FOLDER_PATH2}&nbsp;{FOLDER_PATH3} ...\n\n\n# unzip to specific folder\nsudo unzip&nbsp;{ZIPNAME}.zip -d {FOLDER_PATH}\n\n# browser into zip file\nunzip -l {{zipfile}}\nless {{zipfile}}\nvim&nbsp;{{zipfile}}\n<\/code><\/pre>\n<ul>\n<li>\n<p>Install ssh for ubuntu<\/p>\n<\/li>\n<\/ul>\n<pre><code>sudo apt-get install openssh-server\n\n# Enable\/Disable root\nvi \/etc\/ssh\/sshd_config\n--\nPermitRootLogin Yes\n--\n\n# (optional) Set allowed IP\nvi&nbsp;\/etc\/hosts.allow\n--\nsshd:192.168.1.88:allow\n--\nvi&nbsp;\/etc\/hosts.deny\n--\nsshd:all:deny\n--\n-&gt; then restart\n\n\n# (optional) restart\nsudo \/etc\/init.d\/ssh restart\n<\/code><\/pre>\n<ul>\n<li>\n<p>Install Remote GUI for Ubuntu<\/p>\n<\/li>\n<\/ul>\n<pre><code># xfce4\nsudo apt-get install xfce4\n## additional goodies\nsudo apt-get install xfce4-goodies\n<\/code><\/pre>\n<ul>\n<li>\n<p>Make shortcut to command<\/p>\n<\/li>\n<\/ul>\n<pre><code>alias lc=long-command\n<\/code><\/pre>\n<p><span style=\"font-size: 24px;font-weight: bold;text-decoration: underline\">About System<\/span><\/p>\n<ul>\n<li>\n<p>Find regex string not include by awk<\/p>\n<\/li>\n<\/ul>\n<pre><code>XXXstring | awk &apos;$0 !~\/domain\/{print $0}&apos;\n<\/code><\/pre>\n<ul>\n<li>\n<p>Cron Job will lost PATH<\/p>\n<\/li>\n<\/ul>\n<pre><code># Set the path back again\nexport PATH={$PATH}&nbsp;\n<\/code><\/pre>\n<ul>\n<li>\n<p>Add user to root group<\/p>\n<\/li>\n<\/ul>\n<pre><code>$ sudo usermod -a -G root john\n<\/code><\/pre>\n<ul>\n<li>\n<p>Remote&nbsp;by ssh with rsa key (private\/public\/pem)<\/p>\n<\/li>\n<\/ul>\n<pre><code># Generate ssh key\n$ssh-keygen -t rsa -b 4096 -C &quot;your_email@example.com&quot;\n$ssh-keygen -t rsa\n\n# Use public(.pub) rsa key to login&nbsp;\n# Put public key into `authorized_keys` (each key start with &quot;ssh-rsa&quot;)\n$vi&nbsp;~\/.ssh\/authorized_keys\n---&nbsp;authorized_keys ---\nssh-rsa XXXXX\nssh-rsa XXXXX\n------\n\n\n# Restrict logining with key only\n$sudo vi \/etc\/ssh\/sshd_config&nbsp; &nbsp;\n--- sshd_config ---\nPasswordAuthentication no\n------\n\n# Restart to apply settings (choose one)\n$sudo service ssh restart&nbsp;\n$sudo systemctl restart ssh\n<\/code><\/pre>\n<ul>\n<li>\n<p>Get current IP by web service<\/p>\n<\/li>\n<\/ul>\n<pre><code>import commands\ncommands.getstatusoutput(&quot;wget -qO- http:\/\/whatismyip.host\/ | grep -oP &apos;(?&lt;=ipaddress\\&quot;\\&gt;)[0-9]+\\.[0-9]+\\.[0-9]+\\.[0-9]+(?=\\&lt;\\\/p\\&gt;)&apos;&quot;)\n<\/code><\/pre>\n<ul>\n<li>\n<p>Show swap<\/p>\n<\/li>\n<\/ul>\n<pre><code>sudo swapon \u2013show\n<\/code><\/pre>\n<ul>\n<li>\n<p>Lock account<\/p>\n<\/li>\n<\/ul>\n<pre><code>passwd -l testuser&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; # lock\npasswd --status&nbsp;testuser&nbsp; &nbsp; # Verify\n<\/code><\/pre>\n<ul>\n<li>\n<p>Switch users<\/p>\n<\/li>\n<\/ul>\n<pre><code>su -&nbsp; &nbsp;# Switch to root\nsudo su&nbsp; &nbsp;# Run as sudoer\n<\/code><\/pre>\n<ul>\n<li>\n<p>\u6aa2\u67e5 users and groups<\/p>\n<\/li>\n<\/ul>\n<pre><code>cat \/etc\/passwd\n<\/code><\/pre>\n<ul>\n<li>\n<p>\u6aa2\u67e5\u7db2\u8def\u9023\u63a5\u72c0\u6cc1<\/p>\n<\/li>\n<\/ul>\n<p><span style=\"font-size: 12px;, monospace\">ss -l<\/span><\/p>\n<ul>\n<li>\n<p>\u6aa2\u67e5 OS \u7248\u672c version<\/p>\n<\/li>\n<\/ul>\n<p><span style=\"font-size: 12px;, monospace\">uname -a<\/span><\/p>\n<p><span style=\"font-size: 9pt;font-family: Monaco\">hostnamectl<\/span><\/p>\n<p><span style=\"font-size: 9pt;font-family: Monaco\">cat \/etc\/os-release<\/span><\/p>\n<ul>\n<li>\n<p>\u767b\u5165\u6210 root&nbsp;<\/p>\n<\/li>\n<\/ul>\n<pre><code>su -\n<\/code><\/pre>\n<ul>\n<li>\n<p>Show all environment variables<\/p>\n<\/li>\n<\/ul>\n<pre><code>env\n<\/code><\/pre>\n<ul>\n<li>\n<p>\u6aa2\u67e5\u6240\u6709 disk<\/p>\n<\/li>\n<\/ul>\n<pre><code>lsblk\nsudo fdisk -l\nsudo parted -l\nsudo blkid\n<\/code><\/pre>\n<ul>\n<li>\n<p>\u6aa2\u67e5 disk info and usage<\/p>\n<\/li>\n<\/ul>\n<p><span style=\"font-size: 12px;, monospace\">df -Th<\/span><\/p>\n<ul>\n<li>\n<p>\u6aa2\u67e5 disk usage per folder<\/p>\n<\/li>\n<\/ul>\n<pre><code>&nbsp;&nbsp; &nbsp;sudo du -hs *\n&nbsp;&nbsp; &nbsp;\n&nbsp; &nbsp; # all current folder\n<\/code><\/pre>\n<ul>\n<li>\n<p>\u8a2d\u5b9a proxy<\/p>\n<\/li>\n<\/ul>\n<pre><code>vi ~\/.bashrc\nexport http_proxy=&quot;http:\/\/{USER}:{PASSWORD}@{PROXY_SERVER}:{PORT}&quot;\nexport https_proxy=&quot;https:\/\/{USER}:{PASSWORD}@{PROXY_SERVER}:{PORT}&quot;\nexport ftp_proxy=&quot;http:\/\/{USER}:{PASSWORD}@{PROXY_SERVER}:{PORT}&quot;\n<\/code><\/pre>\n<ul>\n<ul>\n<li>\n<p>for yum<\/p>\n<\/li>\n<\/ul>\n<\/ul>\n<pre><code>$ sudo vim \/etc\/yum.conf\nproxy={{http:\/\/IP:port}}\n\nRef:&nbsp;http:\/\/marcustsai.blogspot.com\/2012\/07\/linux-proxy.html\n<\/code><\/pre>\n<ul>\n<ul>\n<li>\n<p>for docker<\/p>\n<\/li>\n<\/ul>\n<\/ul>\n<pre><code>1. Build service file.\n$ sudo mkdir -p \/etc\/systemd\/system\/docker.service.d\n\nHTTP:\n$ sudo vim \/etc\/systemd\/system\/docker.service.d\/http-proxy.conf\n[Service]\nEnvironment=&quot;http_proxy={{http:\/\/IP:port}}\/&quot;\n\nHTTPS:\n$ sudo vim \/etc\/systemd\/system\/docker.service.d\/https-proxy.conf\n[Service]\nEnvironment=&quot;https_proxy={{http:\/\/IP:port}}\/&quot;\n\nsudo systemctl daemon-reload\nsudo systemctl restart docker\nsystemctl show --property=Environment docker\n\nRef:&nbsp;https:\/\/github.com\/moby\/moby\/issues\/32270\n<\/code><\/pre>\n<ul>\n<li>\n<p><span style=\"font-size: 14px;font-family: gotham, helvetica, arial, sans-serif\">The best \u9032\u7a0b\u76e3\u8996\u5668<\/span><\/p>\n<\/li>\n<\/ul>\n<p><span style=\"font-size: 12px;, monospace\">apt-get install htop<\/span><\/p>\n<p><span style=\"font-size: 12px;, monospace\">more:<\/span><\/p>\n<p><span style=\"font-size: 12px;, monospace\">If you just to ask &quot;politely&quot; a process to quit use&nbsp;3 SIGQUIT.<\/span><\/p>\n<p><span style=\"font-size: 12px;, monospace\">If you want to make sure the process quits use&nbsp;9 SIGKILL.<\/span><\/p>\n<ul>\n<li>\n<p>\u91cd\u65b0\u9023\u7d50\u7a81\u7136\u65b7\u7dda\u7684 session (\u5982\u679c\u6709\u88ab\u81ea\u52d5\u5b58\u7684\u8a71)<\/p>\n<\/li>\n<\/ul>\n<p><span style=\"font-size: 9pt;font-family: Monaco\">yum load-transaction \/tmp\/yum_save_tx.2018-02-12.08-39.gOr6vZ.yumtx<\/span><\/p>\n<ul>\n<li>\n<p>\u6aa2\u67e5 memory<\/p>\n<\/li>\n<\/ul>\n<p><span style=\"font-size: 12px;, monospace\">cat \/proc\/meminfo<\/span><\/p>\n<p><span style=\"font-size: 9pt;font-family: Monaco\">free -h<\/span><\/p>\n<ul>\n<li>\n<p>\u6aa2\u67e5 listening port<\/p>\n<\/li>\n<\/ul>\n<pre><code>sudo netstat -tulpn\n\n#\u5217\u51fa occupy port \u7684 ap\nsudo fuser 80\/tcp&nbsp;\n<\/code><\/pre>\n<ul>\n<li>\n<p>Clear memory cache<\/p>\n<\/li>\n<\/ul>\n<p><span style=\"font-size: 12px;, monospace\">\u8981\u5f37\u5236\u624b\u52d5\u91cb\u653e\u6216\u6e05\u9664Linux\u4e2d\u7684Cache Memory\u53ef\u4ee5\u4f7f\u7528\u4e0b\u9762\u7684\u6307\u4ee4<\/span><\/p>\n<p><span style=\"font-size: 12px;, monospace\">echo 3 &gt; \/proc\/sys\/vm\/drop_caches<\/span><\/p>\n<p><span style=\"font-size: 12px;, monospace\">(3 \u662f\u6307\u91cb\u653epagecache\u3001dentries\u8207inodes\uff0c\u4e5f\u5c31\u662f\u91cb\u653e\u6240\u6709\u7684cache)<\/span><\/p>\n<p><span style=\"font-size: 12px;, monospace\">\u5176\u4ed6\u4e5f\u53ef\u4ee5\u4e0b\uff1a<\/span><\/p>\n<p><span style=\"font-size: 12px;, monospace\">#\u91cb\u653epagecache<\/span><\/p>\n<p><span style=\"font-size: 12px;, monospace\">echo 1 &gt; \/proc\/sys\/vm\/drop_caches<\/span><\/p>\n<p><span style=\"font-size: 12px;, monospace\">#\u91cb\u653edentries\u8207inodes<\/span><\/p>\n<p><span style=\"font-size: 12px;, monospace\">echo 2 &gt; \/proc\/sys\/vm\/drop_caches<\/span><\/p>\n<ul>\n<li>\n<p><span style=\"font-size: 14px;font-family: gotham, helvetica, arial, sans-serif\">\u6301\u7e8c\u770b\u8457 log \u66f4\u65b0<\/span><\/p>\n<\/li>\n<\/ul>\n<p><span style=\"font-size: 12px;, monospace\">less -S +F your.log<\/span><\/p>\n<p><span style=\"font-size: 12px;, monospace\">or<\/span><\/p>\n<p><span style=\"font-size: 12px;, monospace\">tail -f your.log &nbsp; (like advance cat)<\/span><\/p>\n<ul>\n<li>\n<p>\u5217\u51fa\u6240\u6709\u7cfb\u7d71\u8b8a\u6578<\/p>\n<\/li>\n<\/ul>\n<pre><code>printenv\nenv\n<\/code><\/pre>\n<ul>\n<li>\n<p>\u8a2d\u5b9a\u958b\u6a5f\u9810\u8f09\u5165\u78c1\u789f\u5340<\/p>\n<\/li>\n<\/ul>\n<p><span style=\"font-size: 12px;, monospace\">vi \/etc\/fstab<\/span><\/p>\n<p><span style=\"font-size: 12px;, monospace\">\u52a0\u5165:<\/span><\/p>\n<p><span style=\"font-size: 12px;, monospace\">\/dev\/xvdb \/data ext4 defaults 0 0<\/span><\/p>\n<ul>\n<li>\n<p>Customize creating SWAP partition<\/p>\n<\/li>\n<\/ul>\n<p><span style=\"font-size: 9pt;font-family: Monaco\">1. \u5efa\u7acb\u9069\u7576\u5927\u5c0f\u7684\u6a94\u6848(ex. 512MB)<\/span><\/p>\n<p><span style=\"font-size: 9pt;font-family: Monaco\">sudo dd if=\/dev\/zero of=\/etc\/swap.img bs=1M count=512<\/span><\/p>\n<p><span style=\"font-size: 9pt;font-family: Monaco\">2. \u5c07\u6a94\u6848\u683c\u5f0f\u5316\u70baswap\u683c\u5f0f<\/span><\/p>\n<p><span style=\"font-size: 9pt;font-family: Monaco\">sudo mkswap \/etc\/swap.img<\/span><\/p>\n<p><span style=\"font-size: 9pt;font-family: Monaco\">3. \u555f\u7528\u8a72swap<\/span><\/p>\n<p><span style=\"font-size: 9pt;font-family: Monaco\">sudo swapon \/etc\/swap.img<\/span><\/p>\n<p><span style=\"font-size: 9pt;font-family: Monaco\">\u5982\u679c\u5e0c\u671b\u8a72\u6a94\u6848\u5728\u6bcf\u6b21\u958b\u6a5f\u90fd\u53ef\u4ee5\u81ea\u52d5\u639b\u8f09\uff0c\u53ef\u4ee5\u900f\u904e\u8a2d\u5b9a\/etc\/fstab\u6a94\u6848\u4f86\u8b93swap\u53ef\u4ee5\u81ea\u52d5\u639b\u8f09<\/span><\/p>\n<p><span style=\"font-size: 9pt;font-family: Monaco\">vi \/etc\/fstab<\/span><\/p>\n<p><span style=\"font-size: 9pt;font-family: Monaco\">\u52a0\u5165:<\/span><\/p>\n<p><span style=\"font-size: 9pt;font-family: Monaco\">\/etc\/swap.img swap swap defaults 0 0<\/span><\/p>\n<ul>\n<li>\n<p><span style=\"font-size: 13.3333px;line-height: 1.45\">nohup command :<\/span><\/p>\n<\/li>\n<\/ul>\n<p><span style=\"font-size: 12px;, monospace\">nohup&nbsp;does not disconnect from terminal, it makes your app ignore SIGHUP, and (usually) redirects stdout\/stderr. Run&nbsp;jobs&nbsp;in your terminal. It may just be a background job, and you can bring it back with&nbsp;fg. I don&apos;t know how to get stderr\/stdout once you redirect it.<\/span><\/p>\n<ul>\n<li>\n<p><span style=\"font-size: 11pt;font-family: Arial\">\u591a\u4efb\u52d9\u7ba1\u7406<\/span><\/p>\n<\/li>\n<ul>\n<li>\n<p><span style=\"font-size: 15px;, Helvetica, sans-serif\">screen command:<\/span><\/p>\n<p>TL;DR;<\/p>\n<p><span style=\"font-size: 12px;, monospace\">screen -S paportal -c \/var\/socketlog\/pa.screenrc -L<\/span><\/p>\n<p><span style=\"font-size: 12px;, monospace\">Ctrl + a, Ctrl + d<\/span><\/p>\n<p><span style=\"font-size: 12px;, monospace\">screen &nbsp; &nbsp;=&gt; \u958b\u555f\u4e00\u500b\u65b0&nbsp;&nbsp;terminal socket<\/span><\/p>\n<p><span style=\"font-size: 12px;, monospace\">screen -L &nbsp;=&gt; &nbsp;\u958b\u555f\u65b0 screen + \u756b\u9762\u7d00\u9304\u529f\u80fd<\/span><\/p>\n<p><span style=\"font-size: 12px;, monospace\">screen -S [Socket Name] =&gt; \u81ea\u8a02 Socket \u540d\u7a31<\/span><\/p>\n<p><span style=\"font-size: 12px;, monospace\">echo $STY &nbsp; &nbsp;=&gt; &nbsp;\u986f\u793a\u7576\u524d screen<\/span><\/p>\n<p><span style=\"font-size: 12px;, monospace\">Ctrl + a, Ctrl + H &nbsp; =&gt; &nbsp;\u5f9e\u73fe\u6709 screen +&nbsp;\u756b\u9762\u7d00\u9304\u529f\u80fd<\/span><\/p>\n<p><span style=\"font-size: 12px;, monospace\">screen -ls(-list) &nbsp; =&gt; &nbsp;\u770b\u6240\u6709 jobs<\/span><\/p>\n<p><span style=\"font-size: 12px;, monospace\">screen -r&nbsp; {optional: id or keyword} &nbsp; =&gt; &nbsp;\u559a\u56de screen<\/span><\/p>\n<p><span style=\"font-size: 12px;, monospace\">Ctrl + a, Ctrl + d &nbsp; =&gt; &nbsp;detach \u5207\u5230\u80cc\u666f\u57f7\u884c<\/span><\/p>\n<p><span style=\"font-size: 12px;, monospace\">Ctrl + a, :, sessionname [nameyouwant] =&gt; \u4fee\u6539 screen \u540d\u7a31<\/span><\/p>\n<p><span style=\"font-size: 12px;, monospace\">screen -S {id or keyword} -X quit &nbsp; &nbsp;=&gt; &nbsp;\u522a\u9664\u6307\u5b9a screen<\/span><\/p>\n<p><span>PS. &nbsp; .screenrc sample:<\/span><\/p>\n<p><a href=\"https:\/\/gist.github.com\/MagicJohnJang\/aa4cc892ffe8c23df06f396356560d79\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<\/a> <span><a href=\"https:\/\/gist.github.com\/MagicJohnJang\/aa4cc892ffe8c23df06f396356560d79\">https:\/\/gist.github.com\/MagicJohnJang\/aa4cc892ffe8c23df06f396356560d79<\/a><\/span><\/p>\n<\/li>\n<li>\n<p><span style=\"font-size: 14px;font-family: gotham, helvetica, arial, sans-serif\">\u80cc\u666f\u5de5\u4f5c by Jobs<\/span><\/p>\n<\/li>\n<ul>\n<li>\n<p><span style=\"font-size: 14px;font-family: gotham, helvetica, arial, sans-serif\">\u5c07\u5de5\u4f5c\u5207\u5230\u80cc\u666f\u57f7\u884c+\u66ab\u505c<\/span><\/p>\n<\/li>\n<\/ul>\n<\/ul>\n<\/ul>\n<p><span style=\"font-size: 12px;, monospace\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [Ctrl] + z<\/span><\/p>\n<ul>\n<ul>\n<ul>\n<li>\n<p><span style=\"font-size: 14px;font-family: gotham, helvetica, arial, sans-serif\">\u5c07\u5de5\u4f5c\u5f9e\u80cc\u666f\u559a\u56de\u57f7\u884c<\/span><\/p>\n<\/li>\n<\/ul>\n<\/ul>\n<\/ul>\n<p><span style=\"font-size: 12px;, monospace\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fg [jobnumber]<\/span><\/p>\n<ul>\n<ul>\n<ul>\n<li>\n<p><span style=\"font-size: 14px;font-family: gotham, helvetica, arial, sans-serif\">\u5c07\u4efb\u52d9\u653e\u5230\u5f8c\u53f0\u4e2d\u53bb\u8655\u7406<\/span><\/p>\n<\/li>\n<\/ul>\n<\/ul>\n<\/ul>\n<p><span style=\"font-size: 12px;, monospace\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; bg [jobnumber]<\/span><\/p>\n<ul>\n<ul>\n<ul>\n<li>\n<p><span style=\"font-size: 14px;font-family: gotham, helvetica, arial, sans-serif\">\u67e5\u770b\u5f8c\u53f0\u7684\u5de5\u4f5c\u72c0\u614b<\/span><\/p>\n<\/li>\n<\/ul>\n<\/ul>\n<\/ul>\n<p><span style=\"font-size: 12px;, monospace\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; jobs -l<\/span><\/p>\n<ul>\n<ul>\n<ul>\n<li>\n<p><span style=\"font-size: 14px;font-family: gotham, helvetica, arial, sans-serif\">\u7ba1\u7406\u5f8c\u53f0\u7684\u4efb\u52d9<\/span><\/p>\n<\/li>\n<\/ul>\n<\/ul>\n<\/ul>\n<p><span style=\"font-size: 12px;, monospace\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; kill [pid]<\/span><\/p>\n<ul>\n<ul>\n<ul>\n<li>\n<p><span style=\"font-size: 14px;font-family: gotham, helvetica, arial, sans-serif\">&amp; \u5c07\u6307\u4ee4\u4e1f\u5230\u5f8c\u53f0\u4e2d\u53bb\u57f7\u884c<\/span><\/p>\n<\/li>\n<\/ul>\n<\/ul>\n<li>\n<p>\u8b8a\u66f4\u7fa4\u7d44<\/p>\n<\/li>\n<\/ul>\n<p><span style=\"font-size: 12px;, monospace\">chgrp [-R] [GroupName] [dirname\/filename]<\/span><\/p>\n<p><span style=\"font-size: 12px;, monospace\">ex.<\/span><\/p>\n<p><span style=\"font-size: 12px;, monospace\">chgrp -R pls-rd-rw \/data<\/span><\/p>\n<ul>\n<li>\n<p>\u8b8a\u66f4\u64c1\u6709\u8005<\/p>\n<\/li>\n<\/ul>\n<p><span style=\"font-size: 12px;, monospace\">chown [-R] [\u5e33\u865f\u540d\u7a31] [\u6a94\u6848\u6216\u76ee\u9304]<\/span><\/p>\n<ul>\n<li>\n<p>\u8b8a\u66f4\u6b0a\u9650<\/p>\n<\/li>\n<\/ul>\n<p><span style=\"font-size: 9pt;font-family: Monaco\">chmod u=rwx,go+rx filename&nbsp; &nbsp; &gt;&nbsp;<\/span><span style=\"font-size: 9pt;font-family: Monaco\">(1)<\/span><span style=\"font-size: 9pt;font-family: Monaco;font-weight: bold\">u<\/span><span style=\"font-size: 9pt;font-family: Monaco\">ser (2)<\/span><span style=\"font-size: 9pt;font-family: Monaco;font-weight: bold\">g<\/span><span style=\"font-size: 9pt;font-family: Monaco\">roup (3)<\/span><span style=\"font-size: 9pt;font-family: Monaco;font-weight: bold\">o<\/span><span style=\"font-size: 9pt;font-family: Monaco\">thers (4)<\/span><span style=\"font-size: 9pt;font-family: Monaco;font-weight: bold\">a<\/span><span style=\"font-size: 9pt;font-family: Monaco\">ll ; &nbsp;<\/span><span style=\"font-size: 9pt;font-family: Monaco\">+(\u52a0\u5165) &nbsp;-(\u9664\u53bb) &nbsp;=(\u8a2d\u5b9a)<\/span><\/p>\n<p><span style=\"font-size: 9pt;, monospace\">chmod [-R] 754 [\u6a94\u6848\u6216\u76ee\u9304]&nbsp; &nbsp;&gt;&nbsp;<\/span><span style=\"font-size: 9pt;letter-spacing: normal;text-indent: 0px;, \u65b0\u7d30\u660e\u9ad4, serif\">[4+2+1][4+0+1][4+0+0] &nbsp;&nbsp;<\/span><\/p>\n<p><span style=\"letter-spacing: normal;text-indent: 0px;font-size: 9pt;, \u65b0\u7d30\u660e\u9ad4, serif\">ex.<\/span><\/p>\n<p><span style=\"font-size: 9pt\">sudo chgrp -R pls-rd-rw &nbsp;\/data\/notebooks\/<\/span><\/p>\n<p><span style=\"font-size: 9pt\">sudo chmod -R g+rwx \/data\/notebooks\/<\/span><\/p>\n<ul>\n<li>\n<p>Check occupied port (like 80 port) and kill it<\/p>\n<\/li>\n<\/ul>\n<p><span style=\"font-size: 9pt;font-family: Monaco;line-height: 14px\"># Choice one<\/span><\/p>\n<p><span style=\"letter-spacing: normal;text-indent: 0px;font-size: 9pt;font-family: Monaco\">netstat -an | grep &quot;:80&quot;<\/span><\/p>\n<p><span style=\"letter-spacing: normal;text-indent: 0px;font-size: 9pt;, monospace\">lsof -i tcp:80<\/span><\/p>\n<p><span style=\"letter-spacing: normal;text-indent: 0px;font-size: 9pt;, monospace\"># And Kill<\/span><\/p>\n<p><span style=\"letter-spacing: normal;text-indent: 0px;font-size: 9pt;, monospace\">kill -9 &lt;PID&gt; #where &lt;PID&gt; is the process id returned by lsof<\/span><\/p>\n<ul>\n<li>\n<p>Check remote port connection<\/p>\n<\/li>\n<\/ul>\n<pre><code>telnet&nbsp;{ip\/hostname} {port}\ncurl {ip\/hostname}:{port}\nwget -qS -O- {ip\/hostname}:{port}\n<\/code><\/pre>\n<ul>\n<li>\n<p>\u5c0b\u627e\u8cc7\u6599\u593e\u6216\u6a94\u6848<\/p>\n<\/li>\n<\/ul>\n<p><span style=\"border: 0px;font-size: 13px;width: auto;max-height: 600px;overflow: auto;letter-spacing: normal;text-indent: 0px;, monospace, sans-serif\">find \/ -type d -name &apos;YOUR_FOLDER_NAME&apos;<\/span><\/p>\n<ul>\n<li>\n<p>\u5c0b\u627e\u8cc7\u6599\u593e\u6216\u6a94\u6848\u4e26\u8a08\u7b97\u5bb9\u91cf<\/p>\n<\/li>\n<\/ul>\n<pre><code>sudo du -hs $(sudo find \/ -type d -name &quot;{folderName}&quot;)\n<\/code><\/pre>\n<ul>\n<li>\n<p>Cron Job log<\/p>\n<\/li>\n<\/ul>\n<pre><code>cat \/var\/log\/syslog\n01 14 * * * \/home\/joe\/myscript &gt;&gt; \/home\/log\/myscript.log 2&gt;&amp;1&nbsp; &nbsp;#&nbsp;stderr to stdout\n<\/code><\/pre>\n<ul>\n<li>\n<p>Cron Job setting<\/p>\n<\/li>\n<\/ul>\n<pre><code>crontab -l\ncrontab -e\n\n#\/var\/spool\/cron\/crontabs\n<\/code><\/pre>\n<p><img decoding=\"async\" src=\"https:\/\/john.pentaidea.com\/wp-content\/uploads\/2020\/05\/29d4ffe21a5185bbdbd19074f375da55.png\" \/><\/p>\n<ul>\n<li>\n<p>Keep typing repeatedly<\/p>\n<\/li>\n<\/ul>\n<pre><code>watch -n 5 {your_command}\n<\/code><\/pre>\n<ul>\n<li>\n<p>curl \u6e2c\u8a66 connection<\/p>\n<\/li>\n<\/ul>\n<pre><code># test https\ncurl --insecure -v https:\/\/www.google.com 2&gt;&amp;1 | awk &apos;BEGIN { cert=0 } \/^\\* Server certificate:\/ { cert=1 } \/^\\*\/ { if (cert) print }&apos;\n<\/code><\/pre>\n<ul>\n<li>\n<p>Check server name by IP<\/p>\n<\/li>\n<\/ul>\n<pre><code>nslookup {IP}\n<\/code><\/pre>\n<ul>\n<li>\n<p>Prompt any key to close the screen (readline, read input)<\/p>\n<\/li>\n<\/ul>\n<pre><code>read -n 1 -s -r -p &quot;Press any key to close&quot;\n\n# input to varible\nread varname\n<\/code><\/pre>\n<ul>\n<li><\/li>\n<\/ul>\n<p><span style=\"font-size: 24px\"><span style=\"font-size: 24px\"><span style=\"font-size: 24px;text-decoration: underline\">Jupyter<\/span><\/span><\/span><\/p>\n<ul>\n<li>\n<p>Enable interaction widgets<\/p>\n<\/li>\n<\/ul>\n<pre><code>pip3 install ipywidgets\njupyter nbextension enable --py widgetsnbextension\n<\/code><\/pre>\n<ul>\n<li>\n<p>Shortcut Key:<\/p>\n<\/li>\n<\/ul>\n<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"font-size: 12.8px;text-align: left;margin: 0px;letter-spacing: normal;text-indent: 0px;width: 100%\" width=\"100%\">\n<tr style=\"font-size: 12.8px;text-align: left\">\n<td style=\"font-size: 12.8px;text-align: left\" valign=\"top\" width=\"49%\">\n<div>\n<h3><span style=\"font-size: 12.8px;, Arial, Helvetica, sans-serif;font-style: normal;font-weight: normal\">Command Mode (press Esc to enable)<\/span><\/h3>\n<div>\n<div><\/div>\n<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"font-size: 12.8px;text-align: left;border-collapse: collapse;margin: 0px;padding: 0px;width: 460.8px\">\n<tr style=\"font-size: 12.8px;text-align: left\">\n<td style=\"font-size: 12.8px;text-align: left\" valign=\"top\">\n<div><span style=\"font-size: 12.8px;, Arial, Helvetica, sans-serif;font-style: normal;font-weight: normal\">Enter<\/span><\/div>\n<\/td>\n<td style=\"font-size: 12.8px;text-align: left\" valign=\"top\">\n<div><span style=\"font-size: 12.8px;, Arial, Helvetica, sans-serif;font-style: normal;font-weight: normal\">enter edit mode<\/span><\/div>\n<\/td>\n<\/tr>\n<tr style=\"font-size: 12.8px;text-align: left\">\n<td style=\"font-size: 12.8px;text-align: left\" valign=\"top\">\n<div><span style=\"background-color: white;font-size: 12.8px;, Arial, Helvetica, sans-serif;font-style: normal;font-weight: normal\">Shift-\u00adEnter<\/span><\/div>\n<\/td>\n<td style=\"font-size: 12.8px;text-align: left\" valign=\"top\">\n<div><span style=\"background-color: white;font-size: 12.8px;, Arial, Helvetica, sans-serif;font-style: normal;font-weight: normal\">run cell, select below<\/span><\/div>\n<\/td>\n<\/tr>\n<tr style=\"font-size: 12.8px;text-align: left\">\n<td style=\"font-size: 12.8px;text-align: left\" valign=\"top\">\n<div><span style=\"font-size: 12.8px;, Arial, Helvetica, sans-serif;font-style: normal;font-weight: normal\">Ctrl-Enter<\/span><\/div>\n<\/td>\n<td style=\"font-size: 12.8px;text-align: left\" valign=\"top\">\n<div><span style=\"font-size: 12.8px;, Arial, Helvetica, sans-serif;font-style: normal;font-weight: normal\">run cell<\/span><\/div>\n<\/td>\n<\/tr>\n<tr style=\"font-size: 12.8px;text-align: left\">\n<td style=\"font-size: 12.8px;text-align: left\" valign=\"top\">\n<div><span style=\"background-color: white;font-size: 12.8px;, Arial, Helvetica, sans-serif;font-style: normal;font-weight: normal\">Alt-Enter<\/span><\/div>\n<\/td>\n<td style=\"font-size: 12.8px;text-align: left\" valign=\"top\">\n<div><span style=\"background-color: white;font-size: 12.8px;, Arial, Helvetica, sans-serif;font-style: normal;font-weight: normal\">run cell, insert below<\/span><\/div>\n<\/td>\n<\/tr>\n<tr style=\"font-size: 12.8px;text-align: left\">\n<td style=\"font-size: 12.8px;text-align: left\" valign=\"top\">\n<div><span style=\"font-size: 12.8px;, Arial, Helvetica, sans-serif;font-style: normal;font-weight: normal\">Y<\/span><\/div>\n<\/td>\n<td style=\"font-size: 12.8px;text-align: left\" valign=\"top\">\n<div><span style=\"font-size: 12.8px;, Arial, Helvetica, sans-serif;font-style: normal;font-weight: normal\">to code<\/span><\/div>\n<\/td>\n<\/tr>\n<tr style=\"font-size: 12.8px;text-align: left\">\n<td style=\"font-size: 12.8px;text-align: left\" valign=\"top\">\n<div><span style=\"background-color: white;font-size: 12.8px;, Arial, Helvetica, sans-serif;font-style: normal;font-weight: normal\">M<\/span><\/div>\n<\/td>\n<td style=\"font-size: 12.8px;text-align: left\" valign=\"top\">\n<div><span style=\"background-color: white;font-size: 12.8px;, Arial, Helvetica, sans-serif;font-style: normal;font-weight: normal\">to markdown<\/span><\/div>\n<\/td>\n<\/tr>\n<tr style=\"font-size: 12.8px;text-align: left\">\n<td style=\"font-size: 12.8px;text-align: left\" valign=\"top\">\n<div><span style=\"font-size: 12.8px;, Arial, Helvetica, sans-serif;font-style: normal;font-weight: normal\">R<\/span><\/div>\n<\/td>\n<td style=\"font-size: 12.8px;text-align: left\" valign=\"top\">\n<div><span style=\"font-size: 12.8px;, Arial, Helvetica, sans-serif;font-style: normal;font-weight: normal\">to raw<\/span><\/div>\n<\/td>\n<\/tr>\n<tr style=\"font-size: 12.8px;text-align: left\">\n<td style=\"font-size: 12.8px;text-align: left\" valign=\"top\">\n<div><span style=\"background-color: white;font-size: 12.8px;, Arial, Helvetica, sans-serif;font-style: normal;font-weight: normal\">1<\/span><\/div>\n<\/td>\n<td style=\"font-size: 12.8px;text-align: left\" valign=\"top\">\n<div><span style=\"background-color: white;font-size: 12.8px;, Arial, Helvetica, sans-serif;font-style: normal;font-weight: normal\">to heading 1<\/span><\/div>\n<\/td>\n<\/tr>\n<tr style=\"font-size: 12.8px;text-align: left\">\n<td style=\"font-size: 12.8px;text-align: left\" valign=\"top\">\n<div><span style=\"font-size: 12.8px;, Arial, Helvetica, sans-serif;font-style: normal;font-weight: normal\">2,3,4,5,6<\/span><\/div>\n<\/td>\n<td style=\"font-size: 12.8px;text-align: left\" valign=\"top\">\n<div><span style=\"font-size: 12.8px;, Arial, Helvetica, sans-serif;font-style: normal;font-weight: normal\">to heading 2,3,4,5,6<\/span><\/div>\n<\/td>\n<\/tr>\n<tr style=\"font-size: 12.8px;text-align: left\">\n<td style=\"font-size: 12.8px;text-align: left\" valign=\"top\">\n<div><span style=\"background-color: white;font-size: 12.8px;, Arial, Helvetica, sans-serif;font-style: normal;font-weight: normal\">Up\/K<\/span><\/div>\n<\/td>\n<td style=\"font-size: 12.8px;text-align: left\" valign=\"top\">\n<div><span style=\"background-color: white;font-size: 12.8px;, Arial, Helvetica, sans-serif;font-style: normal;font-weight: normal\">select cell above<\/span><\/div>\n<\/td>\n<\/tr>\n<tr style=\"font-size: 12.8px;text-align: left\">\n<td style=\"font-size: 12.8px;text-align: left\" valign=\"top\">\n<div><span style=\"font-size: 12.8px;, Arial, Helvetica, sans-serif;font-style: normal;font-weight: normal\">Down\/J<\/span><\/div>\n<\/td>\n<td style=\"font-size: 12.8px;text-align: left\" valign=\"top\">\n<div><span style=\"font-size: 12.8px;, Arial, Helvetica, sans-serif;font-style: normal;font-weight: normal\">select cell below<\/span><\/div>\n<\/td>\n<\/tr>\n<tr style=\"font-size: 12.8px;text-align: left\">\n<td style=\"font-size: 12.8px;text-align: left\" valign=\"top\">\n<div><span style=\"background-color: white;font-size: 12.8px;, Arial, Helvetica, sans-serif;font-style: normal;font-weight: normal\">A\/B<\/span><\/div>\n<\/td>\n<td style=\"font-size: 12.8px;text-align: left\" valign=\"top\">\n<div><span style=\"background-color: white;font-size: 12.8px;, Arial, Helvetica, sans-serif;font-style: normal;font-weight: normal\">insert cell above\/\u00adbelow<\/span><\/div>\n<\/td>\n<\/tr>\n<tr style=\"font-size: 12.8px;text-align: left\">\n<td style=\"font-size: 12.8px;text-align: left\" valign=\"top\">\n<div><span style=\"font-size: 12.8px;, Arial, Helvetica, sans-serif;font-style: normal;font-weight: normal\">X<\/span><\/div>\n<\/td>\n<td style=\"font-size: 12.8px;text-align: left\" valign=\"top\">\n<div><span style=\"font-size: 12.8px;, Arial, Helvetica, sans-serif;font-style: normal;font-weight: normal\">cut selected cell<\/span><\/div>\n<\/td>\n<\/tr>\n<tr style=\"font-size: 12.8px;text-align: left\">\n<td style=\"font-size: 12.8px;text-align: left\" valign=\"top\">\n<div><span style=\"background-color: white;font-size: 12.8px;, Arial, Helvetica, sans-serif;font-style: normal;font-weight: normal\">C<\/span><\/div>\n<\/td>\n<td style=\"font-size: 12.8px;text-align: left\" valign=\"top\">\n<div><span style=\"background-color: white;font-size: 12.8px;, Arial, Helvetica, sans-serif;font-style: normal;font-weight: normal\">copy selected cell<\/span><\/div>\n<\/td>\n<\/tr>\n<tr style=\"font-size: 12.8px;text-align: left\">\n<td style=\"font-size: 12.8px;text-align: left\" valign=\"top\">\n<div><span style=\"font-size: 12.8px;, Arial, Helvetica, sans-serif;font-style: normal;font-weight: normal\">Shift-V<\/span><\/div>\n<\/td>\n<td style=\"font-size: 12.8px;text-align: left\" valign=\"top\">\n<div><span style=\"font-size: 12.8px;, Arial, Helvetica, sans-serif;font-style: normal;font-weight: normal\">paste cell above<\/span><\/div>\n<\/td>\n<\/tr>\n<tr style=\"font-size: 12.8px;text-align: left\">\n<td style=\"font-size: 12.8px;text-align: left\" valign=\"top\">\n<div><span style=\"background-color: white;font-size: 12.8px;, Arial, Helvetica, sans-serif;font-style: normal;font-weight: normal\">V<\/span><\/div>\n<\/td>\n<td style=\"font-size: 12.8px;text-align: left\" valign=\"top\">\n<div><span style=\"background-color: white;font-size: 12.8px;, Arial, Helvetica, sans-serif;font-style: normal;font-weight: normal\">paste cell below<\/span><\/div>\n<\/td>\n<\/tr>\n<tr style=\"font-size: 12.8px;text-align: left\">\n<td style=\"font-size: 12.8px;text-align: left\" valign=\"top\">\n<div><span style=\"font-size: 12.8px;, Arial, Helvetica, sans-serif;font-style: normal;font-weight: normal\">Z<\/span><\/div>\n<\/td>\n<td style=\"font-size: 12.8px;text-align: left\" valign=\"top\">\n<div><span style=\"font-size: 12.8px;, Arial, Helvetica, sans-serif;font-style: normal;font-weight: normal\">undo last cell deletion<\/span><\/div>\n<\/td>\n<\/tr>\n<tr style=\"font-size: 12.8px;text-align: left\">\n<td style=\"font-size: 12.8px;text-align: left\" valign=\"top\">\n<div><span style=\"background-color: white;font-size: 12.8px;, Arial, Helvetica, sans-serif;font-style: normal;font-weight: normal\">D,D<\/span><\/div>\n<\/td>\n<td style=\"font-size: 12.8px;text-align: left\" valign=\"top\">\n<div><span style=\"background-color: white;font-size: 12.8px;, Arial, Helvetica, sans-serif;font-style: normal;font-weight: normal\">delete selected cell<\/span><\/div>\n<\/td>\n<\/tr>\n<tr style=\"font-size: 12.8px;text-align: left\">\n<td style=\"font-size: 12.8px;text-align: left\" valign=\"top\">\n<div><span style=\"font-size: 12.8px;, Arial, Helvetica, sans-serif;font-style: normal;font-weight: normal\">Shift-M<\/span><\/div>\n<\/td>\n<td style=\"font-size: 12.8px;text-align: left\" valign=\"top\">\n<div><span style=\"font-size: 12.8px;, Arial, Helvetica, sans-serif;font-style: normal;font-weight: normal\">merge cell below<\/span><\/div>\n<\/td>\n<\/tr>\n<tr style=\"font-size: 12.8px;text-align: left\">\n<td style=\"font-size: 12.8px;text-align: left\" valign=\"top\">\n<div><span style=\"background-color: white;font-size: 12.8px;, Arial, Helvetica, sans-serif;font-style: normal;font-weight: normal\">Ctrl-S<\/span><\/div>\n<\/td>\n<td style=\"font-size: 12.8px;text-align: left\" valign=\"top\">\n<div><span style=\"background-color: white;font-size: 12.8px;, Arial, Helvetica, sans-serif;font-style: normal;font-weight: normal\">Save and Checkpoint<\/span><\/div>\n<\/td>\n<\/tr>\n<tr style=\"font-size: 12.8px;text-align: left\">\n<td style=\"font-size: 12.8px;text-align: left\" valign=\"top\">\n<div><span style=\"font-size: 12.8px;, Arial, Helvetica, sans-serif;font-style: normal;font-weight: normal\">L<\/span><\/div>\n<\/td>\n<td style=\"font-size: 12.8px;text-align: left\" valign=\"top\">\n<div><span style=\"font-size: 12.8px;, Arial, Helvetica, sans-serif;font-style: normal;font-weight: normal\">toggle line numbers<\/span><\/div>\n<\/td>\n<\/tr>\n<tr style=\"font-size: 12.8px;text-align: left\">\n<td style=\"font-size: 12.8px;text-align: left\" valign=\"top\">\n<div><span style=\"background-color: white;font-size: 12.8px;, Arial, Helvetica, sans-serif;font-style: normal;font-weight: normal\">O<\/span><\/div>\n<\/td>\n<td style=\"font-size: 12.8px;text-align: left\" valign=\"top\">\n<div><span style=\"background-color: white;font-size: 12.8px;, Arial, Helvetica, sans-serif;font-style: normal;font-weight: normal\">toggle output<\/span><\/div>\n<\/td>\n<\/tr>\n<tr style=\"font-size: 12.8px;text-align: left\">\n<td style=\"font-size: 12.8px;text-align: left\" valign=\"top\">\n<div><span style=\"font-size: 12.8px;, Arial, Helvetica, sans-serif;font-style: normal;font-weight: normal\">Shift-O<\/span><\/div>\n<\/td>\n<td style=\"font-size: 12.8px;text-align: left\" valign=\"top\">\n<div><span style=\"font-size: 12.8px;, Arial, Helvetica, sans-serif;font-style: normal;font-weight: normal\">toggle output scrolling<\/span><\/div>\n<\/td>\n<\/tr>\n<tr style=\"font-size: 12.8px;text-align: left\">\n<td style=\"font-size: 12.8px;text-align: left\" valign=\"top\">\n<div><span style=\"background-color: white;font-size: 12.8px;, Arial, Helvetica, sans-serif;font-style: normal;font-weight: normal\">Esc<\/span><\/div>\n<\/td>\n<td style=\"font-size: 12.8px;text-align: left\" valign=\"top\">\n<div><span style=\"background-color: white;font-size: 12.8px;, Arial, Helvetica, sans-serif;font-style: normal;font-weight: normal\">close pager<\/span><\/div>\n<\/td>\n<\/tr>\n<tr style=\"font-size: 12.8px;text-align: left\">\n<td style=\"font-size: 12.8px;text-align: left\" valign=\"top\">\n<div><span style=\"font-size: 12.8px;, Arial, Helvetica, sans-serif;font-style: normal;font-weight: normal\">H<\/span><\/div>\n<\/td>\n<td style=\"font-size: 12.8px;text-align: left\" valign=\"top\">\n<div><span style=\"font-size: 12.8px;, Arial, Helvetica, sans-serif;font-style: normal;font-weight: normal\">show keyboard shortcut help dialog<\/span><\/div>\n<\/td>\n<\/tr>\n<tr style=\"font-size: 12.8px;text-align: left\">\n<td style=\"font-size: 12.8px;text-align: left\" valign=\"top\">\n<div><span style=\"background-color: white;font-size: 12.8px;, Arial, Helvetica, sans-serif;font-style: normal;font-weight: normal\">I,I<\/span><\/div>\n<\/td>\n<td style=\"font-size: 12.8px;text-align: left\" valign=\"top\">\n<div><span style=\"background-color: white;font-size: 12.8px;, Arial, Helvetica, sans-serif;font-style: normal;font-weight: normal\">interrupt kernel<\/span><\/div>\n<\/td>\n<\/tr>\n<tr style=\"font-size: 12.8px;text-align: left\">\n<td style=\"font-size: 12.8px;text-align: left\" valign=\"top\">\n<div><span style=\"font-size: 12.8px;, Arial, Helvetica, sans-serif;font-style: normal;font-weight: normal\">0,0<\/span><\/div>\n<\/td>\n<td style=\"font-size: 12.8px;text-align: left\" valign=\"top\">\n<div><span style=\"font-size: 12.8px;, Arial, Helvetica, sans-serif;font-style: normal;font-weight: normal\">restart kernel<\/span><\/div>\n<\/td>\n<\/tr>\n<tr style=\"font-size: 12.8px;text-align: left\">\n<td style=\"font-size: 12.8px;text-align: left\" valign=\"top\">\n<div><span style=\"background-color: white;font-size: 12.8px;, Arial, Helvetica, sans-serif;font-style: normal;font-weight: normal\">Space<\/span><\/div>\n<\/td>\n<td style=\"font-size: 12.8px;text-align: left\" valign=\"top\">\n<div><span style=\"background-color: white;font-size: 12.8px;, Arial, Helvetica, sans-serif;font-style: normal;font-weight: normal\">scroll down<\/span><\/div>\n<\/td>\n<\/tr>\n<tr style=\"font-size: 12.8px;text-align: left\">\n<td style=\"font-size: 12.8px;text-align: left\" valign=\"top\">\n<div><span style=\"font-size: 12.8px;, Arial, Helvetica, sans-serif;font-style: normal;font-weight: normal\">Shift-\u00adSpace<\/span><\/div>\n<\/td>\n<td style=\"font-size: 12.8px;text-align: left\" valign=\"top\">\n<div><span style=\"font-size: 12.8px;, Arial, Helvetica, sans-serif;font-style: normal;font-weight: normal\">scroll up<\/span><\/div>\n<\/td>\n<\/tr>\n<tr style=\"font-size: 12.8px;text-align: left\">\n<td style=\"font-size: 12.8px;text-align: left\" valign=\"top\">\n<div><span style=\"background-color: white;font-size: 12.8px;, Arial, Helvetica, sans-serif;font-style: normal;font-weight: normal\">Shift<\/span><\/div>\n<\/td>\n<td style=\"font-size: 12.8px;text-align: left\" valign=\"top\">\n<div><span style=\"background-color: white;font-size: 12.8px;, Arial, Helvetica, sans-serif;font-style: normal;font-weight: normal\">ignore<\/span><\/div>\n<\/td>\n<\/tr>\n<\/table>\n<\/td>\n<td style=\"font-size: 12.8px;text-align: left\" width=\"2%\"><span style=\"font-size: 12.8px;, Arial, Helvetica, sans-serif;font-style: normal;font-weight: normal\">&nbsp;<\/span><\/td>\n<td style=\"font-size: 12.8px;text-align: left\" valign=\"top\" width=\"49%\">\n<p><h3><span style=\"font-size: 12.8px;, Arial, Helvetica, sans-serif;font-style: normal;font-weight: normal\">Edit Mode (press Enter to enable)<\/span><\/h3>\n<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"font-size: 12.8px;text-align: left;border-collapse: collapse;margin: 0px;padding: 0px;width: 460px\">\n<tr style=\"font-size: 12.8px;text-align: left\">\n<td style=\"font-size: 12.8px;text-align: left\" valign=\"top\">\n<div><span style=\"font-size: 12.8px;, Arial, Helvetica, sans-serif;font-style: normal;font-weight: normal\">Tab<\/span><\/div>\n<\/td>\n<td style=\"font-size: 12.8px;text-align: left\" valign=\"top\">\n<div><span style=\"font-size: 12.8px;, Arial, Helvetica, sans-serif;font-style: normal;font-weight: normal\">code completion or indent<\/span><\/div>\n<\/td>\n<\/tr>\n<tr style=\"font-size: 12.8px;text-align: left\">\n<td style=\"font-size: 12.8px;text-align: left\" valign=\"top\">\n<div><span style=\"background-color: white;font-size: 12.8px;, Arial, Helvetica, sans-serif;font-style: normal;font-weight: normal\">Shift-Tab<\/span><\/div>\n<\/td>\n<td style=\"font-size: 12.8px;text-align: left\" valign=\"top\">\n<div><span style=\"background-color: white;font-size: 12.8px;, Arial, Helvetica, sans-serif;font-style: normal;font-weight: normal\">tooltip<\/span><\/div>\n<\/td>\n<\/tr>\n<tr style=\"font-size: 12.8px;text-align: left\">\n<td style=\"font-size: 12.8px;text-align: left\" valign=\"top\">\n<div><span style=\"font-size: 12.8px;, Arial, Helvetica, sans-serif;font-style: normal;font-weight: normal\">Ctrl-]<\/span><\/div>\n<\/td>\n<td style=\"font-size: 12.8px;text-align: left\" valign=\"top\">\n<div><span style=\"font-size: 12.8px;, Arial, Helvetica, sans-serif;font-style: normal;font-weight: normal\">indent<\/span><\/div>\n<\/td>\n<\/tr>\n<tr style=\"font-size: 12.8px;text-align: left\">\n<td style=\"font-size: 12.8px;text-align: left\" valign=\"top\">\n<div><span style=\"background-color: white;font-size: 12.8px;, Arial, Helvetica, sans-serif;font-style: normal;font-weight: normal\">Ctrl-[<\/span><\/div>\n<\/td>\n<td style=\"font-size: 12.8px;text-align: left\" valign=\"top\">\n<div><span style=\"background-color: white;font-size: 12.8px;, Arial, Helvetica, sans-serif;font-style: normal;font-weight: normal\">dedent<\/span><\/div>\n<\/td>\n<\/tr>\n<tr style=\"font-size: 12.8px;text-align: left\">\n<td style=\"font-size: 12.8px;text-align: left\" valign=\"top\">\n<div><span style=\"font-size: 12.8px;, Arial, Helvetica, sans-serif;font-style: normal;font-weight: normal\">Ctrl-A<\/span><\/div>\n<\/td>\n<td style=\"font-size: 12.8px;text-align: left\" valign=\"top\">\n<div><span style=\"font-size: 12.8px;, Arial, Helvetica, sans-serif;font-style: normal;font-weight: normal\">select all<\/span><\/div>\n<\/td>\n<\/tr>\n<tr style=\"font-size: 12.8px;text-align: left\">\n<td style=\"font-size: 12.8px;text-align: left\" valign=\"top\">\n<div><span style=\"background-color: white;font-size: 12.8px;, Arial, Helvetica, sans-serif;font-style: normal;font-weight: normal\">Ctrl-Z<\/span><\/div>\n<\/td>\n<td style=\"font-size: 12.8px;text-align: left\" valign=\"top\">\n<div><span style=\"background-color: white;font-size: 12.8px;, Arial, Helvetica, sans-serif;font-style: normal;font-weight: normal\">undo<\/span><\/div>\n<\/td>\n<\/tr>\n<tr style=\"font-size: 12.8px;text-align: left\">\n<td style=\"font-size: 12.8px;text-align: left\" valign=\"top\">\n<div><span style=\"font-size: 12.8px;, Arial, Helvetica, sans-serif;font-style: normal;font-weight: normal\">Ctrl-S\u00adhift-Z<\/span><\/div>\n<\/td>\n<td style=\"font-size: 12.8px;text-align: left\" valign=\"top\">\n<div><span style=\"font-size: 12.8px;, Arial, Helvetica, sans-serif;font-style: normal;font-weight: normal\">redo<\/span><\/div>\n<\/td>\n<\/tr>\n<tr style=\"font-size: 12.8px;text-align: left\">\n<td style=\"font-size: 12.8px;text-align: left\" valign=\"top\">\n<div><span style=\"background-color: white;font-size: 12.8px;, Arial, Helvetica, sans-serif;font-style: normal;font-weight: normal\">Ctrl-Y<\/span><\/div>\n<\/td>\n<td style=\"font-size: 12.8px;text-align: left\" valign=\"top\">\n<div><span style=\"background-color: white;font-size: 12.8px;, Arial, Helvetica, sans-serif;font-style: normal;font-weight: normal\">redo<\/span><\/div>\n<\/td>\n<\/tr>\n<tr style=\"font-size: 12.8px;text-align: left\">\n<td style=\"font-size: 12.8px;text-align: left\" valign=\"top\">\n<div><span style=\"font-size: 12.8px;, Arial, Helvetica, sans-serif;font-style: normal;font-weight: normal\">Ctrl-Home<\/span><\/div>\n<\/td>\n<td style=\"font-size: 12.8px;text-align: left\" valign=\"top\">\n<div><span style=\"font-size: 12.8px;, Arial, Helvetica, sans-serif;font-style: normal;font-weight: normal\">go to cell start<\/span><\/div>\n<\/td>\n<\/tr>\n<tr style=\"font-size: 12.8px;text-align: left\">\n<td style=\"font-size: 12.8px;text-align: left\" valign=\"top\">\n<div><span style=\"background-color: white;font-size: 12.8px;, Arial, Helvetica, sans-serif;font-style: normal;font-weight: normal\">Ctrl-Up<\/span><\/div>\n<\/td>\n<td style=\"font-size: 12.8px;text-align: left\" valign=\"top\">\n<div><span style=\"background-color: white;font-size: 12.8px;, Arial, Helvetica, sans-serif;font-style: normal;font-weight: normal\">go to cell start<\/span><\/div>\n<\/td>\n<\/tr>\n<tr style=\"font-size: 12.8px;text-align: left\">\n<td style=\"font-size: 12.8px;text-align: left\" valign=\"top\">\n<div><span style=\"font-size: 12.8px;, Arial, Helvetica, sans-serif;font-style: normal;font-weight: normal\">Ctrl-End<\/span><\/div>\n<\/td>\n<td style=\"font-size: 12.8px;text-align: left\" valign=\"top\">\n<div><span style=\"font-size: 12.8px;, Arial, Helvetica, sans-serif;font-style: normal;font-weight: normal\">go to cell end<\/span><\/div>\n<\/td>\n<\/tr>\n<tr style=\"font-size: 12.8px;text-align: left\">\n<td style=\"font-size: 12.8px;text-align: left\" valign=\"top\">\n<div><span style=\"background-color: white;font-size: 12.8px;, Arial, Helvetica, sans-serif;font-style: normal;font-weight: normal\">Ctrl-Down<\/span><\/div>\n<\/td>\n<td style=\"font-size: 12.8px;text-align: left\" valign=\"top\">\n<div><span style=\"background-color: white;font-size: 12.8px;, Arial, Helvetica, sans-serif;font-style: normal;font-weight: normal\">go to cell end<\/span><\/div>\n<\/td>\n<\/tr>\n<tr style=\"font-size: 12.8px;text-align: left\">\n<td style=\"font-size: 12.8px;text-align: left\" valign=\"top\">\n<div><span style=\"font-size: 12.8px;, Arial, Helvetica, sans-serif;font-style: normal;font-weight: normal\">Ctrl-Left<\/span><\/div>\n<\/td>\n<td style=\"font-size: 12.8px;text-align: left\" valign=\"top\">\n<div><span style=\"font-size: 12.8px;, Arial, Helvetica, sans-serif;font-style: normal;font-weight: normal\">go one word left<\/span><\/div>\n<\/td>\n<\/tr>\n<tr style=\"font-size: 12.8px;text-align: left\">\n<td style=\"font-size: 12.8px;text-align: left\" valign=\"top\">\n<div><span style=\"background-color: white;font-size: 12.8px;, Arial, Helvetica, sans-serif;font-style: normal;font-weight: normal\">Ctrl-Right<\/span><\/div>\n<\/td>\n<td style=\"font-size: 12.8px;text-align: left\" valign=\"top\">\n<div><span style=\"background-color: white;font-size: 12.8px;, Arial, Helvetica, sans-serif;font-style: normal;font-weight: normal\">go one word right<\/span><\/div>\n<\/td>\n<\/tr>\n<tr style=\"font-size: 12.8px;text-align: left\">\n<td style=\"font-size: 12.8px;text-align: left\" valign=\"top\">\n<div><span style=\"font-size: 12.8px;, Arial, Helvetica, sans-serif;font-style: normal;font-weight: normal\">Ctrl-B\u00adack\u00adspace<\/span><\/div>\n<\/td>\n<td style=\"font-size: 12.8px;text-align: left\" valign=\"top\">\n<div><span style=\"font-size: 12.8px;, Arial, Helvetica, sans-serif;font-style: normal;font-weight: normal\">delete word before<\/span><\/div>\n<\/td>\n<\/tr>\n<tr style=\"font-size: 12.8px;text-align: left\">\n<td style=\"font-size: 12.8px;text-align: left\" valign=\"top\">\n<div><span style=\"background-color: white;font-size: 12.8px;, Arial, Helvetica, sans-serif;font-style: normal;font-weight: normal\">Ctrl-D\u00adelete<\/span><\/div>\n<\/td>\n<td style=\"font-size: 12.8px;text-align: left\" valign=\"top\">\n<div><span style=\"background-color: white;font-size: 12.8px;, Arial, Helvetica, sans-serif;font-style: normal;font-weight: normal\">delete word after<\/span><\/div>\n<\/td>\n<\/tr>\n<tr style=\"font-size: 12.8px;text-align: left\">\n<td style=\"font-size: 12.8px;text-align: left\" valign=\"top\">\n<div><span style=\"font-size: 12.8px;, Arial, Helvetica, sans-serif;font-style: normal;font-weight: normal\">Esc<\/span><\/div>\n<\/td>\n<td style=\"font-size: 12.8px;text-align: left\" valign=\"top\">\n<div><span style=\"font-size: 12.8px;, Arial, Helvetica, sans-serif;font-style: normal;font-weight: normal\">command mode<\/span><\/div>\n<\/td>\n<\/tr>\n<tr style=\"font-size: 12.8px;text-align: left\">\n<td style=\"font-size: 12.8px;text-align: left\" valign=\"top\">\n<div><span style=\"background-color: white;font-size: 12.8px;, Arial, Helvetica, sans-serif;font-style: normal;font-weight: normal\">Ctrl-M<\/span><\/div>\n<\/td>\n<td style=\"font-size: 12.8px;text-align: left\" valign=\"top\">\n<div><span style=\"background-color: white;font-size: 12.8px;, Arial, Helvetica, sans-serif;font-style: normal;font-weight: normal\">command mode<\/span><\/div>\n<\/td>\n<\/tr>\n<tr style=\"font-size: 12.8px;text-align: left\">\n<td style=\"font-size: 12.8px;text-align: left\" valign=\"top\">\n<div><span style=\"font-size: 12.8px;, Arial, Helvetica, sans-serif;font-style: normal;font-weight: normal\">Shift-\u00adEnter<\/span><\/div>\n<\/td>\n<td style=\"font-size: 12.8px;text-align: left\" valign=\"top\">\n<div><span style=\"font-size: 12.8px;, Arial, Helvetica, sans-serif;font-style: normal;font-weight: normal\">run cell, select below<\/span><\/div>\n<\/td>\n<\/tr>\n<tr style=\"font-size: 12.8px;text-align: left\">\n<td style=\"font-size: 12.8px;text-align: left\" valign=\"top\">\n<div><span style=\"background-color: white;font-size: 12.8px;, Arial, Helvetica, sans-serif;font-style: normal;font-weight: normal\">Ctrl-Enter<\/span><\/div>\n<\/td>\n<td style=\"font-size: 12.8px;text-align: left\" valign=\"top\">\n<div><span style=\"background-color: white;font-size: 12.8px;, Arial, Helvetica, sans-serif;font-style: normal;font-weight: normal\">run cell<\/span><\/div>\n<\/td>\n<\/tr>\n<tr style=\"font-size: 12.8px;text-align: left\">\n<td style=\"font-size: 12.8px;text-align: left\" valign=\"top\">\n<div><span style=\"font-size: 12.8px;, Arial, Helvetica, sans-serif;font-style: normal;font-weight: normal\">Alt-Enter<\/span><\/div>\n<\/td>\n<td style=\"font-size: 12.8px;text-align: left\" valign=\"top\">\n<div><span style=\"font-size: 12.8px;, Arial, Helvetica, sans-serif;font-style: normal;font-weight: normal\">run cell, insert below<\/span><\/div>\n<\/td>\n<\/tr>\n<tr style=\"font-size: 12.8px;text-align: left\">\n<td style=\"font-size: 12.8px;text-align: left\" valign=\"top\">\n<div><span style=\"background-color: white;font-size: 12.8px;, Arial, Helvetica, sans-serif;font-style: normal;font-weight: normal\">Ctrl-S\u00adhif\u00adt-S\u00adubtract<\/span><\/div>\n<\/td>\n<td style=\"font-size: 12.8px;text-align: left\" valign=\"top\">\n<div><span style=\"background-color: white;font-size: 12.8px;, Arial, Helvetica, sans-serif;font-style: normal;font-weight: normal\">split cell<\/span><\/div>\n<\/td>\n<\/tr>\n<tr style=\"font-size: 12.8px;text-align: left\">\n<td style=\"font-size: 12.8px;text-align: left\" valign=\"top\">\n<div><span style=\"font-size: 12.8px;, Arial, Helvetica, sans-serif;font-style: normal;font-weight: normal\">Ctrl-S\u00adhift&#8211;<\/span><\/div>\n<\/td>\n<td style=\"font-size: 12.8px;text-align: left\" valign=\"top\">\n<div><span style=\"font-size: 12.8px;, Arial, Helvetica, sans-serif;font-style: normal;font-weight: normal\">split cell<\/span><\/div>\n<\/td>\n<\/tr>\n<tr style=\"font-size: 12.8px;text-align: left\">\n<td style=\"font-size: 12.8px;text-align: left\" valign=\"top\">\n<div><span style=\"background-color: white;font-size: 12.8px;, Arial, Helvetica, sans-serif;font-style: normal;font-weight: normal\">Ctrl-S<\/span><\/div>\n<\/td>\n<td style=\"font-size: 12.8px;text-align: left\" valign=\"top\">\n<div><span style=\"background-color: white;font-size: 12.8px;, Arial, Helvetica, sans-serif;font-style: normal;font-weight: normal\">Save and Checkpoint<\/span><\/div>\n<\/td>\n<\/tr>\n<tr style=\"font-size: 12.8px;text-align: left\">\n<td style=\"font-size: 12.8px;text-align: left\" valign=\"top\">\n<div><span style=\"font-size: 12.8px;, Arial, Helvetica, sans-serif;font-style: normal;font-weight: normal\">Up<\/span><\/div>\n<\/td>\n<td style=\"font-size: 12.8px;text-align: left\" valign=\"top\">\n<div><span style=\"font-size: 12.8px;, Arial, Helvetica, sans-serif;font-style: normal;font-weight: normal\">move cursor up or previous cell<\/span><\/div>\n<\/td>\n<\/tr>\n<tr style=\"font-size: 12.8px;text-align: left\">\n<td style=\"font-size: 12.8px;text-align: left\" valign=\"top\">\n<div><span style=\"background-color: white;font-size: 12.8px;, Arial, Helvetica, sans-serif;font-style: normal;font-weight: normal\">Down<\/span><\/div>\n<\/td>\n<td style=\"font-size: 12.8px;text-align: left\" valign=\"top\">\n<div><span style=\"background-color: white;font-size: 12.8px;, Arial, Helvetica, sans-serif;font-style: normal;font-weight: normal\">move cursor down or next cell<\/span><\/div>\n<\/td>\n<\/tr>\n<tr style=\"font-size: 12.8px;text-align: left\">\n<td style=\"font-size: 12.8px;text-align: left\" valign=\"top\">\n<div><span style=\"font-size: 12.8px;, Arial, Helvetica, sans-serif;font-style: normal;font-weight: normal\">Ctrl-\/<\/span><\/div>\n<\/td>\n<td style=\"font-size: 12.8px;text-align: left\" valign=\"top\">\n<div><span style=\"font-size: 12.8px;, Arial, Helvetica, sans-serif;font-style: normal;font-weight: normal\">toggle comment on current or selected lines<\/span><\/div>\n<\/td>\n<\/tr>\n<\/table>\n<\/td>\n<\/tr>\n<\/table>\n<ul>\n<li>\n<p>Run JupyterHub command<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/john.pentaidea.com\/wp-content\/uploads\/2020\/05\/773056abe1f3712bc8b463bf750aae8b.png\" \/><\/p>\n<\/li>\n<\/ul>\n<ul>\n<li>\n<p>Debug with breakpoint<\/p>\n<\/li>\n<\/ul>\n<p><span style=\"font-size: 12px;, monospace\">import pdb<\/span><\/p>\n<p><span style=\"font-size: 12px;, monospace\">pdb.set_trace() &nbsp;# Put the breakpoint anywhere you want<\/span><\/p>\n<p>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp; command list<\/p>\n<p><span style=\"font-size: 9pt\">h(elp) [command]<\/span><\/p>\n<p><span style=\"font-size: 9pt\">s(tep)<\/span><\/p>\n<p><span style=\"font-size: 9pt\">n(ext)<\/span><\/p>\n<p><span style=\"font-size: 9pt\">c(ont(inue))<\/span><\/p>\n<p><span style=\"font-size: 9pt\">w(here)<\/span><\/p>\n<p><span style=\"font-size: 9pt\">cl(ear) [filename:lineno | bpnumber [bpnumber &#8230;]]<\/span><\/p>\n<p><span style=\"font-size: 9pt\">whatis expression<\/span><\/p>\n<p>&nbsp;&nbsp; &nbsp;&nbsp; &nbsp; ref:&nbsp;<a href=\"https:\/\/docs.python.org\/3\/library\/pdb.html\">https:\/\/docs.python.org\/3\/library\/pdb.html<\/a><\/p><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"mh-excerpt\"><p>Remove all files exclude specific file<\/p>\n<\/div>","protected":false},"author":1,"featured_media":1264,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[4],"tags":[16],"class_list":["post-1142","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tech","tag-linux"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.8 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Linux \u5e38\u7528\u6307\u4ee4 (updating) - John&#039;s Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/john.pentaidea.com\/?p=1142\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Linux \u5e38\u7528\u6307\u4ee4 (updating) - John&#039;s Blog\" \/>\n<meta property=\"og:description\" content=\"Remove all files exclude specific file\" \/>\n<meta property=\"og:url\" content=\"https:\/\/john.pentaidea.com\/?p=1142\" \/>\n<meta property=\"og:site_name\" content=\"John&#039;s Blog\" \/>\n<meta property=\"article:published_time\" content=\"2016-06-16T23:48:25+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/john.pentaidea.com\/wp-content\/uploads\/2020\/05\/29d4ffe21a5185bbdbd19074f375da55.png\" \/>\n\t<meta property=\"og:image:width\" content=\"498\" \/>\n\t<meta property=\"og:image:height\" content=\"140\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"jj\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"jj\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"9 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/john.pentaidea.com\/?p=1142\",\"url\":\"https:\/\/john.pentaidea.com\/?p=1142\",\"name\":\"Linux \u5e38\u7528\u6307\u4ee4 (updating) - John&#039;s Blog\",\"isPartOf\":{\"@id\":\"https:\/\/john.pentaidea.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/john.pentaidea.com\/?p=1142#primaryimage\"},\"image\":{\"@id\":\"https:\/\/john.pentaidea.com\/?p=1142#primaryimage\"},\"thumbnailUrl\":\"https:\/\/john.pentaidea.com\/wp-content\/uploads\/2020\/05\/29d4ffe21a5185bbdbd19074f375da55.png\",\"datePublished\":\"2016-06-16T23:48:25+00:00\",\"dateModified\":\"2016-06-16T23:48:25+00:00\",\"author\":{\"@id\":\"https:\/\/john.pentaidea.com\/#\/schema\/person\/3d2e5980a7d3023e93b91d668d2a4a4f\"},\"breadcrumb\":{\"@id\":\"https:\/\/john.pentaidea.com\/?p=1142#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/john.pentaidea.com\/?p=1142\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/john.pentaidea.com\/?p=1142#primaryimage\",\"url\":\"https:\/\/john.pentaidea.com\/wp-content\/uploads\/2020\/05\/29d4ffe21a5185bbdbd19074f375da55.png\",\"contentUrl\":\"https:\/\/john.pentaidea.com\/wp-content\/uploads\/2020\/05\/29d4ffe21a5185bbdbd19074f375da55.png\",\"width\":498,\"height\":140},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/john.pentaidea.com\/?p=1142#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/john.pentaidea.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Linux \u5e38\u7528\u6307\u4ee4 (updating)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/john.pentaidea.com\/#website\",\"url\":\"https:\/\/john.pentaidea.com\/\",\"name\":\"John's Blog\",\"description\":\"\u4e16\u754c\u56e0\u601d\u7dd2\u800c\u8907\u96dc, \u4eba\u56e0\u5922\u60f3\u800c\u5049\u5927\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/john.pentaidea.com\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/john.pentaidea.com\/#\/schema\/person\/3d2e5980a7d3023e93b91d668d2a4a4f\",\"name\":\"jj\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/john.pentaidea.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/a685414cd92056415bc823b5cfbbf95a44a98df88d8c040b18613724c1c0724b?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/a685414cd92056415bc823b5cfbbf95a44a98df88d8c040b18613724c1c0724b?s=96&d=mm&r=g\",\"caption\":\"jj\"},\"sameAs\":[\"https:\/\/john.pentaidea.com\"],\"url\":\"https:\/\/john.pentaidea.com\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Linux \u5e38\u7528\u6307\u4ee4 (updating) - John&#039;s Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/john.pentaidea.com\/?p=1142","og_locale":"en_US","og_type":"article","og_title":"Linux \u5e38\u7528\u6307\u4ee4 (updating) - John&#039;s Blog","og_description":"Remove all files exclude specific file","og_url":"https:\/\/john.pentaidea.com\/?p=1142","og_site_name":"John&#039;s Blog","article_published_time":"2016-06-16T23:48:25+00:00","og_image":[{"width":498,"height":140,"url":"https:\/\/john.pentaidea.com\/wp-content\/uploads\/2020\/05\/29d4ffe21a5185bbdbd19074f375da55.png","type":"image\/png"}],"author":"jj","twitter_card":"summary_large_image","twitter_misc":{"Written by":"jj","Est. reading time":"9 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/john.pentaidea.com\/?p=1142","url":"https:\/\/john.pentaidea.com\/?p=1142","name":"Linux \u5e38\u7528\u6307\u4ee4 (updating) - John&#039;s Blog","isPartOf":{"@id":"https:\/\/john.pentaidea.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/john.pentaidea.com\/?p=1142#primaryimage"},"image":{"@id":"https:\/\/john.pentaidea.com\/?p=1142#primaryimage"},"thumbnailUrl":"https:\/\/john.pentaidea.com\/wp-content\/uploads\/2020\/05\/29d4ffe21a5185bbdbd19074f375da55.png","datePublished":"2016-06-16T23:48:25+00:00","dateModified":"2016-06-16T23:48:25+00:00","author":{"@id":"https:\/\/john.pentaidea.com\/#\/schema\/person\/3d2e5980a7d3023e93b91d668d2a4a4f"},"breadcrumb":{"@id":"https:\/\/john.pentaidea.com\/?p=1142#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/john.pentaidea.com\/?p=1142"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/john.pentaidea.com\/?p=1142#primaryimage","url":"https:\/\/john.pentaidea.com\/wp-content\/uploads\/2020\/05\/29d4ffe21a5185bbdbd19074f375da55.png","contentUrl":"https:\/\/john.pentaidea.com\/wp-content\/uploads\/2020\/05\/29d4ffe21a5185bbdbd19074f375da55.png","width":498,"height":140},{"@type":"BreadcrumbList","@id":"https:\/\/john.pentaidea.com\/?p=1142#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/john.pentaidea.com\/"},{"@type":"ListItem","position":2,"name":"Linux \u5e38\u7528\u6307\u4ee4 (updating)"}]},{"@type":"WebSite","@id":"https:\/\/john.pentaidea.com\/#website","url":"https:\/\/john.pentaidea.com\/","name":"John's Blog","description":"\u4e16\u754c\u56e0\u601d\u7dd2\u800c\u8907\u96dc, \u4eba\u56e0\u5922\u60f3\u800c\u5049\u5927","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/john.pentaidea.com\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/john.pentaidea.com\/#\/schema\/person\/3d2e5980a7d3023e93b91d668d2a4a4f","name":"jj","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/john.pentaidea.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/a685414cd92056415bc823b5cfbbf95a44a98df88d8c040b18613724c1c0724b?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/a685414cd92056415bc823b5cfbbf95a44a98df88d8c040b18613724c1c0724b?s=96&d=mm&r=g","caption":"jj"},"sameAs":["https:\/\/john.pentaidea.com"],"url":"https:\/\/john.pentaidea.com\/?author=1"}]}},"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"https:\/\/john.pentaidea.com\/wp-content\/uploads\/2020\/05\/29d4ffe21a5185bbdbd19074f375da55.png","_links":{"self":[{"href":"https:\/\/john.pentaidea.com\/index.php?rest_route=\/wp\/v2\/posts\/1142","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/john.pentaidea.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/john.pentaidea.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/john.pentaidea.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/john.pentaidea.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1142"}],"version-history":[{"count":0,"href":"https:\/\/john.pentaidea.com\/index.php?rest_route=\/wp\/v2\/posts\/1142\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/john.pentaidea.com\/index.php?rest_route=\/wp\/v2\/media\/1264"}],"wp:attachment":[{"href":"https:\/\/john.pentaidea.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1142"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/john.pentaidea.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1142"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/john.pentaidea.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1142"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}