UNIX Basics 2 Flashcards
What does the date command do?
Displays the current date and time
What does the cal command do?
The calendar command displays the current month.
What does the du command do?
Prints the number of disk blocks -512 byte units, being used by the contents of the current directory.
What does the sort command do?
Sorts the input according to the given option.
What does the cut command do?
Extracts columns out of text files.
What does the tar command do?
Bundles files into an archive.
What does the diff command do?
Finds the differences between 2 files.
What does the grep command do?
Search for information using regular expressions.
What does the»_space; vs the > do?
> prints the output into a file, while»_space; appends the output into a file.
What is a pipe?
This will bring unix commands together.
What does date +%Y-%m-%d print?
2024-11-23
What does date +%j print?
The number of days since January 1st.
What does date +%s print?
The Unix timestamp.
What does cal -n numberOfMonths print?
The first month plus however many months.
What does cal -w print?
Displays the week number.
What does cal -j print.
Displaying the day numbers.
What does du COP3363 print?
Prints the disk usage of the entered directory.
What does du -h print?
Prints the disk usage in human readable form.
What does du -s print?
Prints a grand summary of the disk space used.