ps aux | grep php
oder mit htop
sudo apt-get install htop
Schlagwort: linux
Hält im Hintergrund das Programm am laufen ohne es zu beenden, wenn man das Terminalfenster schliesst
setsid [programm]
setsid php
Installing and configuring the FTP server
Let’s install the vsftpd package.
dnf install vsftpd
Now start the service.
systemctl start vsftpd
And add it to autorun.
systemctl enable vsftpd
Open the /etc/vsftpd/vsftpd.conf file.
Check these parameters to make sure they have the correct values. We currently prohibit anonymous login and allow it for local users. FTP recording is also allowed.
anonymous_enable=NO
local_enable=YES
write_enable=YES
Find and uncomment this line to restrict access to everything except the home directory.
chroot_local_user=YES
And add this line to the end of the file to grant access to change and write files via FTP.
allow_writeable_chroot=YES
Now save and close the file and open /etc/pam.d/vsftpd. Comment this line in it:
#auth required pam_shells.so
If you use firewalld add the FTP service to it.
firewall-cmd --permanent --add-service=ftp
firewall-cmd --reload
Restart the FTP service.
systemctl restart vsftpd
Creating a user for FTP access
Create a new user and set the password for it.
useradd newftpuser
passwd newftpuser
To prevent it from logging in via ssh, change its shell.
usermod --shell /sbin/nologin newftpuser
Rename all files
Rename all files in current diretory
Quelle: hier
find . -name '*.JPG' -exec sh -c 'mv "$0" "${0%.JPG}.jpg"' {} \;
Tar Archive , Backups – Exclude Directories
tar -cvzpf backup.tar --exclude=vendor --exclude="logs/" --exclude="tmp/" /var/www/your/project/
-c … create Archive
-v …and show me
-z …compress that
-p …take over all permissions
-f …to folder
Unpacking
tar -xzf archiv.tar.gz -C /home/verzeichnis1/archiv_verzeichnis
-x ...extract archive
-z ...that compressed
-f ...to folder