Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now
9

That's Unix Timestamp / Epoch time - number of seconds passed from January 1st, 1970. If you convert it to datetime, you will get: $ date -d @1570201804 Fri Oct 4 18:10:04 EAT 2019 In UTC it is 10/04/2019 @ 3:10pm (UTC) but since I am in East Africa, we get +3 time difference coming to 10/04/2019 @ 6:10pm (UTC) I guess your timezone is +5:30


4

In gnome-terminal.. there is inbuilt function without assigning any shortcut key.. you can assign a shortcut key by Selecting Edit -- >> Preferences -- >> Shortcuts -->> Switch to Last Tab and by pressing valid key/ key combination like below


3

There are no schemas designed for "Built-in-schemes:" what is "Built-in-schemes:" doing is, it has pre-configured colors.. for the foreground-color with description "Default color of text in terminal" for the background-color with description "Default color of terminal background" So find out the two colors (first choose the Buili-in-schems) for the "...


2

You want: gnome-terminal -t "Disk Manager" --hide-menubar -- df -h --output=source,used,size,avail,target -x devtmpfs -x tmpfs -x squashfs -- is generally the universal command line syntax for "nothing after this should be interpreted as an option". In this case, GNOME Terminal just takes any arguments it's given and executes them as a command line, with ...


2

If all you truly want to see is the pid then in the terminal type: PS1="${PS1/\\u@\\h: \\w/$$}" If you want this to be persistent every time you open your terminal then add the command somewhere near the bottom of ~/.bashrc after all the other PS1 definitions are set.


1

Based on the instruction from @steeldriver 's comment (sorry, I can't upvote): open the preferences (right click in the window or use the hamburger button) go to configuration profile (I created a new one for ZSH by cloning the default) select "Command" tab tick "Run a custom command instead of my shell." option write "zsh" in "Custom command" textbox That'...


1

Parse .bash_history containing timestamp (awk). first I cut the field at newline -F \\n and check for lines beginning with #epoch $0 ~ /^#[0-9]+/. Next I trim off first char substr($1,2) before formatting the epoch string strftime("%d/%m/%y %T"). Last I print the first part without newline printf "%5d %s " so I can fetch the next line getline that ...


1

The Alt-# shortcuts start working again when I disable "Enable mnemonics" for some reason. The menu shortcuts don't work with the menu bar hidden anyway, so I don't miss that setting.


1

In your bashrc script... vim ~/.bashrc You can define an array of emoticons EMOJIS=(🥯 🦆 🦉 🥓 🦄 🦀 🖕 🍣 🍤 🍥 🍡 🥃 🥞 🤯 🤪 🤬 🤮 🤫 🤭 🧐 🐕 🦖 👾 🐉 🐓 🐋 🐌 🐢) then if you have too much time on your hands, write a function which returns a random moj. RANDOM_EMOJI() { SELECTED_EMOJI=${EMOJIS[$RANDOM % ${#EMOJIS[@]}]}; echo $SELECTED_EMOJI; ...


Only top voted, non community-wiki answers of a minimum length are eligible