copy a file / directory from one location to another
- within the same dir
- to a different dir (/ makes sure it is really a directory: if the directory doesn't exist I'll get an error
- copy a dir to a newly created dir with files in it
Back
open .
Front
open current directory in Finder
Back
select * from [tablename]
Front
show records
Back
apropos
Front
find what man page is appropriate
Back
mysql
Front
check msql version on built-in server
Back
mysql -uroot -ppassword [password?];
Front
log in mysql as root user, seting/using a password
Back
ls
- ls -a
- ls -l
- ls -R
- ls -l -R - OR RATHER: ls -lR
- ls -las
Front
list directory
- list invisible files
- list directory + details
- recursively lists subdirectories
- combining some of the above
- longlist all: invisible files too, showing sizes in blocks
move a file or directory from one location to another
- renaming a file
- rename a dir and keep content
- move a file to a new location
- force mv prompts before overwriting an existing file
- make mv not overwrite an existing file
Back
pushd
Front
push directory: to save your current location and go to a new location
- pushd (with no arguments): to switch between your current dir and the last one you pushed
- used to load any functions file into the current shell script or a command prompt / executes the content of the file passed as argument, in the current shell
Back
cd
- cd ~ OR: cd (without directory name)
- cd /
- cd ..
- cd -
- cd .
- cd temp/stuff/things/orange/apple/pear/grape/
Front
change directory
- back home
- go to root level of your startup disk
- go to the directory above the one you're currently in
- go back to the directory you were in before the last time you issued the cd command
- current directory
- using a path