- First add the user, run:
sudo adduser <UserNameHere>
- Add the user to sudo group by typing the command in terminal for Ubuntu version 12.04 and above:
sudo adduser <UserNameHere> sudo
- In an older version of Ubuntu (version 12.04 and older), run:
sudo adduser <UserNameHere> admin
- Verify it:
id <UserNameHere>
How to install Linux Screen utility?
- Check whether Screen is installed
which screen
- If Screen is not installed on your system, run the following command:
- If your system uses yum, you can install Screen with the command below
yum install screen
- If your system uses apt, you can install Screen with the command below
apt install screen
- If your system uses yum, you can install Screen with the command below
- To run a Screen session, enter the screen command.
screen
- If your session disconnects for some reason, log back in to your server and run the screen -r command.
screen -r
This will reconnect you to your Screen session.
Move files in the Linux terminal
The mv command moves file(s) from one location to another.
To move a file from one directory to another with mv, remember the syntax below
mv <source> <destination>
For example,
mv example.zip /home
Check whether, it moves example.zip
ls /home
Rename the file as you move it
mv example.zip /home/newexample.zip
Rename a file without moving it to another location
mv example.zip renameexample.zip
Moving a directory
mv exampledir /home
Moving a file safely
mv --interactive example.zip /home
This will ask
mv: overwrite '/home/example.zip'?
If you do not want to manually intervene, use –no-clobber or -n instead.
mv --no-clobber example.zip /home
How to disable functions using the PHP disable_functions directive in php ini
- PHP disable_functions Executable Handling
The disable_function is used to stop certain dangerous PHP functions from executing.
Example of disable_function.
disable_functions = "exec, system"
Use the disable_functions directive in php.ini file to disable specific functions.
At least disable exec(), shell_exec() and system(). (If using WordPress).
disable_functions = "exec, passthru, shell_exec, system, proc_open, popen, curl_exec, curl_multi_exec, parse_ini_file, show_source"
How to Install Zip/Unzip
How to Install Zip/Unzip in Debian/Ubuntu/Mint
apt install zip apt install unzip
How to Install Zip/Unzip in RedHa/CentOS/Fedora
dnf install zip dnf install unzip
How to Install Zip/Unzip in Arch/Manjaro Linux
pacman -S zip pacman -S unzip
How to Install Zip/Unzip in OpenSUSE
zypper install zip zypper install unzip