sudo -i #damit wird man root dauerhaft
usermod -aG sudo username
sudo apt install package -y
sudo apt update
Updates the list of available packages and their versions, but it does not install or upgrade any packages.
sudo apt upgrade
Actually installs newer versions of the packages you have. After updating the lists, the package manager knows about available updates for the software you have installed. This is why you first want to update. Link
Ordner erstellen:
mkdir name
Datei bearbeiten/erstellen (mit Texteditor Nano):
nano file-name
ctrl + _ und ctrl + V # um zur letzten Zeile springen
Strg-x; Y; Enter # um Dateien zu speichern und den Editor zu beenden
Ordner löschen mit Inhalt:
rm -r
Datei löschen:
rm -f
chown -R www-data:www-data /var/www/example.com
chmod 775 /var/www
0 Keine
1 x
2 w
3 w+x
4 r
5 r+x
6 r+w
7 r+w+x
wget https://github.com/longhorn/longhorn/raw/v1.1.0/scripts/environment_check.sh
Raw datei ansonsten website
download mit wget
sudo apt install ./teamviewer_amd64.deb
unzip .tar
gunzip .gz
timedatectl #set-timezone Europe/Berlin
/etc/crontab
30 23 * * * root shutdown -h now
At 23:30 (11:30 PM), the kiosk will shut down
MM HH DD OO WW command
MM
: Minute, 0-59HH
: 24-hour hourDD
: Day of monthOO
: MonthWW
: Day of Week (Sunday is 0, Monday is 1)
loadkeys de #de für deutsch
Hit the Esc key to enter "Normal mode". Then you can type :
to enter "Command-line mode". A colon (:
) will appear at the bottom of the screen and you can type in one of the following commands. To execute a command, press the Enter key.
:q
to quit (short for :quit
):q!
to quit without saving (short for :quit!
):wq
to write and quit:wq!
to write and quit even if file has only read permission (if file does not have write permission: force write):x
to write and quit (similar to :wq
, but only write if there are changes):exit
to write and exit (same as :x
):qa
to quit all (short for :quitall
):cq
to quit without saving and make Vim return non-zero error (i.e. exit with error)You can also exit Vim directly from "Normal mode" by typing ZZ
to save and quit (same as :x
) or ZQ
to just quit (same as :q!
). (Note that case is important here. ZZ
and zz
do not mean the same thing.)
Vim has extensive help - that you can access with the :help
command - where you can find answers to all your questions and a tutorial for beginners.
touch -t MMDDhhmm file
truncate -s 40 file
ln -s [path of the target file] [symbolic name]