Editing
Linux Basics Tutorial
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== The Working Directory === Navigation in Bash (and any type of command-line interface, really) is based on the concept of a "working directory," the folder you are thought to be "within" at the moment. Your working directory is often shown in the terminal prompt, before the "$" symbol. When you first start up a terminal in Ubuntu, the default for the starting working directory is "~", which is a symbol that evaluates to your "home" directory, which can be thought of as your personal user folder (more on that later). When you execute commands that take a filepath (such as <code>rm</code>, which deletes a file), those filepaths are relative to your working directory. So, if you want to delete "~/filetodelete.txt", and your working directory is "~", you can simply type: <code>$ rm filetodelete.txt</code> and Bash will know you mean the file in the ~ directory.
Summary:
Please note that all contributions to RHLUG Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
RHLUG Wiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
Edit source
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information