You need to use the standard date command to format date or time. You can use
the same command with the shell script.
Syntax
The syntax is
date +FORMAT
OR
date +"%FORMAT"
OR
date +"%FORMAT%FORMAT"
OR
date +"%FORMAT-%FORMAT"
Task: Display date in
mm-dd-yy format
Open a terminal and
type the following date command:
$ date +"%m-%d-%y"
Sample output:
02-27-07
To turn on 4 digit
year...
LINUX / UNIX
Linux invented by Linus Torwalds , a finnish student as a project, which has grown to vast area of development where thousands of developers are been working upgrading the LINUXUNIX
Unix (all-caps UNIX for the trademark) is a multitasking, multiuser computer operating system that exists in many variants. The original Unix was developed at AT&T's Bell Labs research center by Ken Thompson, Dennis Ritchie, and others.MAC OSX is UNIX
Even Mac OSX is developed is a series of Unix-based graphical interface operating systems developed and marketed by Apple Inc.LINUX / UNIX
Linux invented by Linus Torwalds , a finnish student as a project, which has grown to vast area of development where thousands of developers are been working upgrading the LINUXUNIX
Unix (all-caps UNIX for the trademark) is a multitasking, multiuser computer operating system that exists in many variants. The original Unix was developed at AT&T's Bell Labs research center by Ken Thompson, Dennis Ritchie, and others.
10.10.2014
What is a Unix Shell?
10:02 AM
0
The shell provides you with an interface to the UNIX system. It gathers input from you and executes programs based on that input. When a program finishes executing, it displays that program's output.
A shell is an environment in which we can run our commands, programs, and shell scripts. There are different flavors of shells, just as there are different flavors of operating systems. Each flavor...
10.09.2014
Bash (Unix shell)
12:43 AM
0
Bash is a Unix shell written by Brian Fox for the GNU Project as a free software replacement for the Bourne shell (sh).Released in 1989, it has been distributed widely as the shell for the GNU operating system and as a default shell on Linux and Mac OS X. It has been ported to Microsoft Windows and distributed with Cygwin and MinGW, to DOS by the DJGPP project, to Novell NetWare and to Android...
240 LINUX U HAVE TO TRY
12:34 AM
0
How many have you tried? Have a look
Linux is all about freedom, experiments and versatility! We all know about popular Linux distros like Linux Mint, Ubuntu, Fedora, Redhat etc., but do you know that there are over 400 Linux distros! So if the adventurous geek inside you is still alive.
Absolute LinuxOfficial website
AbulEduOfficial website
AgiliaLinuxOfficial website
aLinuxOfficial...
Subscribe to:
Posts (Atom)
Translate
Popular Posts
-
Artificial intelligence is a field of study in which we can program computers to make decisions for the work and attain a specific output....
-
Linux plays a major role in the world security and hacking. People feel more free and best working without any obstructs when compare...
-
List running services: # service --status-all # chkconfig --list | grep '3:on' Recommend Actions on Default Services Servi...
-
Kernel (from German Kern, nucleus, core ) is the main component of most computer operating systems acts as a bridge between applications...
-
Web UIs for the Common User The default Hadoop ports are as follows: Daemon Default Port Configuration Parameter HDFS Namenode ...
-
Commands are typed and executed in a shell terminal. When a terminal is opened, a prompt is available which usually has the following for...
-
These are examples include linux f ile systems. FAT (FAT12, FAT16, FAT32) , ext2 , ext3, ext4, XFS, btrfs, ISO 9660, Files-11, Ver...
-
Boot loader phase The boot loader phase varies by computer architecture. Since the earlier phases are not specific to the operating sys...
-
Linux/Unix Shell is compact closure of system utilities,calls,kernel which can be ported and command using shell commands. Different comm...
-
RAW RAW TCP are network protocols that allows data to be exchanged using a secure channel between two networked devices. Used primarily ...
Recent Posts
Categories
- Artificial intelligence in Nutshell (1)
- bashrc (1)
- computer file systems (1)
- creating users (1)
- ext (1)
- FAT (1)
- file systems (1)
- linux (1)
- services (1)
- Shell scripting (1)
- System Calls (1)
- veritas (1)
- vfs (1)
- xfs (1)
- zfs (1)