next up previous
Next: Tar Up: Working with Files Previous: Working with Files

File operations

mv a b renames/moves a to b
rm [a-l]* removes files starting with a-l
rm -rf directory_or_filename remove anything, including directories, without prompting
ln -s {directory_or_filename} linkname creates symbolic link linkname to a file or directory
chmod go-r foo makes foo unreadable to anyone else
chmod guo+x foo makes foo executable for everyone
scp -r [user@]machine1:dir1/file1 [user@]machine2:dir2/file2 securely copy files between machines
rsync [user@]machine1:dir1/file1 [user@]machine2:dir2/file2 does remote (securely if using ssh) copying efficiently by only copying file differences



Chris Paciorek 2012-01-21