≡ Menu

echo command

Bash Shell Number Comparison

I am new Unix/Linux user. I am learning shell scripting. How can I compare numbers in bash shell?
[click to continue…]

I am a new Unix user. I have Debian Linux installed. I need to append text to a file called daily.log. How do I use the cat command to append data to a file?
[click to continue…]

Unix Create a File Command

I'm a new Unix user. How do I create a file from bash prompt without using GUI tools? How to create a file in Unix from terminal window? What's the easiest and best way to create a file in Unix?
[click to continue…]

Bash: Assign Output of Shell Command To Variable

How do I assign the output of a shell command to a shell variable under Unix like operating system? For example, I want to store the date command output to a variable called $now. How do you do that?
[click to continue…]

logname command

I am a new Linux and Unix system user. How do I find out the current login name on Linux or Unix-like operating system using command prompt?
[click to continue…]

Linux / Unix: id Command Examples

id command

I am a new Linux and Unix system user. How do I find out the user and groups names and numeric IDs of the current user or any users on my server? How can I display and effective IDs on the system using command line options? In Linux, how do I find a user's UID or GID?
[click to continue…]

Linux: Set Environment Variable

Bash shell is used for various purposes under Linux. How do I customize the shell environment variable under Linux operating systems?
[click to continue…]