Questions tagged [solaris]

Solaris is a Unix operating system originally developed by Sun Microsystems (currently owned by Oracle) as a rebranding of SunOS 4.1.x in 1991.

According to Wikipedia. Solaris was originally developed as a collaboration of Sun Microsystems with major UNIX variants to develop a common platform unifying BSD, System V, and Xenix that has become known as System V Release 4. The first release of Solaris was SunOS 4.1.x which was retroactively renamed Solaris 1. The variant we commonly know as Solaris is actually Solaris 2, which started as SunOS 5 and until version 7 was known as Solaris 2.x (since version 2.7 the prefix 2 has been dropped).

Solaris is a highly scalable Operating System well suited for symmetric multiprocessing systems, which currently includes native virtualization tools called zones.

A Solaris variant called OpenSolaris was released by Sun in 2005, which eventually gave birth to the OpenIndana Project

1185 questions
61
votes
5 answers

How can I get a full process list in solaris, without truncated lines?

Is there a way to generate a full process listing in solaris, without truncated lines? I've tried the ps command, with the following arguments: -f Generates a full listing. (See below for significance …
gabe.
  • 11,644
  • 11
  • 44
  • 58
44
votes
4 answers

Executing user defined function in a find -exec call

I'm on Solaris 10 and I have tested the following with ksh (88), bash (3.00) and zsh (4.2.1). The following code doesn't yield any result: function foo { echo "Hello World" } find somedir -exec foo \; The find does match several files (as…
rahmu
  • 19,673
  • 28
  • 87
  • 128
42
votes
4 answers

Solaris let me in with different password with the same 8 first characters

I don't know if this is normal, but the thing is, let's say I have a Solaris user called gloaiza and its password is password2getin I'm logging into the server with PuTTY, I just put 192.168.224.100 and it prompts a windows asking for an user, so I…
gloaiza
  • 595
  • 4
  • 6
42
votes
4 answers

Searching for a string on multiple zip files

I am working on SunOS 5.10. I have a folder that contains about 200 zip files. Each zip file contains only one text file in it. I would like to search for a specific string in all the text files in all the zip files. I tried this (which searches…
ziggy
  • 533
  • 1
  • 5
  • 8
35
votes
6 answers

How can I check what version of the VI editor I have?

How can I check what version of the vi editor I have? What's the best way to upgrade it or install vim on Solaris?
cwd
  • 44,479
  • 71
  • 146
  • 167
34
votes
6 answers

How to get file to a host when all you have is a serial console?

When all you have is a serial console (say via telnet through a terminal server), what methods can be used to transfer files in/out of a host? Cut/paste works for the small/printable stuff and I've played with a combination of uuencode/uudecode…
33
votes
6 answers

How to check whether firewall opened for a port but not listening on the port

We will be deploying a new application to a Server and the application will be listening on port 8443. We have asked Network team to open the firewall for the port 8443 on that server before deploying the application. There is no application…
yottabrain
  • 441
  • 1
  • 4
  • 4
31
votes
2 answers

Remove prefixes from filenames

I have a bunch of files as…
Pieter van Niekerk
  • 659
  • 3
  • 8
  • 12
30
votes
4 answers

Using grep -v on multiple arguments

Is there a simpler way to do this? grep -v foo file | grep -v bar There're probably very elegant ways to do it with egrep, but how to go with plain old grep? EDIT: grep -v 'foo\|bar' file seems to work only with GNU grep. I'm on Solaris. Any…
rahmu
  • 19,673
  • 28
  • 87
  • 128
25
votes
4 answers

How can I check which terminal definitions are available?

The bulk of the question is in title, but to elaborate a little: On most Linuxes I can find /usr/share/terminfo -type f. But on Solaris machine I have nearby - this directory doesn't even exist. I could iterate over a list of terminals, and do…
user14382
25
votes
11 answers

Tool in UNIX to subtract dates

Is there any tool in Solaris UNIX (so no GNU tool available) to subtract dates? I know that in Linux we have gawk that can subtract one date from another. But in Solaris the maximum we have is nawk (improved awk) which cannot perform date…
jyz
  • 657
  • 2
  • 10
  • 17
22
votes
8 answers

How to get the hostname along with the domain name?

In Unix (Solaris) is there any command that returns the hostname and domain name together? For instance: hostname -> servername domainname -> us.xyz.com I need : servername.us.xyz.com
Vikas
21
votes
6 answers

Recursive search doesn't work for grep on solaris

On our Solaris server I'm finding that grep -r doesn't work, which is the usual way that I use grep. It seems that egrep has the same behavior. Given that I have no control over the machine, is there a way to have grep perform a recursive search? Or…
Eric Wilson
  • 4,622
  • 9
  • 32
  • 43
17
votes
1 answer

Different ways to use /dev/tcp/host/port command and where to find manual pages on this

What are the different ways to use /dev/tcp/host/port command and where to find manual pages on this? < /dev/tcp/www.google.com/80 cat > /dev/tcp/www.google.com/80
Bharat
  • 794
  • 1
  • 6
  • 17
16
votes
3 answers

Wait command usage in Linux?

#!/bin/bash function back() { sleep $1 exit $2 } back $1 $2 & b=$! if `wait $!`;then echo success else echo failure fi bash-3.00# ./back 300 0 failure bash-3.00# ./back 300 1 failure I was expecting success as exit status when I…
munish
  • 7,825
  • 24
  • 71
  • 97
1
2 3
78 79