- ===== scp =====
- %scp -rp *.pro u0140878@meteo04.ch/common/home/u0140878/
- %lpstat -t --- show prints
- ===== vi =====
- :$ --- last line
- :1 --- to line 1
- :n --- to line n
- :$= --- show the number of the last line
- :.= --- show the number of the current line
- D --- delete to the end of line
- dd --- delete line
- C --- change to the end of line
- $ --- to the end of line
- ^ --- to the head of the line
- w --- to the next word
- e --- to the end of the word
- u --- undo
- / --- search forward
- ? --- search backward
- p --- paste to the next line
- P --- paste to the ahead
- H --- top of the screen
- M --- middle of the screen
- L --- last line of the screen
- Ln --- last line but n
- ===== zip =====
- %unzip *.zip
- %unzip \*.zip
- %unzip "*.zip"
- for f in *.zip;
- do unzip "$f";
- done
- ===============================
- * man (cd, ftp, ssh, or any command for more info. "man" stands for manual)
- * scp <filename> <userid>@stats.chpc<filename>
- * ssh stats.chpc
- * ls (see man for ls switch -als also; pipe to more by typing ls -als | more (press space bar to page down or down arrow key)
- * setenv DISPLAY hostname:0.0 (for csh/tcsh)
- * xterm (command shell supports tcsh)
- * c++ (c++ compiler - found in /usr/local/bin along with all the other compilers)
- * gcc (c compiler)
- * pwd (current directory path)
- * cd ("cd /" moves to root directory; "cd .." moves to previous directory, "cd" moves to your home directory, "cd /directory" moves you to /directory)
- * mkdir (creates directory)
- * rm (removes files and directories - man rm for info on switch -rf)
- * cp (copies files - cp file1 file2)
- * more filename (displays text or contents of the file. See man for cat also.)
- * emacs filename (text editor for files. xemacs is also available. See setenv below.)
- * mv (moves files - mv file1 file2)
- * ps (lists processes - try switch -aef.)
- * .cshrc (file found in user home directory; editable for adding paths, etc.)
- * echo $path (shows current paths in .cshrc file)
- * chmod (changes file permissions)
- * ln -s /directorystructure shortcut-name (creates a shortcut to a directory from your home directory)
- * scp filename username@yourcomputer.where-ever.com:/directorystructure/file (copies files to stats in a secure environment)
- ===== perl =====
- %perl aaa.pl - run perl
- %perl aaa.pl -f inputfilename - run perl, read file "inputfilename"
- %perl -d aaa.pl - debug
- %perl -w aaa.pl - run with warnning
Raw Paste