In bash, while reading input from the user, if you want to suppress the echo on the screen (for sensitive inputs like passwords), do this:
stty -echo
read SECRETPASSWD
stty echo
In bash, while reading input from the user, if you want to suppress the echo on the screen (for sensitive inputs like passwords), do this:
stty -echo
read SECRETPASSWD
stty echo
Use this:
cat -v -t -e <somefile>
-e: Add a trailing $ at the end of a line.-t: Show tabs as ^IThere’s more than one way. Here’s one: find the inode with ls -i, then delete with:
find -inum <inode-number> -exec rm -i {} \;
Huh, who knew this existed:
cat <some-verbose-output> | fold -70
fold -s folds at whitespace
fmt command, which seems similar to emacs’
fill-paragraph.
pr gives a pretty display with margins, headers, and page numbers.
Put something like this in your ~/.gitconfig:
[includeIf "gitdir:~/work/"]
path = ~/.gitconfig.work
[includeIf "gitdir:~/code/"]
path = ~/.gitconfig.personal
If your work repos are in ~/work, you can have a separate user/email etc for
repos in that folder.
C-c C-n and C-c C-p to cycle between headings.TAB on a heading to expand/collapse.M-up and M-down to reorder sections.M-left and M-right to change the level of a heading.M-RET inside a list to create a new bullet.TAB in a new bullet to indent it.S-left and S-right to change the bullet-style.M-S-RET gives a checkbox.C-c C-c checks it.TAB for subdivisions.C-c C-e for everything. h o exports to html.# brings up common templates.