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

head - command in linux



head - command in linux

head command is used to print first 10 lines of the file to terminal

syntax

head [filename with path]

example

MyPrompt:/var/log> head dmesg
f5db0524718512_head_dmesg.png

options


OptionDescription
-c, --bytes=[-]Kdisplay the first K bytes of each file; with the leading '-'
-n, --lines=[-]Kdisplay the first K lines instead of the first 10; with the leading '-'
-q, --quiet, --silentit will never displays headers giving file names
-v, --verbosealways display headers giving file names
--helpdisplays help information
--versiondisplays version information


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