You are here Home > Know-how > Linux > Misc

Linux Reference

15 Misc


20.02.2008
14 Linux Links [  up  ] - [ top ] - [ linux a-z ] 15.1 About

15.1   About

[ http://groups.google.ch/groups?hl=de&lr=&ie=UTF-8&group=comp.os.linux.misc ]


Tips

Startup vi in read-only mode
view {filename}
List batch jobs you started at your current session
jobs
Comprehensive list of processes
ps axf

set date/time
date -s "1215" +"%k%M"

diff & patch
diff -uNr file_orig.txt file_changed.txt > file.patch

patch file_orig.txt file.patch

[ http://www.dedicatedserverhosting.com/support/linux-getting-started.html ]

scp

cd
ssh-keygen -t dsa

Confirm question prompt with just Enter.

cd .ssh/

scp id_dsa.pub p356d@talisker.access.ch:~/.ssh/authorized_keys2

		if directory .ssh on target host doesn't exist yet:
		mkdir ~/.ssh
		chmod 700 ~/.ssh
		
scp test.txt p356d@talisker.access.ch:~/ -i {PATH_TO_PRIVATE_KEY}

or, if the private key is on its default location ~/.ssh/id_dsa, just type

scp test.txt p356d@talisker.access.ch:~/

If the private key is located at the default location, a password-less ssh login is possible as well from now:



See also Incoming ReadMe's



copyright by retoh - created with mytexi