I've come across a problem, I am writing a script that would find the biggest file in directory and sub-directories, then show full path on screen. Can't seem to get it working. The error I'm getting is "bash: scriptas.sh: No such file or directory" There are two .mp3 files in the directory.
#!/bin/bash du -a /dir/ | sort -n -r | head -n 1 echo pwd
I am totally new to this.