Welcome to the Slackware Documentation Project

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
slackbook:bash [2012/09/12 19:55 (UTC)]
mfillpot updated code block to syntax highlighting
slackbook:bash [2012/10/14 15:52 (UTC)] (current)
mfillpot removed all bash flags
Line 41: Line 41:
  
  
-<​code ​bash>+<​code>​
 darkstar:~$ set FOO=bar darkstar:~$ set FOO=bar
 darkstar:~$ echo $FOO darkstar:~$ echo $FOO
Line 57: Line 57:
  
  
-<​code ​bash>+<​code>​
 darkstar:~$ set PS1='​FOO ' darkstar:~$ set PS1='​FOO '
 darkstar:~$ export PS1='​FOO ' darkstar:~$ export PS1='​FOO '
Line 78: Line 78:
  
  
-<​code ​bash>+<​code>​
 darkstar:~$ ifconfig darkstar:~$ ifconfig
 bash: ifconfig: command not found bash: ifconfig: command not found
Line 91: Line 91:
  
  
-<​code ​bash>+<​code>​
 darkstar:~$ su - darkstar:~$ su -
 Password: ​ Password: ​
Line 114: Line 114:
  
  
-<​code ​bash>+<​code>​
 darkstar:~$ touch b ba bab darkstar:~$ touch b ba bab
 darkstar:~$ ls * darkstar:~$ ls *
Line 133: Line 133:
  
  
-<​code ​bash>+<​code>​
 darkstar:~$ ls a[1-4,9] darkstar:~$ ls a[1-4,9]
 a1 a2 a3 a4 a9 a1 a2 a3 a4 a9
Line 145: Line 145:
  
  
-<​code ​bash>+<​code>​
 darkstar:~$ ls 1[W-b] darkstar:~$ ls 1[W-b]
 1W 1X 1Y 1Z 1a 1b 1W 1X 1Y 1Z 1a 1b
Line 183: Line 183:
  
  
-<​code ​bash>+<​code>​
 darkstar:~$ echo foo darkstar:~$ echo foo
 foo foo
Line 203: Line 203:
  
  
-<​code ​bash>+<​code>​
 darkstar:~$ echo foo darkstar:~$ echo foo
 foo foo
Line 226: Line 226:
  
  
-<​code ​bash>+<​code>​
 darkstar:~$ rm bar darkstar:~$ rm bar
 rm: cannot remove `bar': No such file or directory rm: cannot remove `bar': No such file or directory
Line 240: Line 240:
  
  
-<​code ​bash>+<​code>​
 darkstar:~$ fromdos < dosfile ​ darkstar:~$ fromdos < dosfile ​
 </​code>​ </​code>​
Line 253: Line 253:
  
  
-<​code ​bash>+<​code>​
 darkstar:~$ ps auxw | grep getty darkstar:~$ ps auxw | grep getty
 root      2632  0.0  0.0   ​1656 ​  532 tty2     ​Ss+ ​ Feb21   0:00 /​sbin/​agetty 38400 tty2 linux root      2632  0.0  0.0   ​1656 ​  532 tty2     ​Ss+ ​ Feb21   0:00 /​sbin/​agetty 38400 tty2 linux
Line 274: Line 274:
  
  
-<​code ​bash>+<​code>​
 darkstar:~$ jobs darkstar:~$ jobs
 [1]-  Stopped ​                vi TODO [1]-  Stopped ​                vi TODO
Line 288: Line 288:
  
  
-<​code ​bash>+<​code>​
 darkstar:~$ fg # "vi TODO" darkstar:~$ fg # "vi TODO"
 darkstar:~$ fg 1 # "vi chapter_05.xml"​ darkstar:~$ fg 1 # "vi chapter_05.xml"​
Line 348: Line 348:
  
  
-<​code ​bash>+<​code>​
 alan@darkstar:​~$ </​code>​ alan@darkstar:​~$ </​code>​
  
Line 355: Line 355:
  
  
-<​code ​bash>+<​code>​
 bash-3.1$ </​code>​ bash-3.1$ </​code>​
  
Line 376: Line 376:
  
  
-<​code ​bash>+<​code>​
  
 # ~/.bashrc # ~/.bashrc
Line 401: Line 401:
  
  
-<​code ​bash>+<​code>​
 darkstar:~$ echo $PS1 darkstar:~$ echo $PS1
 \u@\h:\w\$ </​code>​ \u@\h:\w\$ </​code>​
Line 425: Line 425:
  
  
-<​code ​bash>+<​code>​
 Wed Jan 14 12:08 AM Wed Jan 14 12:08 AM
 alan@raven:​~$ echo $PS1 alan@raven:​~$ echo $PS1
Line 450: Line 450:
 ====== Sources ====== ====== Sources ======
 <!-- If you copy information from another source, then specify that source --> <!-- If you copy information from another source, then specify that source -->
- * Original source: [[http://​www.slackbook.org/​beta]] \\+  ​* Original source: [[http://​www.slackbook.org/​beta]] \\
 <!-- Authors are allowed to give credit to themselves! --> <!-- Authors are allowed to give credit to themselves! -->
- * Originally written by Alan Hicks, Chris Lumens, David Cantrell, Logan Johnson+  ​* Originally written by Alan Hicks, Chris Lumens, David Cantrell, Logan Johnson
 <!-- * Contrbutions by [[wiki:​user:​yyy | User Y]] --> <!-- * Contrbutions by [[wiki:​user:​yyy | User Y]] -->
  

In Other Languages
QR Code
QR Code slackbook:bash (generated for current page)