The command is date
To customise the output there are a myriad of options available, see date --help
for a list.
For example, date '+%A %W %Y %X'
gives Tuesday 34 2013 08:04:22
which is the name of the day of the week, the week number, the year and the time.
Related Contents:
- Linux command to list all available commands and aliases
- Track the time a command takes in UNIX/LINUX?
- How to exclude a specific directory in ncdu? [closed]
- How can I pass a file argument to my bash script using a Terminal command in Linux? [duplicate]
- How to find out line-endings in a text file?
- View tabular file such as CSV from command line [closed]
- How to recursively download a folder via FTP on Linux [closed]
- diff to output only the file names
- How to find out what group a given user has?
- How do I include a pipe | in my linux find -exec command?
- Linux equivalent of the Mac OS X “open” command [closed]
- Appending a line to a file only if it does not already exist
- How do I use the lines of a file as arguments of a command?
- How can I list (ls) the 5 last modified files in a directory?
- an htop-like tool to display disk activity in linux [closed]
- How to clear all history in linux/ubuntu terminal or bash permanently? [closed]
- How to force ‘cp’ to overwrite directory instead of creating another one inside?
- List of Java processes
- Where are sudo incidents reported? [closed]
- Automatically capture output of last command into a variable using Bash?
- How to check if SMTP is working from commandline (Linux) [closed]
- BASH copy all files except one
- Linux command (like cat) to read a specified quantity of characters
- how do I check in bash whether a file was created more than x time ago?
- Display two files side by side
- VIM: how to go to exact line on Ubuntu
- Reasons for missing IP info in `last` output on pts logins?
- How to find out the virtualization type of an linux VPS?
- command line utility to print statistics of numbers in linux
- Run text file as commands in Bash
- How do I divide in the Linux console?
- Why am I getting a “failed to connect to server” message from tmux when I try to list sessions?
- Is there a command to write random garbage bytes into a file?
- How to write stdout to file with colors?
- Shortest way to swap two files in bash
- In Linux, what do all the values in the “top” command mean?
- How to edit a text file in my terminal
- How to remove all non-numeric characters from a string in Bash?
- Append text to file from command line without using io redirection
- Using the “alternate screen” in a bash script
- List file using ls command in Linux with full path
- Gnome-terminal – How to Copy selection to clipboard automatically?
- Deleting a folder from svn repository
- Appending a line to a file only if it does not already exist
- watch file size on linux
- Only Questionmarks in Linux dirlisting
- In reverse-i-search (Ctrl+R ) ,Any method to switch between similar commands in history
- PostgreSQL psql terminal command
- Command to zip a directory using a specific directory as the root
- Why no output is shown when using grep twice?