SSH and Linux Stuff

Permission Stuff

Get current user

whoami
echo get_current_user();

or

id -u

or

echo posix_getuid();

Get group

id -g
user:~$ chown -R www-data:www-data /full/path/to/htdocs/target-folder

File Stuff

All files changed in last 24h

$ find . -mtime -1