How to see current date, time, username, and current directory using shell script in Unix?
How to see current date, time, username, and current directory using shell script ?
write script to see current date, time, username, and current directory in ubuntu | how to get current time in linux command prompt | write a shell script that adds an extension “.new” to all the files in a directory. | write a shell script that determines whether the given file exists in the home directory or not | shell script date variable | shell scripting real time examples | read date in shell script
write script to see current date, time, username, and current directory in ubuntu | how to get current time in linux command prompt | write a shell script that adds an extension “.new” to all the files in a directory. | write a shell script that determines whether the given file exists in the home directory or not | shell script date variable | shell scripting real time examples | read date in shell script
write script to see current date, time, username, and current directory in ubuntu | how to get current time in linux command prompt | write a shell script that adds an extension “.new” to all the files in a directory. | write a shell script that determines whether the given file exists in the home directory or not | shell script date variable | shell scripting real time examples | read date in shell script
write script to see current date, time, username, and current directory in ubuntu | how to get current time in linux command prompt | write a shell script that adds an extension “.new” to all the files in a directory. | write a shell script that determines whether the given file exists in the home directory or not | shell script date variable | shell scripting real time examples | read date in shell script
write script to see current date, time, username, and current directory in ubuntu | how to get current time in linux command prompt | write a shell script that adds an extension “.new” to all the files in a directory. | write a shell script that determines whether the given file exists in the home directory or not | shell script date variable | shell scripting real time examples | read date in shell script
write script to see current date, time, username, and current directory in ubuntu | how to get current time in linux command prompt | write a shell script that adds an extension “.new” to all the files in a directory. | write a shell script that determines whether the given file exists in the home directory or not | shell script date variable | shell scripting real time examples | read date in shell script write script to see current date, time, username, and current directory in ubuntu how to get current time in linux command prompt write a shell script that adds an extension “.new” to all the files in a directory. write a shell script that determines whether the given file exists in the home directory or not shell script date variable shell scripting real time examples read date in shell script
Share
Current Date:
Username:
Current direcotry:
Output:
Current Date:
Wed Dec 27 17:53:27 UTC 2017
Username:
root
Current direcotry:
/home
#!/bin/bash
echo "Current Date:"
date
echo "Username:"
whoami
echo "Current direcotry:"
pwd
Output:
Current Date:
Wed Dec 27 17:53:27 UTC 2017
Username:
root
Current direcotry:
/home