How do I change file and folder permissions in SSH?
To change permissions in SSH:Set folder permissions to 755:find . -type d -exec chmod 755 {} ;Set file permissions to 644:find . -type f -exec chmod 644 {} ;These commands apply p…
Shared hosting | Seme-dedicated | Free resellers
To change permissions in SSH:Set folder permissions to 755:find . -type d -exec chmod 755 {} ;Set file permissions to 644:find . -type f -exec chmod 644 {} ;These commands apply p…
To check folder sizes in SSH, use one of these commands:List sizes of immediate subdirectories:du -ch --max-depth=1 /home/www | sort -rnList sizes up to three levels deep:du -ch -…
To copy files or folders between servers in SSH, use these commands:Copy a file from remote to local:scp -P 2222 tecnored@tecnored.com.gt:mail-backup.tar.gz /home/www/cPanel-backu…
To create a tar.gz archive in SSH, use the following command:tar -zcvf prog-1-jan-2005.tar.gz /home/www/domain.comThis compresses the /home/www/domain.com directory into prog-1-ja…
To download a Google Drive archive in SSH, follow these steps:Set up a virtual environment:/usr/local/python-3.5/bin/virtualenv /home/venv/ source /home/venv/bin/activateNavigate …
To extract a tar.gz file in SSH, use the following command:tar -zxvf data.tar.gzThis extracts the contents of data.tar.gz to the current directory.
To locate PHP files modified in the last 7 days in SSH, use:find . -type f -name '*.php' -mtime -7This command searches the current directory and subdirectories for .php files mod…
To manage symbolic links in SSH, use these commands:Find symbolic links:find . -type lDelete symbolic links:find . -type l -deleteCreate a symbolic link:ln -s ../storage/app/publi…
To replace a string in files (e.g., test.php) in SSH, use:sed -i -e s/OLD/NEW/g `find . -name "test.php"`Replace OLD with the string to replace and NEW with the new string. This c…