Site Members
RSSRecent Posts
Search
Popular Tags
- about
- admin
- animation
- apache
- apple
- apps
- blogging
- broken
- bsd
- canon
- censorship
- cli
- commands
- design
- development
- entertainment
- fad
- film
- food
- framework
- gaming
- health
- internet
- law
- life
- linux
- managment
- marketing
- me
- media
- meeting
- osx
- personal
- php
- python
- rails
- random
- rant
- ruby
- search
- server
- sleep
- social
- svn
- symfony
- tech
- template
- theme
- tips
- trac
- tutorial
- unix
- video
- viral
- wii
- work
RSSflickr'ings
CLI Part 1. Navigation
Running around your system at light speed is for command line only. Nothing can beat the speed of jumping from point to point at but a few clicks of the keyboard. While you are racing from point to point, don't forget about tab completion. It'll save time and tears.
Remember when dealing with your filesystem:
/is the base / root of your files system, for example:/usr/local/.is here, where you are right now, for example:./myFile.txt..is back one level, for example:../../local/bin~is your users home directory, for example:~/myPrivateDirectory
That out of the way - off we go...
pwd - Where am I?
Prints out your absolute location in the filesystem.
Example:
$ pwd
cd - Change directory
Move to a given directory.
Example:
$ cd /usr/local
$ cd ..
$ cd local/bin
ls - List the items in a directory
Simple list of file and directories in a folder - really comes to life with some added options and/or chained with grep or more (both of which are described further on).
Example:
$ ls
$ ls -lashtG
$ ls -lashG | grep mysql
Comments: