Tagged Questions
1
vote
2answers
49 views
linux + match IP ADDRESS with 3 octets or with 4 octets
how to match IP address with 4 octets or with 3 octets in one command?
target - match xxx.xxx.xxx or xxx.xxx.xxx.xxx ( syntax should fit for Linux and Solaris )
how to merge the following commands ...
8
votes
0answers
190 views
how to get exit status from the command before the last [duplicate]
I have solaris machine ( solaris 10 )
please Look on the following simple commands (haconf -makerw | grep -iq "Cluster already writable")
# haconf -makerw
VCS WARNING V-16-1-10364 Cluster ...
1
vote
1answer
30 views
Nexenta (Solaris), strange user membership from LDAP
Anybody help me, why do run id command in the Nexenta OS (Solaris+Ubuntu), i get different result?
a_ay@nexenta:/etc$ id -G
513 512 1000 201 203 1010 1013 1019 1020 1036 1039 1040 1041 1045 1046 1047
...
0
votes
0answers
57 views
Setting Up Cross Compiler, Linux x86_64 to Solaris 10 SPARC
I have a student account for a Solaris 10 SPARC server at the university I go to, and I thought it would be interesting to set up a cross-compiling GCC on my home Linux x86_64 computer so that I could ...
2
votes
1answer
78 views
perl + combine exec command with perl one liner line
I have the following short perl script rename.pl. How can I translate this script to one liner perl syntax? And how to combine the perl one liner in find command?
rename.pl
#!/usr/bin/perl
$op = ...
2
votes
3answers
104 views
`solaris + xargs command for solaris
the command
find /tmp -name 'core*' -type f -print0 | xargs -0
works fine on Linux,
but xargs -0 option is not legal on Solaris
what is the equivalent option ( xargs? ) for Solaris 10
second ...
2
votes
2answers
178 views
What's the best way to backup files via network on Linux and Solaris machines?
I wonder what the best way to backup files VIA network
I have Solaris machines with Oracle 10i with VERITAS cluster, machines are connected to EMC storage
/data/oracle directory is mounted on the ...
0
votes
2answers
83 views
file command + how to view all results from file command
I use the file command in order to verify if file (PATH) is text/ascii file or encrypted file
Because file command have allot of results ( small example in example 1 )
I want to get the all ...
0
votes
4answers
248 views
targeted network speed over LAN
I have a Solaris 11 system which has several NFS exports which are accessed my other systems within my LAN. I use a Linux system as a client for testing.
I wrote a quick script to test read speed and ...
0
votes
1answer
88 views
linux/solaris + manipulation of Standard Output
I run the following line on linux/solaris machine ( all output will write in to /tmp/Log from application.bin )
./application.bin 1>>/tmp/Log
We can see the content of the /tmp/Log file
...
1
vote
1answer
126 views
Linux + Solaris how to verify the last execute process from list of process
I need advice:
How to verify which is the last scan_sys.sh process that run in my linux or solaris ?
my target is to kill all scan_sys.sh process , except the latest scan_sys.sh ( the last execute ...
1
vote
1answer
130 views
solaris + fit egrep for solaris
On Linux machines I use this syntax, in order to match all VALID ip's.
My question: what needs to change for egrep command in order to run the egrep on Solaris?
According to egrep manual page "-o" ...
0
votes
2answers
164 views
Is a shell script is a programming Language [closed]
This is the first question in UNIX:
I was started shell script from 2 days before.
But I have a conflict: is a shell script a special programming language for a specific shell??
2
votes
1answer
121 views
Issues while untaring tarball with acl
I am getting an error “Unknown file type 'A', extracted as normal file” while un-taring a set of files which has acl permissions set.
I had created the tar file in Solaris with tar -cpfv ...
3
votes
3answers
762 views
Is the Solaris libc based on the GNU libc?
On Solaris:
basename.c
#include <stdio.h>
#include <libgen.h>
int main(int argc, char* argv[])
{
int len = strlen(argv[0]);
char *bsname = basename(argv[0]);
printf("%s\n", ...
0
votes
0answers
101 views
Comparing the efficiency of Network Stack of two different Operating Systems
I want to compare the efficiency of Network Stacks of two different operating systems(Linux and Solaris) by measuring the amount of resources(context switches, systemcalls etc) that are consumed in ...
1
vote
4answers
326 views
FreeBSD is not Unix. But its Unix-Like Unix. Where is then the main Unix to read the source code?
I want to really understand System V, the main origin of Unix (not Unix-like nor modified Unix to Linux). The main origin which is very confusing and not really with care its written somewhere.
Is it ...
3
votes
1answer
425 views
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 ...
4
votes
3answers
943 views
How I can know the IP address of other users logged at the same remote machine?
I can see the names of other users on the remote machine with the who command... I'd also like know the IP address of those users...
I was trying with the commands /sbin/ifconfing and netstat but I ...
3
votes
1answer
187 views
Detecting multihomed machine
Is there a way to reliably detect whether or not a machine is multihomed? I'd like to be able to write a script that will return a true or false regarding that information. Thanks.
4
votes
2answers
173 views
How to list all running X applications?
I'd like to get a list of all of the apps (across all users) on my machine that are talking to the X server. What's the most reliable way to do that? Find the socket X runs on and lsof for connections ...
1
vote
3answers
549 views
How to shut down or reboot a machine? [on different OSes]
What parameters do the "shutdown" command [or other command?] NEED, TO BE SURE that the machine reboots or shuts down for SURE?
e.x.: version for Linux:
# cat /etc/SuSE-release
SUSE Linux ...
6
votes
4answers
312 views
Is knowing Linux required to learn Unix
Is it required to know Linux to learn other Unix. I don't know Linux but I am planning to learn Sun Solaris.