|
|
|
@ -13,7 +13,7 @@ plugins=(... common-aliases) |
|
|
|
### ls command |
|
|
|
### ls command |
|
|
|
|
|
|
|
|
|
|
|
| Alias | Command | Description | |
|
|
|
| Alias | Command | Description | |
|
|
|
|-------|---------------|--------------------------------------------------------------------------------| |
|
|
|
| ----- | ------------ | --------------------------------------------------------------------------- | |
|
|
|
| l | `ls -lFh` | List files as a long list, show size, type, human-readable | |
|
|
|
| l | `ls -lFh` | List files as a long list, show size, type, human-readable | |
|
|
|
| la | `ls -lAFh` | List almost all files as a long list show size, type, human-readable | |
|
|
|
| la | `ls -lAFh` | List almost all files as a long list show size, type, human-readable | |
|
|
|
| lr | `ls -tRFh` | List files recursively sorted by date, show type, human-readable | |
|
|
|
| lr | `ls -tRFh` | List files recursively sorted by date, show type, human-readable | |
|
|
|
@ -23,11 +23,13 @@ plugins=(... common-aliases) |
|
|
|
| lS | `ls -1FSsh` | List files showing only size and name sorted by size | |
|
|
|
| lS | `ls -1FSsh` | List files showing only size and name sorted by size | |
|
|
|
| lart | `ls -1Fcart` | List all files sorted in reverse of create/modification time (oldest first) | |
|
|
|
| lart | `ls -1Fcart` | List all files sorted in reverse of create/modification time (oldest first) | |
|
|
|
| lrt | `ls -1Fcrt` | List files sorted in reverse of create/modification time(oldest first) | |
|
|
|
| lrt | `ls -1Fcrt` | List files sorted in reverse of create/modification time(oldest first) | |
|
|
|
|
|
|
|
| lsr | `ls -lARFh` | List all files and directories recursively | |
|
|
|
|
|
|
|
| lsn | `ls -1` | List files and directories in a single column | |
|
|
|
|
|
|
|
|
|
|
|
### File handling |
|
|
|
### File handling |
|
|
|
|
|
|
|
|
|
|
|
| Alias | Command | Description | |
|
|
|
| Alias | Command | Description | |
|
|
|
|-------|-----------------------|------------------------------------------------------------------------------------| |
|
|
|
| ----- | --------------------- | ------------------------------------------------------------------------------- | |
|
|
|
| rm | `rm -i` | Remove a file | |
|
|
|
| rm | `rm -i` | Remove a file | |
|
|
|
| cp | `cp -i` | Copy a file | |
|
|
|
| cp | `cp -i` | Copy a file | |
|
|
|
| mv | `mv -i` | Move a file | |
|
|
|
| mv | `mv -i` | Move a file | |
|
|
|
@ -39,7 +41,7 @@ plugins=(... common-aliases) |
|
|
|
### find and grep |
|
|
|
### find and grep |
|
|
|
|
|
|
|
|
|
|
|
| Alias | Command | Description | |
|
|
|
| Alias | Command | Description | |
|
|
|
|-------|-----------------------------------------------------|-----------------------------------------| |
|
|
|
| ----- | -------------------------------------------------- | ------------------------------------ | |
|
|
|
| fd\* | `find . -type d -name` | Find a directory with the given name | |
|
|
|
| fd\* | `find . -type d -name` | Find a directory with the given name | |
|
|
|
| ff | `find . -type f -name` | Find a file with the given name | |
|
|
|
| ff | `find . -type f -name` | Find a file with the given name | |
|
|
|
| grep | `grep --color` | Searches for a query string | |
|
|
|
| grep | `grep --color` | Searches for a query string | |
|
|
|
@ -50,7 +52,7 @@ plugins=(... common-aliases) |
|
|
|
### Other Aliases |
|
|
|
### Other Aliases |
|
|
|
|
|
|
|
|
|
|
|
| Alias | Command | Description | |
|
|
|
| Alias | Command | Description | |
|
|
|
|-----------|---------------------|-------------------------------------------------------------| |
|
|
|
| -------- | ------------------ | ----------------------------------------------------------- | |
|
|
|
| h | `history` | Lists all recently used commands | |
|
|
|
| h | `history` | Lists all recently used commands | |
|
|
|
| hgrep | `fc -El 0 \| grep` | Searches for a word in the list of previously used commands | |
|
|
|
| hgrep | `fc -El 0 \| grep` | Searches for a word in the list of previously used commands | |
|
|
|
| help | `man` | Opens up the man page for a command | |
|
|
|
| help | `man` | Opens up the man page for a command | |
|
|
|
@ -77,7 +79,7 @@ $ find . -type f 2>/dev/null |
|
|
|
``` |
|
|
|
``` |
|
|
|
|
|
|
|
|
|
|
|
| Alias | Command | Description | |
|
|
|
| Alias | Command | Description | |
|
|
|
|-------|-----------------------------|-------------------------------------------------------------| |
|
|
|
| ----- | --------------------------- | ----------------------------------------------------------- | |
|
|
|
| H | `\| head` | Pipes output to head which outputs the first part of a file | |
|
|
|
| H | `\| head` | Pipes output to head which outputs the first part of a file | |
|
|
|
| T | `\| tail` | Pipes output to tail which outputs the last part of a file | |
|
|
|
| T | `\| tail` | Pipes output to tail which outputs the last part of a file | |
|
|
|
| G | `\| grep` | Pipes output to grep to search for some word | |
|
|
|
| G | `\| grep` | Pipes output to grep to search for some word | |
|
|
|
@ -98,7 +100,7 @@ that file will be open with `acroread`. |
|
|
|
### Reading Docs |
|
|
|
### Reading Docs |
|
|
|
|
|
|
|
|
|
|
|
| Alias | Command | Description | |
|
|
|
| Alias | Command | Description | |
|
|
|
|-------|-------------|-------------------------------------| |
|
|
|
| ----- | ---------- | ---------------------------------- | |
|
|
|
| pdf | `acroread` | Opens up a document using acroread | |
|
|
|
| pdf | `acroread` | Opens up a document using acroread | |
|
|
|
| ps | `gv` | Opens up a .ps file using gv | |
|
|
|
| ps | `gv` | Opens up a .ps file using gv | |
|
|
|
| dvi | `xdvi` | Opens up a .dvi file using xdvi | |
|
|
|
| dvi | `xdvi` | Opens up a .dvi file using xdvi | |
|
|
|
@ -108,7 +110,7 @@ that file will be open with `acroread`. |
|
|
|
### Listing files inside a packed file |
|
|
|
### Listing files inside a packed file |
|
|
|
|
|
|
|
|
|
|
|
| Alias | Command | Description | |
|
|
|
| Alias | Command | Description | |
|
|
|
|---------|-------------|-------------------------------------| |
|
|
|
| ------ | ---------- | --------------------------------- | |
|
|
|
| zip | `unzip -l` | Lists files inside a .zip file | |
|
|
|
| zip | `unzip -l` | Lists files inside a .zip file | |
|
|
|
| rar | `unrar l` | Lists files inside a .rar file | |
|
|
|
| rar | `unrar l` | Lists files inside a .rar file | |
|
|
|
| tar | `tar tf` | Lists files inside a .tar file | |
|
|
|
| tar | `tar tf` | Lists files inside a .tar file | |
|
|
|
|