Debian is a free linux distribution operating system. Below are debian terminal commands you will find yourself using frequently.
Update
This is done using two commands
sudo apt update
sudo apt upgrade
The first command is used to update the package index files which contain information about available packages in the system.
The second command upgrades existing packages to the latest version. New packages are not installed.
Shutdown
You can shutdown, reboot and cancel shutdown using the terminal as below.
sudo shutdown [OPTIONS] [TIME] [MESSAGE]
OPTIONS-Available options are: reboot, halt system, cancel request, display messages, and disable
logins.
TIME-Set time for reboot or shutdown.
MESSAGE-Send logged-in users a message or instructions.
To shutdown immediately
sudo shutdown now
To reboot immediately
sudo shutdown -r now
To reboot after 10 minutes
sudo shutdown -r 10
Copy
Copying is task performed by every computer user. In linux it is one of the easiest commands to use.
cp [OPTIONS] source destination
The cp is abbreviated from the word copy. You can copy files and directories using this command.
OPTIONS-The following are cp command options:
- -R copies files recursively
- -f force copy in all circumstances
- -p preserves the file attributes of the original file in the copy. Attributes include the date stamps for creation and modification, user ID, group IP, and file permissions.