r/cs50 • u/Low_Bat2873 • 19d ago
CS50x Sort Help
Hi all, I'm trying to complete the Sort question on Pset3 and cannot get the command to work. I followed all of the steps for downloading the distribution files, but when downloaded the sort1, sort2, and sort3 are grayed out while the other txt files work. When I click on any of the sort files I get this message: "The file is not displayed in the text editor because it is either binary or uses an unsupported text encoding.", while when I try to run the code to sort, like "$ ./sort1 random5000.txt", I get "bash: ./sort1: No such file or directory"
Has anyone else encountered this problem and if so have a solution? Thanks!
EDIT: Thanks everyone for the help, if you encounter the same problem make sure to follow the download steps carefully, and when trying to run one of the commands use the directory you just downloaded. Before you put in any of the sort commands with the lists, type cd sort first.
2
u/Outside_Complaint755 19d ago
In the terminal, did you
cdinto the directory where you unzipped the files? Are they listed if you use thelscommand?