Skip to Content

Posts Tagged ‘terminal’

How to Use WGET with Usernames & Passwords

WGET supports authentication, so its pretty simple.
How to Use WGET with Usernames & Passwords
1. Open Terminal
2. Type: wget –user=’username’ –password=’password’ http://path/to/protected/file.zip
Options
–ftp-user
–ftp-password
–http-user
–http-password

How To Move Files from One Server to Another With SCP SSH

You can easily move files from one server to another with the SCP command.
How To Move Files from One Server to Another With SCP SSH
1. Open an SSH session in Terminal
2. Navigate to files/folder you wish to move
3. Optionally tar.gz the files/folder
4. In Terminal type: scp file.tar.gz user@remote.server.com:/path/to/where/to/want/to/put/file.tar.gz
That will open an SSH tunnel from [...]

Terminal Command to Stop Crash Report Popups

When an app crashes, Mac OS X pops open a crash report dialog box. Since I never really use this feature here is a simple Terminal command to rid yourself of them: defaults write com.apple.CrashReporter DialogType none
If for any reason you want to reactivate the crash reports, retype the code replacing “none” with “prompt”.

Bashrc Example

I was recently looking for some examples of a bashrc file. I figured I would post my current .bashrc file….
# ~/.bashrc: executed by bash for non-login shells.
##############
# Bash Prompts #
#############
# [12:34] ~/desktop $
export PS1=”\[[\A]\] \w $ ”
umask 022
#######################
# setting up file completion #
######################
if [ -f ~/.bash_completion ];
then
. ~/.bash_completion;
fi
############
# My Aliases #
############
#alias ll=’ls -lagh’
# [...]

Page: 1 / 3 1 2 3 Last ›
Get Adobe Flash playerPlugin by wpburn.com wordpress themes