Does anyone know of a simple command that could get the date and make a folder (mkdir) as its name?

say todays date

20090304

as the folder name.


I guess the first thing would be grep the date? Then run a mkdir command?

Any help is appreciated!

Thanks

Also need help on listing the cpu information with echo.

I have these commands I use now:

cat /etc/SuSE-release #Shows version and bit
df -h #Shows Memory +more
top #Shows Ram +more
less /proc/cpuinfo #Shows CPU +more

I am really just looking for these things listed so I know where to start on an upgrade:

CPU
Memory
RAM
OS version

Hey there,

This should work:

mkdir `date +%Y%m%d`

Best wishes,

Mike

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.