mirror of
https://github.com/LCTT/TranslateProject.git
synced 2026-08-23 04:03:29 +08:00
20140711-1 选题
This commit is contained in:
@@ -0,0 +1,50 @@
|
||||
How To Enable Tab Complete Heroku Commands In Oh-My-Zsh
|
||||
================================================================================
|
||||
**Heroku** Client is the (Command Line Interface) CLI tool for creating and managing Heroku apps.
|
||||
|
||||
Requirements:
|
||||
|
||||
- Heroku toolbelt
|
||||
- Oh-My-Zsh ([How to Install][1])
|
||||
|
||||
Note this post is not talk about heroku, it’s just to show users how they can ease typing of commands with oh-my-zsh, so am NOT going to talk into detail on doing things. Also you should have [heroku toolbelt][2] installed to make this work. Is simple for Ubuntu and Debian derivatives,Install by running the command below:
|
||||
|
||||
wget -qO- https://toolbelt.heroku.com/install-ubuntu.sh | sh
|
||||
|
||||
Open Terminal and login into heroku with you account created [here][3]:
|
||||
|
||||
heroku login
|
||||
Enter your Heroku credentials.
|
||||
Email: enockseth@unixmen.com
|
||||
Password (typing will be hidden):
|
||||
Authentication successful.
|
||||
|
||||
That shows heroku is up and running.
|
||||
|
||||
Open **.zshrc** in your favourite text editor
|
||||
|
||||
vim .zshrc
|
||||
|
||||

|
||||
|
||||
By default git is the only plugin enabled.
|
||||
|
||||
Add **heroku** to the plugins section as shown below:
|
||||
|
||||

|
||||
|
||||
Restart teminal, type **heroku** press tab and you’re good to go:
|
||||
|
||||

|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
via: http://www.unixmen.com/enable-tab-complete-heroku-commands-oh-zsh/
|
||||
|
||||
译者:[译者ID](https://github.com/译者ID) 校对:[校对者ID](https://github.com/校对者ID)
|
||||
|
||||
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出
|
||||
|
||||
[1]:http://www.unixmen.com/install-oh-zsh-ubuntu-arch-linux-fedora/
|
||||
[2]:https://toolbelt.heroku.com/
|
||||
[3]:https://www.heroku.com/
|
||||
@@ -0,0 +1,65 @@
|
||||
Linux Basics: How To Find Size of Directory Commands
|
||||
================================================================================
|
||||
This is the first in a series of posts in coming where I’ll be writing about some **basic commands** that that will be of good use to new users.
|
||||
|
||||
**Note**: This is targeted at people little or no command line experience..
|
||||
|
||||
> How can I as a new user to Linux display directory properties from the terminal?
|
||||
|
||||
### Requirements ###
|
||||
|
||||
The only requirement is the **du** command line tool. du comes with almost every Linux distro by default.
|
||||
|
||||
Check if du it’s on your system by running the command below in the terminal:
|
||||
|
||||
man du
|
||||
|
||||
**du** command estimates file space usage
|
||||
|
||||
### Using du ###
|
||||
|
||||
Running du with no flag displays names of all directories including sub-directories and sizes in bytes.
|
||||
|
||||
du
|
||||
|
||||

|
||||
|
||||
Using the **-h** flag displays the sizes in human readable format, that is **K, M** and **G** representing **Kilobyte, Megabyte** and **Gigabyte** respectively.
|
||||
|
||||
du - h
|
||||
|
||||

|
||||
|
||||
To view a specific directory indicate that after du and flag as shown below:
|
||||
|
||||
du -h Mapmaker
|
||||
|
||||

|
||||
|
||||
Use -c to see grand **total** displayed:
|
||||
|
||||
du -ch
|
||||
|
||||

|
||||
|
||||
Use **-s** flag to display only grand total / disk space used for specific directories:
|
||||
|
||||
du -sh Mapmaker Sandbox
|
||||
|
||||

|
||||
|
||||
See man du for more flags and there uses
|
||||
|
||||
man du
|
||||
|
||||

|
||||
|
||||
Knows other combinations of du? Share with myself and others here too.
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
via: http://www.unixmen.com/linux-basics-find-size-directory-commands/
|
||||
|
||||
译者:[译者ID](https://github.com/译者ID) 校对:[校对者ID](https://github.com/校对者ID)
|
||||
|
||||
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出
|
||||
Reference in New Issue
Block a user