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
CURLOPT_UNIX_SOCKET_PATH(3)				     curl_easy_setopt options				       CURLOPT_UNIX_SOCKET_PATH(3)

NAME
CURLOPT_UNIX_SOCKET_PATH - set Unix domain socket SYNOPSIS
#include <curl/curl.h> CURLcode curl_easy_setopt(CURL *handle, CURLOPT_UNIX_SOCKET_PATH, char *path); DESCRIPTION
Enables the use of Unix domain sockets as connection endpoint and sets the path to path. If path is NULL, then Unix domain sockets are dis- abled. An empty string will result in an error at some point, it will not disable use of Unix domain sockets. When enabled, curl will connect to the Unix domain socket instead of establishing a TCP connection to a host. Since no TCP connection is created, curl does not need to resolve the DNS hostname in the URL. The maximum path length on Cygwin, Linux and Solaris is 107. On other platforms it might be even less. Proxy and TCP options such as CURLOPT_TCP_NODELAY(3) are not supported. Proxy options such as CURLOPT_PROXY(3) have no effect either as these are TCP-oriented, and asking a proxy server to connect to a certain Unix domain socket is not possible. The application does not have to keep the string around after setting this option. DEFAULT
Default is NULL, meaning that no Unix domain sockets are used. PROTOCOLS
All protocols except for file:// and FTP are supported in theory. HTTP, IMAP, POP3 and SMTP should in particular work (including their SSL/TLS variants). EXAMPLE
Given that you have an nginx server running, listening on /tmp/nginx.sock, you can request a HTTP resource with: curl_easy_setopt(curl_handle, CURLOPT_UNIX_SOCKET_PATH, "/tmp/nginx.sock"); curl_easy_setopt(curl_handle, CURLOPT_URL, "http://localhost/"); If you are on Linux and somehow have a need for paths larger than 107 bytes, you could use the proc filesystem to bypass the limitation: int dirfd = open(long_directory_path_to_socket, O_DIRECTORY | O_RDONLY); char path[108]; snprintf(path, sizeof(path), "/proc/self/fd/%d/nginx.sock", dirfd); curl_easy_setopt(curl_handle, CURLOPT_UNIX_SOCKET_PATH, path); /* Be sure to keep dirfd valid until you discard the handle */ AVAILABILITY
Since 7.40.0. RETURN VALUE
Returns CURLE_OK if the option is supported, and CURLE_UNKNOWN_OPTION if not. SEE ALSO
CURLOPT_OPENSOCKETFUNCTION(3), unix(7), libcurl 7.54.0 December 21, 2016 CURLOPT_UNIX_SOCKET_PATH(3)
All times are GMT -4. The time now is 08:50 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy