Linux Commands
Commands
ls
cd
mkdir
cat
more
head
tail
touch
rm
How To
Change Prompt

cat - command in linux



cat - command in linux

cat - command prints contents of file to terminal / putty
cat - writes standard inputs to file

syntax

cat [filename with path]

prints contents of file to standard output or terminal

example

MyPrompt:~ > cat cp.cpp

f5db03cebc9de7_cat_print.png

The above example will print the contents of the cp.cpp file to terminal.

syntax

cat > [filename with path]

example

f5db04005f29a0_cat_feed.png

In the example above, type "cat > [your file name]" and hit enter, and feed the desired text.
once text feeding is completed, press Ctrl+C to save and close the file.

now type "cat [your file name]" to display the content using cat command.


options


OptionDescription
-A, --show-alldisplays all content of file to standard output.
-b, --number-nonblankdisplays number in nonempty output lines
-eequivalent to -vE
-E, --show-endsdisplay $ at end of each line
-n, --numbernumber all output lines
-s, --squeeze-blanksuppress repeated empty output lines
-tequivalent to -vT
-v, --show-nonprintinguse ^ and M- notation, except for LFD and TAB
--helpdisplay this help and exit
--versionoutput version information and exit


rm

rm command in linux

posted on 2019-10-24 21:34:18 - Linux Commands Tutorials


touch

touch command in linux

posted on 2019-10-23 19:41:20 - Linux Commands Tutorials


tail

tail command in linux

posted on 2019-10-23 19:10:42 - Linux Commands Tutorials


Prompt Examples

ChatGPT Prompt Examples

posted on 2023-06-21 22:37:19 - ChatGPT Tutorials


Use Cases

Chat GPT Key Use Cases

posted on 2023-06-21 21:03:17 - ChatGPT Tutorials


Prompt Frameworks

Prompt Frameworks

posted on 2023-06-21 19:33:06 - ChatGPT Tutorials