I just started my ERP Systems Administration class a couple weeks ago and we're focusing on Unix/Linux and SAP systems. For Unix/Linux we're using Putty.
This teacher is trying to make the class as close to as real as a job as he can. The class is at 9 AM (he teaches an 8 AM class right before this) and he doesn't really give any instruction as to how to accomplish anything. He gives us homework and groupwork with things to be done but no how to or reference material. In class he's lectured a little bit on commands and shortcuts in linux/unix (most of it went over my head) but that's about all the instruction we get.
So my questions are probably so basic I should be embarrassed, but I currently know next to nothing so please bare with me. And to be clear I'm not complaining about the style of the class (yet lol) just letting you know why my questions are so elementary.
After entering the code above one of the questions is:
What is the meaning of having a “d”, “l” or “-“as the first character in the display from the above command?
As I understand it, the code is taking me to the bin directory (not sure what that is) and pwd is simply displaying the directory I'm currently in. ls -l is to list files and directories, I assume -l is to display the files and directories in "l" (whatever "l" is).
With that being said, I believe a "d" as the first character means that the file is a directory or sub-directory. Files starting with "l" seem to have text in the far right column colored blue while files starting with "-" have text in the far right column colored green. And some of the data in the far right column for the "l" files point farther right to green data.
The most important thing you should learn how to use is the "man" command (short for manual).
if you want to find out about a command and what it does, issue the following commands and learn what is presented. Navigation within the man pages is with up and down arrows on the keyboard:
This User Gave Thanks to [MA]Flying_Meat For This Post:
Example first column of ls -l
Permission bits can also be written as octal numbers.
So 755 is
owner read, write, execute
group read, execute
other read, execute
Last edited by jim mcnamara; 09-05-2014 at 05:46 PM..
This User Gave Thanks to jim mcnamara For This Post:
Location: Asia Pacific, Cyberspace, in the Dark Dystopia
Posts: 19,118
Thanks Given: 2,351
Thanked 3,359 Times in 1,878 Posts
When the "file" is actually a "directory" the "execute" permissions become "search directory" permissions, so Jim's table looks something like this, for directories:
Thank you all, every explanation was very helpful.For the permissions issue, I found an explanation online that I just couldn't make sense of but Jim did a fantastic job.
So to confirm: In the code above from Jim's explanation, the "d" in "drwxrwxr-x" means "Directory", and if that line were instead "lrwxrwxr-x" the "l" would mean "Symbolic Link", and if that line were instead "-rwxrwxr-x" the "-" would mean "Permission Denied"?
No. The first character indicates the file type:
Some systems have additional file types that would be indicated by other characters in the 1st column.
This User Gave Thanks to Don Cragun For This Post:
Hi people....
I have just started to learn unix.I want to know which version of Unix to install plus how to install it.I need to practise and make myself aware of how unix works.My thread is from an educational point of view.Also please feel free to give your suggestions as I am... (3 Replies)
I need to write a script to test a nsort c program. I have written 8 .txt files with different cases. Also 8 .txt files with expected outcome. The shell I have written always "test pass" for the first case but always "fail" for the rest... Here is a portion of my code (as I still don't know how to... (5 Replies)
hi guys,
i have a DEl xps laptop cor 2 duo 2.2
i have vista installed on it
i want to install a dual Boot UNIX on it..
can some one guide me ...cause i m tottaly new to UNIX
i want to install unix on that laptop along with Vista....
thx
any help would be deeply appreciated
(sorry if i... (5 Replies)