summaryrefslogtreecommitdiffhomepage
path: root/bash.html.markdown
diff options
context:
space:
mode:
authorven <vendethiel@hotmail.fr>2016-03-11 09:37:29 +0100
committerven <vendethiel@hotmail.fr>2016-03-11 09:37:29 +0100
commit60be912428d8776d758b0ff050c17be9d8eb6b3e (patch)
tree9818b165f1635a178f4d37caad4ff78ee4a884aa /bash.html.markdown
parentab5e8b0a95c1adea2cef6ff813b134a555756adc (diff)
parent5c8942f7bcb02a59d1e0acefb0069e80de57e01e (diff)
Merge pull request #1636 from viv1/patch-2
[bash/en]...Added info on changing directories
Diffstat (limited to 'bash.html.markdown')
-rw-r--r--bash.html.markdown9
1 files changed, 9 insertions, 0 deletions
diff --git a/bash.html.markdown b/bash.html.markdown
index bd2d5984..f3c9cccc 100644
--- a/bash.html.markdown
+++ b/bash.html.markdown
@@ -130,6 +130,15 @@ ls -l # Lists every file and directory on a separate line
# .txt files in the current directory:
ls -l | grep "\.txt"
+# Since bash works in the context of a current directory, you might want to
+# run your command in some other directory. We have cd for changing location:
+cd ~ # change to home directory
+cd .. # go up one directory
+ # (^^say, from /home/username/Downloads to /home/username)
+cd /home/username/Documents # change to specified directory
+cd ~/Documents/.. # still in home directory..isn't it??
+
+
# You can redirect command input and output (stdin, stdout, and stderr).
# Read from stdin until ^EOF$ and overwrite hello.py with the lines
# between "EOF":