Web Design

What user accounts have I created in Linux?

To quickly find out what user accounts you have created in your Linux system, use cut -d: -f1 /etc/passwd | sort This will output the list of usernames from /etc/passwd in a nice and readable way. [...]


Automatic shutdown in Linux

You can tell your Linux box to shut down at a certain time of day using and customizing one of the commands below: shutdown 8:00 -- Shutdown at 8:00 shutdown +13 -- Shutdown after 13 minutes shutdown -r now -- Shutdown [...]


Change file ownership and access permissions with one command

You can change the file permissions and ownership, the group and mode of a directory with a single command, using chown. For example, to make a directory called /dir accessible for everyone (RW), set the user joe as the [...]


Custom archiving specific filetypes in Linux

Using the command line can save you time. Say you want to archive all the .DOC files from your entire /home directory. Use locate .doc | grep /home/ | zip arhivate -@ to obtain an archive of these files. [...]