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.

Filter by
Sorted by
Tagged with
140 votes
24 answers
242k views

Why is my SSH login slow?

I'm seeing delays in SSH Logins. Specifically, there are 2 spots where I see a range from instantaneous to multi-second delays. Between issuing the ssh command and getting a login prompt and between ...
Peter Lyons's user avatar
  • 1,862
86 votes
6 answers
84k views

Opposite of tail: all lines except the last n lines

How can I discard the last n lines of a file with a unix command line filter? That would be sort of the opposite of tail: tail discards the first n lines but pipes the rest through, but I want the ...
Dr. Hans-Peter Störr's user avatar
11 votes
3 answers
22k views

what happens when you have 2 network interfaces to the same network in a Unix/Linux OS?

What will happen if you have 2 network interfaces to the same network where the default gateway/router is? e.g network interface e1000g0 - 192.168.1.50 network interface e1000g1 - 192.168.1.51 ...
Noob's user avatar
  • 1,595
9 votes
1 answer
1k views

How to let `man` utility to use `less` to display manual rather than `more`?

I've this Solaris 10 installation and it uses more to display manual content. Is there a way to make it using less to display manual? because more is really not convenient to use. Thank you.
Howard's user avatar
  • 2,286
8 votes
4 answers
60k views

How can I get numbers of CPU of Sun Solaris by command?

I can use 'prtdiag' to get number of CPU by prtdiag command. $ prtdiag System Configuration: Sun Microsystems sun4u Sun Fire 6800 System clock frequency: 150 MHz Memory size: 4096 Megabytes =======...
Daniel YC Lin's user avatar
8 votes
2 answers
36k views

Untar on Solaris

I'm using a Sun Sparc System, aka Solaris. I have a .tar.gz file, and I can't figure out how to untar it. The command I usually use doesn't work: tar -xzvf file.tar.gz Anybody know how to do this? ...
user avatar
8 votes
2 answers
10k views

What is a ZFS legacy mount point?

I am trying to understand the way ZFS works when I do for example, a snapshot. When I use zfs list on machine I get some mount points and some paths. For example I get something like that: rpool/ROOT/...
SoundFlektor's user avatar
8 votes
2 answers
17k views

Is there a ready-to-run Solaris virtual machine for VMWare?

I would like to test some scripting on a Solaris machine. Is there a VMWare virtual machine with Solaris that I can download and use directly?
Pim's user avatar
  • 183
7 votes
4 answers
1k views

How to build a NAS?

I have quite a bit of photos I'd like to organize and get away from sparse DVDs and move to a NAS solution. Ideally, this would let me have some level of redundancy and more easily find what I'm ...
user avatar
6 votes
2 answers
14k views

Replacing /bin/bash with /bin/false in /etc/passwd file

I am writing a program to disable users from a system, i want to replace /bin/bash to /bin/false. Example xxx:x:1:22:xx:/export/home/xx:**/bin/bash** replace to xxx:x:1:22:xx:/export/home/xx:**/...
user avatar
6 votes
3 answers
302 views

What are the strengths of OpenSolaris compared to Linux?

Please try to answer in these areas: For what kind of usage is OpenSolaris more suited than Linux? What are the useful OpenSolaris features that Linux lacks? Personal experiences are welcomed, but ...
netvope's user avatar
  • 5,325
5 votes
4 answers
12k views

Path of a command

Could someone please let me know how to get to know the executable path of a command/utility in solaris?? like executable path of ls is /usr/bin
Akanksha's user avatar
5 votes
2 answers
7k views

Oracle Solaris 11 Express: is it 32-bit or 64-bit?

The download for Oracle Solaris 11 Express says the image is for x86. I can't find anything specific on the Oracle documentation site that states if this is 32-bit or 64-bit. Any pointers?
Anthony Kong's user avatar
  • 5,018
5 votes
3 answers
3k views

perl - translate sed to perl

The following command work fine on Solaris ( delete line only if last character is ":" ) sed -e '/:$/d' < foo > foo.new how to do the same in perl ? ( the reason for that because I not want ...
yael's user avatar
  • 91
5 votes
2 answers
3k views

How can I use sed to alter the results of find and pass the results to cp?

In solaris, I'd like to copy all files found by the find command to a slightly different path. The following script basically executes cp for each file found by find. For example: cp ./content/...
Michael Prescott's user avatar
5 votes
1 answer
4k views

Solaris11 back to console boot

I installed Solaris 11 X86. I installed solaris-desktop. Then Solaris boots to GUI mode. How can I make the Solaris boots to console mode? (And then optionally starts X by hand?)
Jin Kwon's user avatar
  • 336
5 votes
2 answers
3k views

Emulating SPARC hardware

I need a software who emulate SPARC system (Hardware) in a Windows 7 host computer. I need to install a Solaris SPARC 10 for developing purpose and I don't have a SPARC machine. Can you give me some ...
Possa's user avatar
  • 153
5 votes
3 answers
24k views

Putty: login, execute command/change environment variable, and do NOT close the session

I would like to configure my PuTTY session in such a way that I could login to a remote host, and (a) start bash (b) change the PS1 variable (prompt content) (c) continue work in the session as normal....
Simon Righley's user avatar
5 votes
2 answers
5k views

Find and Move Files up One Level

I'm trying to search for files with a certain extension and then move all of them up one level in the folder hierarchy. Basically I have something like /path/to/application/files/and/stuff/a1/...
ideal2545's user avatar
5 votes
2 answers
2k views

Compiling and installing programs as non-root in home-dir?

I'm trying to compile programs under Solaris in my Home directory. Ive had experience with simple installs which work with just $> CD src $> ./configure --prefix=/home/peter $> make ...
PeterLustig's user avatar
4 votes
2 answers
5k views

How can I hide username@node in linux shell?

I want to hide username@solaris in a Unix shell. I would like something like this: $ ls -l Instead I have this: user@solaris:~$ ls -l
tulkas85's user avatar
  • 141
4 votes
1 answer
8k views

PS Command in Solaris

PS Command output is truncated in Solaris. I tried the below command after g Googling out. It doesn't work. Not sure what needs to be done /usr/ucb/ps awwx
user38993's user avatar
  • 183
4 votes
2 answers
5k views

How to foreground a job from another session

As root, is there a way to foreground (fg) a job within a root session that is in the foreground of another root session? If the job in the other session has to be put in the background (using bg) ...
Bren Goforth Adelante's user avatar
4 votes
1 answer
756 views

Can I virtualize Windows and linux using virtualbox on solaris with zfs zvols?

I am considering building a system to virtualise Windows Server 2016 and CentOS 6 using virtualbox on Solaris (for home use), in order to take advantage of zfs' reliability. I was planning on getting ...
Monty Wild's user avatar
4 votes
1 answer
7k views

Removing files on ZFS does not free disc-space

I'm trying to free space on a ZFS by removing files. They are large (>1GB) so it should show in the numbers. Unfortunately, after unlinking the files, df does not show any increase in available ...
Alfe's user avatar
  • 283
4 votes
2 answers
2k views

Public key authentication on SunSSH fails

I'm using OpenIndiana 151a on x86 and I want to connect to other remote servers using ssh with public key authentication, but it fails. The remote server's sshd (OpenSSH) is enabled with ssh-2 ...
xor's user avatar
  • 151
4 votes
1 answer
572 views

Preventing Sendmail Brute Force Attack on Solaris 10

I want to dynamically block specific connections that use the same IP address based on a rate or connection limit. Is this possible using Solaris/IPF or some sendmail extension? I want to limit ...
Andrew Case's user avatar
3 votes
2 answers
8k views

Why is Solaris big endian

... when Unix is little endian? From Wikipedia, Solaris is based on Unix in some sense: In 1987, AT&T and Sun announced that they were collaborating on a project to merge the most popular Unix ...
Lazer's user avatar
  • 17.7k
3 votes
4 answers
8k views

du vs df output

Why are there differences between the outputs of the df and du commands? Why they are not accurate in output? # df -h Filesystem Size Used Avail Use% Mounted on /dev/sda3 1012M 394M 567M 42% / /dev/...
user avatar
3 votes
5 answers
7k views

grep -r not working on Solaris

How can I do recursive grep on Solaris? When I tried, I received this error: -r: invalid option.
Vikash Jindal's user avatar
3 votes
1 answer
576 views

When piped with ls, grep in solaris is not working

I am using the below command in solaris ls -l | grep '*PROC*' But it is not working. I have many files that contain "PROC" in their name like "XREF_PROC.complete" but when I use the above command ...
sandywho's user avatar
3 votes
1 answer
2k views

Is Solaris 11 Express a replacement for OpenSolaris?

I was searching for OpenSolaris but landed in Oracle's website of Solaris 11 Express. Is OpenSolaris replaced by Solaris 11 Express?
RPK's user avatar
  • 2,733
3 votes
5 answers
8k views

tar - exclude does not work

I've supposed to archive a directory with tar and exclude some files. I have a directory $HOME/java which includes some .java and .class files. What I want to do is exclude all .class files using the -...
user27076's user avatar
  • 234
3 votes
5 answers
10k views

milliseconds from solaris command line

This gnu date command lets me get milliseconds this way: date +%M:%S.%N; but this command doesn't work on solaris... any ideas?
andersonbd1's user avatar
3 votes
2 answers
13k views

Solaris 32bit / 64bit confusion

I have a Solaris on a AMD- uname -a gives OS Solaris 10 x86_64 (SunOS goldtpus34 5.10 Generic_144489-11 I wanted to find whether it has a 32bit or 64 bit kernel so I did /usr/bin/isainfo -k it ...
goldenmean's user avatar
  • 2,497
3 votes
2 answers
9k views

How to create a new Firefox profile in Linux or Solaris?

I know how to create a new Firefox profile in Windows.  I want to create a new Firefox profile in Linux / Solaris.  How do I do that?
user avatar
3 votes
3 answers
4k views

"No version for 'optional' dependency..." when updating Solaris 11.3

I'm having trouble updating Solaris 11.3. The problems below show up on both a DL360 G5 hardware (dual Xeons), and a VM guest (Core i7). The Solaris installations use Sun's image, and I did not ...
jww's user avatar
  • 12.1k
3 votes
1 answer
1k views

How to detect free memory slots in Solaris 9 using software?

I would like to know if there is any command which would tell me if there are any free memory slots in the server. The servers I would be looking would be Solaris 9 OS/Sparc.
John Prince's user avatar
3 votes
2 answers
2k views

How do I interpret “total 18” in the output of the "ls -l" command in Solaris10?

auyantepui# ls -l total 18 drwxr-xr-x 2 root sys 512 May 23 13:11 READMEs/ drwxr-xr-x 2 root sys 1024 May 23 13:11 bin/ drwxr-xr-x 2 root sys 512 May 23 13:09 docs/ drwxr-xr-x 2 ...
user avatar
3 votes
2 answers
7k views

Equivalent of "du --max-depth=0 -h" (or something similar) in Solaris

The du command in my solaris environment has very terse help, no man page, and doesn't support the --max-depth option seen in the linux world. I want to know how much space a given directory occupies....
Brian Vandenberg's user avatar
3 votes
3 answers
3k views

Solaris T5120 How to reset firmware root password

I have this Solaris T5120 box bought used no HDD so there is no OS yet I was able to connect using Serial Console using HyperTerminal Default User/Password didn't work root changeme sunservice ...
SeanClt's user avatar
  • 2,227
3 votes
2 answers
3k views

Unix find not working with a wildcard in the path when ssh'ing

This command with a * in the find path works fine on the local server Svr1$ find /path/*/foo/ -name "*20160208" When I try this remotely from another server it doesn't work Svr2$ ssh Svr1 find '/...
LLJ's user avatar
  • 35
3 votes
2 answers
1k views

Solaris x86 install on Lenovo nothing happening

All, I am in the process of creating a DEV box for hosting my projects and I am wanting to install Solaris 11.1 onto a Lenovo Desktop PC . PC Details: Lenovo M92p Thinkcentre 3227 Intel Core i5 3rd ...
tomaytotomato's user avatar
3 votes
2 answers
14k views

Making a bootable USB for Solaris

Is it possible to create a bootable USB of Oracle Solaris 11? I don't want to install Solaris on an Oracle VM Virtual Box.
Usman YousafZai's user avatar
3 votes
1 answer
84 views

can I tell how much space I would be saving if I switched to ZFS?

I've currently got a spare computer, and I'm thinking of trying out openindiana on it to play around a little with the snapshotting and deduplication features of ZFS, with the view of setting it up ...
Journeyman Geek's user avatar
  • 129k
3 votes
2 answers
7k views

How to add a nameserver to Solaris 11?

I'm having a name resolution problem in Solaris 11. According to the online Solaris guide, Chapter 12 Setting Up DNS Clients: Client Set Up Setting up DNS on a client machine involves two ...
jww's user avatar
  • 12.1k
3 votes
2 answers
235 views

fit grep syntax from linux to solaris

The following command grep -w '^[^#]* machine_VIP' /etc/hosts | head -1 | awk '{print $1}' works fine on linux (its capture the machine_VIP alias and return the IP address from /etc/hosts and ignore ...
maihabunash's user avatar
3 votes
3 answers
8k views

Choice of an OS for a home ZFS NAS

I am preparing a home NAS with an old Athlon 64 X2 3800+, 4 GB ECC RAM, Asus M2V MX motherboard, and a single 3 TB WDC Green (another one as mirror may be installed in the future). It's the cheapest ...
FarO's user avatar
  • 1,924
3 votes
2 answers
944 views

How do I safely merge two directories using commands on Solaris (and OSX)?

Directory A and B have many subdirectories with nearly identical content. Directory B may have newer files and some subdirectories that directory A does not have. When files in Directory B are newer,...
Michael Prescott's user avatar
3 votes
1 answer
1k views

Jenkins pipeline calls git.exe on non-windows node

I have a master set up on Windows machine. I have a few nodes on Jenkins, one of which has 2 labels: "system project". This node is actually a plain Solaris 11.3 machine. Other nodes are plain ...
a_girl's user avatar
  • 286

1
2 3 4 5
7