Please note that LinuxExchange will be shutting down on December 31st, 2016. Visit this thread for additional information and to provide feedback.

I'm trying to learn UNIX commands and I'm playing this game to learn and I'm really stuck at the moment. I'm in a server through ssh and the directory is full of random files and folders and the password for the next level is inside one of the files. I have been told that the file has the following attributes:

human-readable 1033 bytes non-executable

I am guessing that I should use the 'find' command and I tried " find ! -executable " but that returned a load of files. The only human-readable help I can find in the manual or online is printing out the file sizes in human readable. So I'm a bit lost there?

Also I did try " find ~ -size 1033b " but that returned nothing. But when I tried " find ~ -size -1033b " it returned every file in the directory.

Any help would be appreciated. Thanks in advance.

asked 15 Jul '12, 20:26

nickcorin's gravatar image

nickcorin
111
accept rate: 0%

nickcorin : can you please disclose the name of this game ? I would love to play it too. Thanks in advance. :)

(26 Sep '12, 01:43) jaybh



The find command that you want is: find ~ -size 1033c

From the man page for find:

  • b: for 512-byte blocks (this is the default if no suffix is used)
  • c: for bytes
link

answered 20 Sep '12, 10:54

jeremy's gravatar image

jeremy ♦♦
1.0k1516
accept rate: 37%

edited 20 Sep '12, 10:55

If there's only 1 file of 1033 bytes you could do a " ls -l | grep 1033 " to get the file name.

link

answered 19 Sep '12, 11:55

hamlindsza's gravatar image

hamlindsza
111
accept rate: 0%

-1033b is not correct. -size 1033 is correct

Sorry.

link

answered 24 Sep '12, 17:35

vectrum's gravatar image

vectrum
113
accept rate: 0%

edited 25 Sep '12, 14:29

And also, i think that "human readable" means that the contents of the file should be human readable, so it's not a bynary file. You can check that with file, doing:

-exex file {} \;

in you find command, or with

-type

also in your find command.

Hope it helps ;) (BTW, tell us the name of the game please :D)

link

answered 16 Mar '13, 10:12

wakaru44's gravatar image

wakaru44
1
accept rate: 0%

It's Over the wire! and using -exec file {} ; helps as it lists out data from ascii text which the point is to find which of these files is human readable. thanks!

    @melinda:~/inhere$ find -exec file {} \;
.: directory 
./-file08: data
./-file05: data
./-file07: ASCII text
./-file04: data
./-file00: data
./-file01: data
./-file06: data
./-file03: data
./-file09: data
./-file02: data
link

answered 01 Apr '15, 19:14

Al%20Christopher's gravatar image

Al Christopher
111
accept rate: 0%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×90
×16

Asked: 15 Jul '12, 20:26

Seen: 7,303 times

Last updated: 01 Apr '15, 19:14

powered by OSQA