Sponsored Content
Full Discussion: Extreme Beginner
Special Forums UNIX Desktop Questions & Answers Extreme Beginner Post 302915973 by SomeDudeOnline on Friday 5th of September 2014 02:20:00 PM
Old 09-05-2014
Extreme Beginner

Hi everyone,

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.

Code:
cd /bin 
pwd
ls -l

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.

What does all of this tell me? I have no idea.

Can anyone help me out with this?
 

3 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Beginner Help

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)
Discussion started by: Farhan082
5 Replies

2. Shell Programming and Scripting

Beginner Help

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)
Discussion started by: thibodeau
5 Replies

3. UNIX for Dummies Questions & Answers

Beginner - What Should I Do First?

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)
Discussion started by: amit.kanade1983
3 Replies
du(1B)						     SunOS/BSD Compatibility Package Commands						    du(1B)

NAME
du - display the number of disk blocks used per directory or file SYNOPSIS
/usr/ucb/du [-adkLr] [-o | -s] [filename] DESCRIPTION
The du utility gives the number of kilobytes contained in all files and, recursively, directories within each specified directory or file filename. If filename is missing, `.' (the current directory) is used. A file that has multiple links to it is only counted once. OPTIONS
The following options are supported: -a Generates an entry for each file. -d Does not cross file system boundaries. For example, du -d / reports usage only on the root partition. -k Writes the files sizes in units of 1024 bytes, rather than the default 512-byte units. -L Processes symbolic links by using the file or directory that the symbolic link references, rather than the link itself. -o Does not add child directories' usage to a parent's total. Without this option, the usage listed for a particular directory is the space taken by the files in that directory, as well as the files in all directories beneath it. This option does nothing if the -s option is used. -r Generates messages about directories that cannot be read, files that cannot be opened, and so forth, rather than being silent (the default). -s Only displays the grand total for each of the specified filenames. Entries are generated only for each directory in the absence of options. EXAMPLES
Example 1 Showing usage of all subdirectories in a directory This example uses du in a directory. The pwd(1) command was used to identify the directory, then du was used to show the usage of all the subdirectories in that directory. The grand total for the directory is the last entry in the display: example% pwd /usr/ralph/misc example% du 5 ./jokes 33 ./squash 44 ./tech.papers/lpr.document 217 ./tech.papers/new.manager 401 ./tech.papers 144 ./memos 80 ./letters 388 ./window 93 ./messages 15 ./useful.news 1211 . ENVIRONMENT VARIABLES
If any of the LC_* variables, that is, LC_CTYPE, LC_MESSAGES, LC_TIME, LC_COLLATE, LC_NUMERIC, and LC_MONETARY (see environ(5)), are not set in the environment, the operational behavior of du for each corresponding locale category is determined by the value of the LANG envi- ronment variable. If LC_ALL is set, its contents are used to override both the LANG and the other LC_* variables. If none of the above variables is set in the environment, the "C" (U.S. style) locale determines how du behaves. LC_CTYPE Determines how du handles characters. When LC_CTYPE is set to a valid value, du can display and handle text and filenames containing valid characters for that locale. du can display and handle Extended Unix Code (EUC) characters where any indi- vidual character can be 1, 2, or 3 bytes wide. du can also handle EUC characters of 1, 2, or more column widths. In the "C" locale, only characters from ISO 8859-1 are valid. LC_MESSAGES Determines how diagnostic and informative messages are presented. This includes the language and style of the messages, and the correct form of affirmative and negative responses. In the "C" locale, the messages are presented in the default form found in the program itself (in most cases, U.S. English). ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWscpu | +-----------------------------+-----------------------------+ SEE ALSO
pwd(1), df(1M), du(1), quot(1M), attributes(5), environ(5) NOTES
Filename arguments that are not directory names are ignored, unless you use -a. If there are too many distinct linked files, du will count the excess files more than once. SunOS 5.11 5 Jun 2001 du(1B)
All times are GMT -4. The time now is 02:03 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy