Use readlink:
readlink -f file.txt
More Related Contents:
- How to permanently set $PATH on Linux/Unix [closed]
- What is double dot(..) and single dot(.) in Linux?
- Should PATH contain directories or full paths to binaries?
- Relinking an anonymous (unlinked but open) file
- How do I get the path of a process in Unix / Linux?
- What is PATH on a Mac (UNIX) system?
- grep lines that contain 1 character followed by another character
- When should I wrap quotes around a shell variable?
- How to convert DOS/Windows newline (CRLF) to Unix newline (LF) in a Bash script
- How do I find the location of the executable in C? [duplicate]
- How to cat a file containing code?
- What’s the magic of “-” (a dash) in command-line parameters?
- What does the number in parentheses shown after Unix command names in manpages mean?
- Quickly create a large file on a Linux system
- How to instruct cron to execute a job every second week?
- How do I use the lines of a file as arguments of a command?
- How can I programmatically create a new cron job?
- How to split CSV files as per number of rows specified?
- How can I convert a file pointer ( FILE* fp ) to a file descriptor (int fd)?
- GROUP BY/SUM from shell
- List files recursively in Linux CLI with path relative to the current directory
- What is the difference between “source script.sh” and “./script.sh”?
- How to print third column to last column?
- Monitor Directory for Changes
- How can I remove the BOM from a UTF-8 file? [duplicate]
- don’t fail jenkins build if execute shell fails
- Forking vs Threading
- How to attach a file using mail command on Linux? [duplicate]
- Why no output is shown when using grep twice?
- What are the rules for valid identifiers (e.g. functions, vars, etc) in Bash?