relative path
A file path given from the current directory, such as site/index.html, rather than from the root of the filesystem.
In more detail
.. means the parent directory and . the current one, so the same relative path points at different places depending on where you are. An absolute path starts with /, such as /srv/www, and always means the same place.
Examples
The course keeps every playbook path, such as site/index.html, relative to a temporary workspace so examples cannot touch the rest of your machine.cat notes/todo.mdcat ../work/notes/todo.mdgit remote add origin ../server.gitRelated terms
- file module — The module that makes sure a file, directory or link exists or is absent, with the owner and permissions you ask for.
- copy module — The module that puts a file on a host, either copied from the control node or written from content given in the task.
- absolute path — A path that starts from the top of the file system, such as /home/ana/notes.txt or C:\Users\ana\notes.txt, and so works from anywhere.
- dot and dot dot — The special directory names dot, meaning this directory, and dot dot, meaning the parent directory, which exist in every directory.
- current working directory — The directory a shell or process is standing in, where any relative path or bare file name is looked up.
- remote — A short name saved in a repository's config that stands for another repository's location, a URL or a path, so you can fetch from and push to it.
- URL — A web address, such as https://example.com/docs, made of a scheme, a host, an optional port and a path.
- FileNotFoundError — The exception raised when a program tries to open a file that does not exist at the given path.
Taught in
- Writing Your First Playbook — Ansible Configuration Management at Scale
- Check Mode And Diff — Ansible Configuration Management at Scale
- Handlers And Notify — Ansible Configuration Management at Scale
- Templates With Jinja — Ansible Configuration Management at Scale
- Moving Around: pwd, ls, cd And Paths — Bash Scripting & Command Line Automation
- What A Remote Actually Is — Advanced Git Internals & Distributed Workflows
- Clone, Forks, Push, And The Upstream Branch — Advanced Git Internals & Distributed Workflows
- Reading A Traceback Like A Professional — Hands-on Python: Complete Video Course & Book