Linux provides some important tricks. Here’s a few and important one’s:
- leave — remind you when you have to leave
leave waits until the specified time (within the next 12 hours), then reminds you that you have to leave by writing to the TTY that you executed leave on. You are reminded 5 minutes and 1 minute before the actual time, at the time, and every minute thereafter.
Options: hhmm The time of day is in the form hhmm where hh is a time in hours (on a 12 or 24 hour clock), and mm are minutes.
- diff – compare files line by line
diff file1 file2
Compare FILES line by line.
diff -q file1 file2
report only when files differ
- cal, ncal — displays a calendar and the date of Easter
The cal utility displays a simple calendar in traditional format and ncal offers an alternative layout, more options and the date of Easter. The new format is a little cramped but it makes a year fit on a 25×80 terminal. If arguments are not specified, the current month is displayed.
- locate – find files by name
locate reads one or more databases prepared by updatedb(8) and writes file names matching at least one of the PATTERNs to standard output, one per line.
- passwd – change user password
The passwd command changes passwords for user accounts. A normal user may only change the password for his/her own account, while the superuser may change the password for any account. passwd also changes the account or associated password validity period.
- ln – make links between files
ln existing_file_name file2_name
This article is contributed by Mayank Kumar. If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to firstname.lastname@example.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please write comments if you find anything incorrect, or you want to share more information about the topic discussed above.
Don’t stop now and take your learning to the next level. Learn all the important concepts of Data Structures and Algorithms with the help of the most trusted course: DSA Self Paced. Become industry ready at a student-friendly price.
- ncal Command in Linux with Examples
- locate command in Linux with Examples
- Difference between locate, which and find Command in Linux
- leave Command in Linux with Examples
- diff command in Linux with examples
- Fun Commands in Linux
- Linux Commands
- How to run Linux Commands on Windows 10?
- Linux vs Windows Commands
- How to Build Your Own Commands in Linux?
- Interesting Funny Commands in Linux
- Internal and External Commands in Linux
- Essential Linux/Unix Commands
- List out all the Shells Using Linux Commands
- Custom commands for linux terminal
- Daily life Linux Commands
- Basic Shell Commands in Linux
- Basic Linux Commands for day to day life
- How to Access All Users in Linux Using Different Commands?
- Python | Execute and parse Linux commands