Post your commandline one-liners

Yeah know that method, but i still use my crappy one in lazy times its something that just sneaked into my mind. I don't use it always but i still catch myself just typing it in.

grep -r 'information' .

Will do the same, I also like to pass the operators -iI, case insensitive and ignore binary files. Also -n if you like to see the linenumbers

Keep on bashing ;)

mode 120,9999

Also a couple of excerpts from my bashrc, if anyone cares:

# Use vim as super user with the users local .vimrc
alias suvim='sudo -E vim'

# Simple function to copy local bashrc to remote, resolves symlinks and is
# similar to ssh-copy-id in usage.
function ssh-copy-bashrc {
    rsync -ahP --copy-links ~/.bashrc $1:

# Simple function for displaying svn in color and piping to less if the output
# fills the screen. (needs colordiff)
function svndiff {
    svn diff $1 | colordiff | less -R -F -X

# Colored man pages:
# Less Colors for Man Pages
export LESS_TERMCAP_mb=$'\E[01;31m'       # begin blinking
export LESS_TERMCAP_md=$'\E[01;38;5;74m'  # begin bold
export LESS_TERMCAP_me=$'\E[0m'           # end mode
export LESS_TERMCAP_se=$'\E[0m'           # end standout-mode
export LESS_TERMCAP_so=$'\E[38;5;016m\E[48;5;220m'    # begin standout-mode - info box
export LESS_TERMCAP_ue=$'\E[0m'           # end underline
export LESS_TERMCAP_us=$'\E[04;38;5;146m' # begin underline
1 Like

Omg lol don't do that ever. jeez man thats risky.

I make aliases for all of my folders.

docs takes me to ~/Documents
git takes me to my projects folder ~/Documents/git/..

1 Like

There's a good subreddit of this


sudo -i su -l

1 Like