In order to display the epoch time in Linux/macOS terminal we can make use of the date command with option +%s
Example: Zsh Shell% data +%s
1629634783
Example: Bash Shell
bash-3.2$ date +%s
1629634950
bash-3.2$
What is Epoch time?
It is the number of seconds that have elapsed since midnight of January 1, 1970, in UTC.

Display Epoch time in Terminal
More Posts related to Linux,
- How to remove/delete a directory in Linux/macOs
- What does apt-get update command does?
- How to quit or exit SFTP Prompt on Terminal
- How to exit from nano command
- Rename a directory using Linux/Unix command
- Calculate days between dates using dateutils ddiff command
- 3 Commands to stop Nginx Server
- How to use SCP Command to Copy Directory
- bash: cls: command not found
- How to Install CVS Version Control on Linux/Ubuntu
- Copy entire directory using Terminal Command [Linux, Mac, Bash]
- [Ubuntu] Search a package and versions using apt command
- zsh hello world example
- SCP Copy all files from directory to Local Folder
- Create Hidden File or Directory using Shell Command
- Check SSH/OpenSSH version Command
- How to install python pip on Ubuntu using apt command
- How to remove or uninstall Java from Ubuntu using apt-get
- How to change bash terminal prompt string and color
- scp: ssh: connect to host xxxx port 22: Connection refused Error
- ls command sort by file size [Linix/UNIX/macOS/bash]
- Install Java Runtime Environment (Oracle or open JRE) on Ubuntu
- How to tar.gz a directory/folder
- Terminal display next month Calendar
- 3 ways to clear screen on Linux Terminal
More Posts:
- Android Developers Bluetooth Tutorial - Android
- Add Animated Scrolling to Html Page Title Script - JavaScript
- Force android app to run in Landscape mode programatically - Android
- Download interrupted: Unknown Host dl-ssl.google.com Error Android SDK Manager - Android
- The Date Command and its usage [Linux - Unix - macOS] - Linux
- How to switch Eclipse IDE Workspace - Eclipse
- [Solved] Dynamic Web Module 3.0 requires Java 1.6 or newer Mac OSX - Mac-OS-X
- How to Change Bootstrap Carousel Slide Speed - Bootstrap