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.
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.
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 and restart shutdown -k +2 — Display the “The system is going DOWN to… Read More »
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 owner of /dir and it’s contents and claim dev as the ownership group, use chown -R… Read More »
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.