dotfiles/doc/tips.md
2021-11-23 03:43:53 +03:00

816 B

Tips

  1. echo $RANDOM  # Return random 0-32767
    
  2. \command  #  without using alias
    
  3. mount /dev/sda2 /home
    
  4. mount /dev/sdb_ /mnt/Files  # Other disk 
    ln -s /mnt/Files $HOME  # symlink in Home
    
  5. sudo pkill -9 -t pts/1  # close session
    
  6. [space]command  # without saving in history
    sudo !!  # last command with sudo 
    

Autostart

  • create /etc/systemd/system/service.service
sudo vim /etc/systemd/system/service.service  # create custom service
sudo systemctl daemon-reload
sudo systemctl start service.service  # start custom service
sudo systemctl status service.service  # check status
sudo systemctl enable service.service  # autostart custom service