ls (lists directory)
The ls command is one of the more basic commands in Linux. It is designed to list the names and features of files and directories.
ls -l -a
pwd (Print Working Directory)
create, change and modify timestamps of a file
cat command: It is used to create the file with content.
touch command: It is used to create a file without any content. The file created using touch command is empty. This command can be used when the user doesn’t have data to store at the time of file creation
copy and move
cp ./DirectoryA_1/README.txt ./DirectoryA_2
mv file.txt folder_to_move
sudo (Super User DO)
sudo rm -r *
sudo rm -r .git (tab)
sudo crontab -l
sudo crontab -e
sudo su -
history command is used to view the previously executed command
The df command displays information about file system disk space usage on the mounted file system
df (Shows the amount of disk space in use)
df /node_or_dirname (Shows detailed information about the file system node or dir name)
The less command is a Linux terminal pager that shows a file’s contents one screen at a time.
list the files and folders in the current directory
yum install nginx
systemctl status nginx
systemctl start nginx
In Unix-like operating systems, the
chmod the command sets the permissions of files or directories.
chmod 400 YOUR_FILE
Try running the “chown” command to change the ownership of the repository to the user who is trying to access it. For example, you can run the command
sudo chown -R username:groupname /path/to/repository
to change the ownership of the repository.
File permissions and/or ownership are incorrect.
- Log in to the Plesk server via SSH
- Fix ownership and permissions:
chown -R root:psaserv /var/www/vhosts/system/example.com
chmod -R 711 /var/www/vhosts/system/example.com
Go to Domains > example.com > PHP Settings and change the PHP version to a different one and then back to the one that is needed to re-generate and re-validate the configuration files.