Commands by liuwei000000 (0)

  • bash: commands not found

What's this?

commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands


Check These Out

restart apache only if config works
making lots of configurations to apache and restarting the server only to find it broken just plain sucks.

SSH Copy ed25519 key into your host

Use Linux coding style in C program
put "-linux" option into $HOME/.indent.pro to make it default

Install pip with Proxy
Installs pip packages defining a proxy

convert from decimal to hexadecimal
Use the standard calculator bc to convert decimals to hex

View a file with less, starting at the end of the file
The same as typing 'less filename' then 'G' or '>' or the END key. Comes in handy with shell scripts or aliases: alias weblog='less +G /var/log/httpd/access_log' alias errlog='less +G /var/log/httpd/error_log'

Update pandoc via cabal
An alternative to built-in package manager, keep pandoc in sync with upstream releases.

password generator
make password randomly, default 8 chars, using bash3.X only, no external program.

Check the package is installed or not. There will show the package name which is installed.
The ^python$ is a package name patten. You can change whatever you want.

Lookup autonomous systems of all outgoing http/s traffic


Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.

» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10

Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: