# Unlike any other crontab you don't have to run the `crontab' You can find out about when these scripts will be run with cat /etc/crontab # /etc/crontab: system-wide crontab Make a file executable: sudo chmod +x /etc/cron.hourly/backup.shīetter yet, make sure they have the correct permissions: chmod 600 /etc/cron.d/* You can place scripts to run every day/week/month into /etc/cron.daily/weekly/monthly, but make sure that the files are executable and that they don't contain any special characters (or even an file ending). Show current directory in the other panel as wellĬalculate file size (use it on. Switch panel layout between horizontal and vertical Reverse selection (or select all files, if nothing was selected) Sudo apt-get install htop and then sudo htop Midnight Commander Keys Listof processes ordered by CPU and memory usage Performance and Resource Monitoring Command PasswordAuthentication yes Services Command To enable un/pw access for a specific IP range only, you can add to the end of the file: # Settings that override the global settings for matching IP addresses only Restart sshd (and apply changes in sshd_config) List all enabled sites (Apache, another method)Įdit config (for example, disable un/pw login) Read UsingTheTerminal for a good overview of.using the terminal! Apache Command Recursively change the ownership or all files and folders in/under the current directory (to user/group www-data)Īdd write privilege for the group recursively for the given directoryįind a file (faster, needs apt-get install locate and then sudo updatedb) Usermod -aG sudo USERNAME or adduser USERNAME sudo List the contents of the working directory, +all files +human readable filesizes +long format Just a place for me to jot down some useful commands when working with the Ubuntu command line.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |