This is my first post so I apologies if I am asking something which has being asked numerous times.
Basically I have applied for a new job role which requires networking (cisco security) and linux skills. I have the required Cisco skills but I am a total noobie regarding Linux (something I am soon to remedy,). All that being said I have being given a technical challenge regarding Linux to complete, the Operation Director has stated that even though I don’t know Linux he would like me to research the answers and complete.
Given the above would anyone have a few moments to give some advise/assistance with some basic Linux commands? I have essentially googled a few of the simpler ones, which I was advised to do but I am running into a bit of trouble with the more “complex” commands.
Why not post the questions and see if anyone will explain them … I would think that’s more likely to elicit responses than asking for help without saying what you want help with
I for example don’t know whether to respond, as I don’t yet know if I’m able to help.
(see the link above, and I’m sure you’ll work it out)
-rwxrw–w-
rwx = read/write/execute = 7 ← OWNER permissions
rw- = read/write = 6 ← GROUP permissions
-w- = write = 2 ← EVERYONE ELSE permissions
I don’t know where the 2 “s” are coming from, but assuming that’s supposed to read -rwxrwxrwx
the first “-” digit (-rwxrwxrwx) means it’s a file, other options would be “d” for a directory, or “l” for a link (aka. symlnk/shortcut)
the next 3 digits (-rwxrwxrwx) are the permissions for the file “owner” (owner = james) … rwx = 7 = he has permission to read/write/execute the file.
the next 3 digits (-rwxrwxrwx) are the permissions for the file “group” (group = james) … rwx = 7 = anyone that belongs to the group assigned to the file has permission to read/write/execute the file.
the next 3 digits (-rwxrwxrwx) are the permissions for “everyone else” … rwx = 7 = everyone has permission to read/write/execute the file
Because EVERYONE has permission the read/write/execute the file, it could (depending on what it is) be considered a security risk … particularly if it’s executable (but also if you just want to keep it private, or make it public but not editable by anyone else).
echo -e "one four seven\n""two five eight\n""three six nine" > LinuxChallenge
5.) to create a folder called “CHALLENGE” in your home folder
mkdir ~/CHALLENGE
6.)
touch ~/CHALLENGE/LinuxChallenge
7.) dunno if this is what they expect, but it would work:
echo -e "<3 Archer Quotes""\n\n""Do you want ants? because that's how you get ants!""\n\n""Nope nope nope nope nope nope nope... you don't want to do that.""\n\n""Do you think this is a game?""\n""No, I think Jenga is a game.""\n\n""Lana. Lana? Lana! LANAAAAAA!""\n""What?""\n""....Danger zone" > ~/CHALLENGE/LinuxChallenge
Cheers Finlay, not something I’d come across before … but something I know now
(actually I knew about setuid and setgid … I just never realised they showed up in the permissions as “s” and didn’t make the connection)
Thank you for all your assistance in this matter. Given all your help as well as me epically falling over numerous times on my ubuntu install testing the commands you have supplied I was offered the role at the company. Goes without saying I could not do this without your support. Many many thanks!
Regards
Paul!
PS. Given this company works purely with Linux, watch this space for further questions hahaha