LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 02-24-2017, 09:58 AM   #1
jinp
LQ Newbie
 
Registered: Sep 2005
Posts: 3

Rep: Reputation: 0
Meaning of "```bash"


Somewhere I saw the commands

```bash
luarocks install cudnn
```
when type the first command it show prompt
>>
second one the same
>>
third one it get back to normal prompt

ls shows no files
need to type exit,
then there are some message and ls shows files

what is the meaning of ```bash?
and what state it entered?

Thanks
 
Old 02-24-2017, 12:05 PM   #2
HMW
Member
 
Registered: Aug 2013
Location: Sweden
Distribution: Debian, Arch, Red Hat, CentOS
Posts: 770
Blog Entries: 3

Rep: Reputation: 368Reputation: 368Reputation: 368Reputation: 368
There is no "meaning", it is for stylistical purpose in the markdown language. What you have seen is part of a markdown file: https://github.com/jcjohnson/denseca...54fe03d90eb201

That markdown (.md) file looks like this with formatting:
https://github.com/jcjohnson/densecap

So, ``` "means" syntax highligting in markdown.

Read more here:
https://guides.github.com/features/mastering-markdown/

Last edited by HMW; 02-24-2017 at 12:07 PM.
 
4 members found this post helpful.
Old 02-24-2017, 01:07 PM   #3
Habitual
LQ 5k Club
 
Registered: Jan 2011
Location: Nowhere near you, thank God.
Distribution: OSX Sierra
Posts: 8,573
Blog Entries: 15

Rep: Reputation: Disabled
Wordpress for example, is notorious for screwing up, I mean Marking Up "--"
 
1 members found this post helpful.
Old 02-24-2017, 10:45 PM   #4
jinp
LQ Newbie
 
Registered: Sep 2005
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks
It is README.md file, did not know what md stands for. So in xterminal no need to enter first and third commands?
 
Old 02-25-2017, 03:15 AM   #5
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 9,550

Rep: Reputation: 2898Reputation: 2898Reputation: 2898Reputation: 2898Reputation: 2898Reputation: 2898Reputation: 2898Reputation: 2898Reputation: 2898Reputation: 2898Reputation: 2898
In the future, instead of saying "Somewhere I saw the commands", which in of it self is useless information, had you of said, "I was reading a README.md file and saw the following:", people reading
your question would know instantly what you are talking about.
 
4 members found this post helpful.
Old 03-01-2017, 01:08 PM   #6
NoStressHQ
Member
 
Registered: Apr 2010
Location: Geneva - Switzerland ( Bordeaux - France / Montreal - QC - Canada)
Distribution: Slackware 14.2 - 32/64bit
Posts: 572

Rep: Reputation: 196Reputation: 196
Quote:
Originally Posted by grail View Post
In the future, instead of saying "Somewhere I saw the commands", which in of it self is useless information, had you of said, "I was reading a README.md file and saw the following:", people reading
your question would know instantly what you are talking about.
You're right... Fortunately HMW knew instantly what he was writing about .
 
Old 06-13-2017, 10:19 AM   #7
alar
Member
 
Registered: Sep 2003
Location: Canada
Distribution: Fedora 25
Posts: 338

Rep: Reputation: 36
I came here because I saw
```bash
cd /path/to/the/project
php init_db.php
```

and I wondered what do they mean by ``` ?

Yes, I was in a README.md but I would not have known that that had any bearing on the question. If I had known there was a relation I wouldn't have had the question. Just saying
 
Old 06-13-2017, 11:32 AM   #8
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 3,302

Rep: Reputation: 1006Reputation: 1006Reputation: 1006Reputation: 1006Reputation: 1006Reputation: 1006Reputation: 1006Reputation: 1006
> and I wondered what do they mean by ``` ?

It means "be prepared, the code starts in the next line"
 
Old 06-27-2017, 07:06 AM   #9
NoStressHQ
Member
 
Registered: Apr 2010
Location: Geneva - Switzerland ( Bordeaux - France / Montreal - QC - Canada)
Distribution: Slackware 14.2 - 32/64bit
Posts: 572

Rep: Reputation: 196Reputation: 196
https://daringfireball.net/projects/markdown/syntax

(Woops, sorry, didn't saw the earlier answers...)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
bash script: using "select" to show multi-word options? (like "option 1"/"o zidane_tribal Programming 7 12-19-2015 02:03 AM
what is the meaning of "e" in "double freq = 914.0e6; // frequency" er.poojasahu@gmail.com Linux - Wireless Networking 3 12-17-2013 02:57 AM
What is the meaning of using "__KERNEL__" and "MODULE" macro? nithima Linux - Newbie 1 10-18-2010 09:26 PM
Standard commands give "-bash: open: command not found" even in "su -" and "su root" mibo12 Linux - General 4 11-11-2007 11:18 PM
C/C++ functions similar to BASH's "cp", "mv", "mkdir", etc? kornerr Programming 10 04-23-2006 10:48 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:41 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration