check_latest_version && sudo apt update && sudo apt upgrade -y
Copy files across filesystems:
cp source_file /other/filesystem/
rsync -av source/ /other/filesystem/dest/
tar -cf - source | (cd /dest && tar -xf -)
Use symlinks which work across filesystems:
ln -s /path/to/file /other/filesystem/link
ln -sf target linkname
Perform operations within the same filesystem:
mv file /same/filesystem/location
find /same/fs -name "file" -exec ln {} /same/fs/link \;
EXDEV occurs when trying to create a hard link across different filesystems or devices.
df -h
mount | grep /path
stat file1 file2
findmnt /path/to/file