Use readlink:
readlink -f file.txt
Related Contents:
- How to permanently set $PATH on Linux/Unix [closed]
- Fastest way to tell if two files have the same contents in Unix/Linux?
- How do I get the path of a process in Unix / Linux
- What is double dot(..) and single dot(.) in Linux?
- change PATH permanently on Ubuntu [closed]
- Truncating a file while it’s being used (Linux)
- How do I get cURL to not show the progress bar?
- How to append one file to another in Linux from the shell?
- How do I syntax check a Bash script without running it?
- Environment variable substitution in sed
- How to check if a file is empty in Bash?
- How to sort a file in-place?
- How do I limit the number of results returned from grep?
- How do I use the lines of a file as arguments of a command?
- linux: kill background task
- cd into directory without having permission
- don’t fail jenkins build if execute shell fails
- List of Java processes
- How does SIGINT relate to the other termination signals such as SIGTERM, SIGQUIT and SIGKILL?
- Copy folder structure (without files) from one location to another
- What happens to an open file handle on Linux if the pointed file gets moved or deleted
- How to make an “alias” for a long path?
- Unix: How to delete files listed in a file
- Split one file into multiple files based on delimiter
- Difference between using “chmod a+x” and “chmod 755” [closed]
- Copying a large directory tree locally? cp or rsync?
- how to run cron job every 3 months?
- Learning to compile things from source (on Unix/Linux/OSX)
- How to convert line breaks in a text file between the Windows and Unix/Linux formats?
- What is the sticky bit in UNIX file systems? When is it used?
- Making libmagic/file detect .docx files
- To fsck or not fsck after 180 days
- How do you tell if a user is “allowed to log in” on Linux?
- How many and which partitions should I create for a linux server?
- Home-brew automatic tiered storage solutions with Linux? (Memory -> SSD -> HDD -> remote storage)
- Securing an Entry-Level Admin Job [duplicate]
- Available disk space on Unix/Linux OS
- Setting environment variables in Linux using Bash
- How to get diff between all files inside 2 folders that are on the web?
- Show special characters in Unix while using ‘less’ Command
- Best way to find the OS name and version on a Unix/Linux platform
- What is the *nix command to view a user’s default login shell
- How to pipe the results of ‘find’ to mv in Linux
- pass output as an argument for cp in bash [duplicate]
- How to count occurrences of a word in all the files of a directory?
- Should I put trailing slash after source and destination when copy folders
- After changing /etc/profile, what do I have to do to reset my shell?
- Splitting a file in linux based on content [duplicate]
- Linux/Unix ‘man’ page syntax conventions
- Running shell script in parallel