From 7742c3b72f5b147d84c5ce53954482547619d6dc Mon Sep 17 00:00:00 2001 From: onceupon Date: Thu, 14 Dec 2017 09:43:55 +0800 Subject: [PATCH] add logout timer --- README.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 774d02c..88fbe27 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # Bash-Oneliner -Hi bash learners and bioinformaticans, welcome to Bash Oneliner. I started studying bioinformatics data four years ago (recently started working on cloud computing), and was amazed by those single-word bash commands which are much faster than my dull scripts, so i started bash. Not all the code here is oneliner (if the ';' counts..), but i put effort on making them brief and fast. +Hi bash learners and bioinformaticans, welcome to Bash Oneliner. I started studying bioinformatics data four years ago (recently started working on cloud computing), and was amazed by those single-word bash commands which are much faster than my dull scripts, so i started bash. Not all the code here is oneliner (if the ';' counts..), but i put effort on making them brief and fast. I am mainly using Ubuntu and RedHat, sorry if the commands dont work on your system. This blog will focus on simple bash commands for parsing data, most of which are for tsv files (tab-separated values); some of them are for Linux system maintenance. I apologize that there won't be any citation for the codes, but they are probably from dear Google and Stackoverflow. @@ -2275,5 +2275,13 @@ sg_map -i -x|grep SEAGATE|wc -l ```bash dmidecode -t memory ``` +##### Log out your account after a certain period of time (e.g 10 seconds) +```bash +TMOUT=10 +#once you set this variable, logout timer start running! +``` + + + =-=-=-=-=-A lot more coming!! =-=-=-=-=-=-=-=-=-=waitwait-=-=-=-=-=-=-=-=-=-