Bash Commands: Unterschied zwischen den Versionen

Aus Open Source Ecology - Germany
Zur Navigation springen Zur Suche springen
Zeile 12: Zeile 12:
 
== Find ==
 
== Find ==
 
* which <executable> - prints the path of the executable file
 
* which <executable> - prints the path of the executable file
 
+
* find <dir> -name <filename> - searches for a file with the given filename
  
 
== User Management ==
 
== User Management ==

Version vom 15. August 2013, 10:41 Uhr

Internet

  • wget -N http://...
    • Downloads the give file and overwrites the local one

File Manager

  • gksudo nautilus (start it as root)

Text

Search text in files:

  • grep -r "your text" <directory>

Find

  • which <executable> - prints the path of the executable file
  • find <dir> -name <filename> - searches for a file with the given filename

User Management

Neuen User anlegen

  • sudo adduser <username>

Unzip

  • tar xzf <filename>

Cron Jobs

  • sudo -s crontab -e
    • Add/Remove cron jobs

http://www.sysadminslife.com/linux/cronjob-unter-debian-und-ubuntu-erstellen/

Create Screens

  • screen (saves your screen even after session time out)
    • screen -r (see what happened)
  • Ctrl+AC (create new terminal tab)
    • Ctrl+AA (switch between terminal tabs)

Backup

  • sudo ./backupAll.bash <backupname>

Shutdown

  • sudo shutdown -h 18:45