One Day One Cmd

Place for playing with commands…

Day 7 : $ cat

ODOC : $ cat > filenae. this cat command used to create new file,with contents. After typed the above line press Enter. Now you type the contents of the file in many lines. You can end up the file content by pressing the file content by pressing control+D keys.Now that file is created with the contents what you typed before.

$ cat filename. This cmd just view the content of the file. Note : Here > symbol is not used.  🙂

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: