What is “.xsession” for?
What is the purpose of the .xsession file in the home folder? What should be put in there? The desktop environments don’t use that file and for the X startup from the tty there is .xinitrc.
What is the purpose of the .xsession file in the home folder? What should be put in there? The desktop environments don’t use that file and for the X startup from the tty there is .xinitrc.
As a follow-up to my previous question, if I have multiple files of the form
No matter how much I set the HISTSIZE environment variable to be larger than 5000, when printing the history list with the history builtin, it prints only the last 5000 commands.
I need that because I often have a large .bash_history which exceeds 5000 lines, and sometimes one needs to address an early command by pressing Ctrl-R, but if that command is more than 5000 commands earlier, I can’t access it using that mechanism. I know I can use grep on the .bash_history, but I think the Ctrl-R mechanism would be much more faster (and convenient). I use gnu bash version 4.1.
Given a file L with one non-negative integer per line and text file F, what would be a fast way to keep only those lines in F, whose line number appears in file L?
My .muttrc file looks something like this one or see below a glimpse. I am hesitant with the password. How should I store my password to use it with mutt?
Studying TLDP’s Advanced Bash-Scripting Guide I am unable to reconstruct the following shell output in bash 4.4.12 in debian 9, both from tty and pts:
I was skimming through an /etc/rc.d/init.d/sendmail file (I know this is hardly ever used, but I’m studying for an exam), and I’ve become a bit confused about the && and the || operators. I’ve read where they can be used in statements such as:
The unix sysadmin where I’m working is reluctant to give me access to change my login shell from ksh to bash. He has given various excuses, the funniest being that since they write all their scripts for ksh they won’t work if I try to run them. I don’t know where he gets these ideas, but since I can’t convince him, is there any alternative that I have?
Mon Jun 3 17:53:18 EDT 2019
[sudo] password for user:
Mon Jun 3 23:42:17 EDT 2019
I tried to check if the PHONE_TYPE variable contains one of three valid values.