Basic Linux Administration

  • Copy remote file via SSH:
scp <Username>@<Domain-OR-IP>:<File-Name> ./Desktop
  • Delete files which are so many returned 'Argument list too long' if using rm :
find  -maxdepth 1 -mindepth 1 -type f -name "filename.*" -delete
  • Script to read list of data from file and proceed with operation for each of the data:
for i in $(cat data.txt);do sudo <OPERATION> "$i"; done
Edit this page