Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x

Unix OS

32K

Solutions

18K

Contributors

Unix is a multitasking, multi-user computer operating system originally developed in 1969 at Bell Labs. Today, it is a modern OS with many commercial flavors and licensees, including FreeBSD, Hewlett-Packard’s UX, IBM AIX and Apple Mac OS-X. Apart from its command-line interface, most UNIX variations support the standardized X Window System for GUIs, with the exception of the Mac OS, which uses a proprietary system.

Share tech news, updates, or what's on your mind.

Sign up to Post

hi,

i need to search on say "xyz" on 123.gz file.

i need t see complete word xyz alone not like word containing "abxyzdef" not like word beginning with xyzdefff not even ending aaaaxyz

please advise

zgrep 'xyz' 123.gz not working
0
Technology Partners: We Want Your Opinion!
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

I am trying to clear some faults from the SC prompt. However, when i connect through the serial port, i get the -> prompt ( ILOM).   How can i get SC prompt so that i can check some system's controller faults?
0
There's a discussion internally within our corporate if it's a concern that an internal staff attempts to copy out
SAM & passwd  and then run a password cracking tool on it.

Q1:
Is this a valid concern?

Q2:
In DoD B2 (or is it C2), the file containing hashed passwd  'vanishes' : is the purpose to prevent someone from
copying out the hashes for cracking?  Or what's the purpose of doing this?

Q3:
What are the measures we can put in place to prevent internal staff from making cracking attempts on SAM
& a Unix file containing the hashed passwords?  Should stronger hash (what's the current best practice?)  or
encryption be used?
0
Mostly Solaris 11 with some 10 and even fewer 8 and 9.

At the moment, NIS is used.

Looking for a better way and to get rid of NIS.
0
I have version 5 currently...

My-MBP-2:~ newbieweb$ perl -v

This is perl 5, version 18, subversion 2 (v5.18.2) built for darwin-thread-multi-2level
(with 2 registered patches, see perl -V for more detail)

Copyright 1987-2013, Larry Wall

and I run El Capitan

I need to instal Perl 6 but be sure in no way that it impacts the current installation of Perl 5, which is used by my system.

Thanks.
0
PS /tmp> invoke-command -Computername tgcs010 {get-process} -credential administrator

PowerShell credential request
 Enter your credentials.
 Password for user administrator: ********

invoke-command : MI_RESULT_ACCESS_DENIED
 At line:1 char:1
•invoke-command -Computername tgcs010 {get-process} -credential admini ...


•CategoryInfo : InvalidOperation: (:) [Invoke-Command], PSInvalidOperationException
•FullyQualifiedErrorId : InvalidOperation,Microsoft.PowerShell.Commands.InvokeCommandCommand

PS /tmp>

MY Version running on CENT OS 7.4

PS /tmp> $PSVersionTable

Name Value


PSVersion 6.0.0-rc.2
 PSEdition Core
 GitCommitId v6.0.0-rc.2
 OS Linux 3.10.0-693.11.1.el7.x86_64 #1 SMP Mon D...
 Platform Unix
 PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
 PSRemotingProtocolVersion 2.3
 SerializationVersion 1.1.0.1
 WSManStackVersion 3.0

On my Windows 10 computer same command works

I domain joined the Cent OS server to my Windows Domain also.

What am I missing?

Thank you
0
**********yoitect.com/4gN6***************

Removed link
Mr Wolfe
EE Moderator
0
under Location Profiles i see

Site Location Profiles and Shared Location Profiles. what are difference between them? when to use which one?
0
Eventhough there are no big files there still /opt/ is showing 100% full it very confusing to me. Can anyone help me on this please


root@[opt] # lsof | grep -i deleted
root@[opt] #

Open in new window


root@[opt] # lvs
  LV          VG                  Attr       LSize   Pool Origin  Data%  Meta%  Move Log Cpy%Sync Convert
  isvol1      HKLVAUEDM08_applvg1 -wi-ao----  10.00g
  isvol2      HKLVAUEDM08_applvg1 -wi-ao----  10.00g
  isvol3      HKLVAUEDM08_applvg1 -wi-ao----  10.00g
  tsavol      HKLVAUEDM08_applvg1 -wi-ao----  10.00g
  wmstorage   HKLVAUEDM08_applvg1 -wi-ao----  10.00g
  homevol     rootvg              -wi-ao----   3.91g
  oprvol      rootvg              -wi-ao---- 320.00m
  optvol      rootvg              owi-aos---   3.91g
  optvolsnap  rootvg              swi-a-s---   3.94g      optvol  95.39
  rootvol     rootvg              owi-aos---   5.88g
  rootvolsnap rootvg              swi-a-s---   2.91g      rootvol 69.49
  scbmonlv    rootvg              -wi-ao----   1.00g
  semavol     rootvg              -wi-ao----   1.00g
  swapvol     rootvg              -wi-ao----   5.88g
  tmpvol      rootvg              -wi-ao----   3.91g
  usrctmvol   rootvg              -wi-ao----   2.94g
  usrgemsvvol rootvg              -wi-ao----   1.00g
  usropenvvol rootvg              -wi-ao----   1.97g
  varvol      rootvg              owi-aos---   3.91g
  varvolsnap  rootvg              swi-a-s---   3.94g      varvol  88.16

root@[opt] # df -PH | grep -i "/opt" | grep -i root

Open in new window

0
Dear Experts,
I have spent so much time trying X11 forwarding but still no success. Can you help me with it?

I have the sudo privilege and my system is Ubuntu 17.10. I try the instruction like
http://laptops.eng.uci.edu/software-installation/using-linux/how-to-configure-xming-putty
But not work. here is my error

hsu@hcavfb11:~$ xclock
Error: Can't open display:
hsu@hcavfb11:~$

Open in new window

0
Free Tool: Port Scanner
LVL 11
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

I have installed php 7.0.21-1 on an AIX 7100-3 system. The php executable is in /opt/freeware/bin. LIBPATH is set to
 /usr/lib:/opt/freeware/lib:.

When I try to run php I get the following error:

exec(): 0509-036 Cannot load program php because of the following errors:
rtld: 0712-001 Symbol xmlOutputBufferGetContent was referenced from module php(), but a runtime definition
      of the symbol was not found.
rtld: 0712-001 Symbol xmlOutputBufferGetSize was referenced from module php(), but a runtime definition
      of the symbol was not found.

I have not been able to resolve this error.

Does anyone have any suggestiions?
0
A number of local UNIX accounts on our HP UX v B.11.31 server are not permitted to connect via Telnet.

I have added the following into the users .profile file:-

# Check is SSH Session and end if not
if [[ -z "$SSH_CLIENT" ]]
then
	tput cup 22 1
	tput ed
	print "\033[33;7mThis use is only permitted to connect via SSH.\033[0m"
	sleep 5
	exit
fi

Open in new window


But upon logon get the error:-

{HOME:-.}/.profile[31]: SSH_CLIENT: parameter not set

Open in new window


Any help much appreciated.
0
Hello,

As you can see the resource dlm and clvd are running on mokkan6, in pcs status it shows stopped. Why is that?

[root@mokkan6 ~]# pcs status
Cluster name: mokkan_cluster
WARNING: no stonith devices and stonith-enabled is not false
Stack: corosync
Current DC: mokkan3b (version 1.1.16-12.el7_4.4-94ff4df) - partition with quorum
Last updated: Mon Nov 27 21:01:53 2017
Last change: Mon Nov 27 20:53:01 2017 by root via cibadmin on mokkan3b

4 nodes configured
8 resources configured

Online: [ mokkan3b mokkan4b mokkan5b mokkan6b ]

Full list of resources:

 Clone Set: dlm-clone [dlm]
     Stopped: [ mokkan3b mokkan4b mokkan5b mokkan6b ]
 Clone Set: clvmd-clone [clvmd]
     Stopped: [ mokkan3b mokkan4b mokkan5b mokkan6b ]

Daemon Status:
  corosync: active/enabled
  pacemaker: active/enabled
  pcsd: active/enabled
[root@mokkan6 ~]# ps  -ef   |  grep  -i  dlm
root      4433     1  0 20:56 ?        00:00:00 dlm_controld -s 0
root      4563     2  0 20:56 ?        00:00:00 [dlm_scand]
root      4564     2  0 20:56 ?        00:00:00 [dlm_recv]
root      4565     2  0 20:56 ?        00:00:00 [dlm_send]
root      4566     2  0 20:56 ?        00:00:00 [dlm_recoverd]
root      4997  3754  0 21:01 pts/2    00:00:00 grep --color=auto -i dlm
[root@mokkan6 ~]# ps  -ef   |  grep  -i  clvm
root      4562     1  0 20:56 ?        00:00:00 /usr/sbin/clvmd -T90 -d0
root      5001  3754  0 21:02 pts/2    00:00:00 grep --color=auto -i clvm
0
How to check the time stamp of mv command

i tried as below


bash-4.4$ mkdir new2                                                                                                                              
bash-4.4$ ls ltr                                                                                                                                  
ls: cannot access 'ltr': No such file or directory                                                                                                
bash-4.4$ ls -ltr                                                                                                                                  
total 8                                                                                                                                            
-rw-r--r-- 1 14392 14392    0 Nov 22 17:03 e.txt                                                                                                  
drwxr-xr-x 3 14392 14392 4096 Nov 22 18:23 new                                                                                                    
drwxr-xr-x 2 14392 14392 4096 Nov 22 18:25 new2                                                                                                    
bash-4.4$ mv -u /new/* new2                                                                                                                        
mv: cannot stat '/new/*': No such file or directory                                         …
0
hi,

I am trying as below
mv * to move multiple files but not working
http://www.thegeekstuff.com/2010/12/mv-command-examples/
$ cd chap1

$ ls -F
ex1.c    ex2.c    ex3.c    example/   exercise/  

$ mv * chap2/






bash-4.4$ ls -ltr                                                                                                                                  
total 12                                                                                                                                          
-rw-r--r-- 1 14392 14392  978 Nov 22 16:46 README.txt                                                                                              
-rw-r--r-- 1 14392 14392    7 Nov 22 16:47 456.txt                                                                                                
drwxr-xr-x 2 14392 14392 4096 Nov 22 16:49 dir3                                                                                                    
-rw-r--r-- 1 14392 14392    0 Nov 22 16:56 c.txt                                                                                                  
bash-4.4$ mv * new/                                                                                                                                
mv: target 'new/' is not a directory                                                                                                              
bash-4.4$ mkdir new                                                     …
0
bash-4.4$ mv -i dir2 dir3                                                                                                                          
bash-4.4$ ls -ltr                                                                                                                                  
total 12                                                                                                                                          
-rw-r--r-- 1 14392 14392  978 Nov 22 16:46 README.txt                                                                                              
-rw-r--r-- 1 14392 14392    7 Nov 22 16:47 456.txt                                                                                                
drwxr-xr-x 2 14392 14392 4096 Nov 22 16:49 dir3                                                                                                    


i tried as above but i did not get warning  like below

mv: overwrite `dir2'?


i tested with files also but no warning coming

bash-4.4$ touch a.txt                                                                                                                              
bash-4.4$ mv a.txt b.txt                                                                                                                          
bash-4.4$ ls -ltr                                                                                                                                  
total 12           …
0
how to search both zip  files and regular files same time

zgrep  "ram" *

grep  "ram" *

i like to combine above two

just use pipe?how to get result count as well on both files or on each file separately

how to create zip file here to test it?
https://www.tutorialspoint.com/unix_terminal_online.php
please advise
0
Hello,

We have netapp FAS storage and we would like to share the storage to some of the UNIX servers using NFS and windows machine using CFS.  is it possible to share the same FS to UNIX and Windows?
0
Hello,

We have netapp  FAS storage and we have created the network interface and NFS file systems are mounted using that network interface.  Can we create another network interface use the NFS ?

For an example  servers are using  192.168.10.105 to mount NFS file system and 192.168.10.105 is netapp interface.  IF I create another network interface and assign IP address  172.10.10.25 in netapp, then can I use either 192.168.10.105 or  172.10.10.25 in client?
0
What does it mean to be "Always On"?
LVL 5
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

We have a DEC 3000 server with SCSI hard disc and Unix 4 OS. Recently when the system was booted, I am getting an error : 84 Fail; T_ERR_SCSI-CHECK_BOOTBLOCK. Please help to resolve the issue
0
Few days back any mail related command ( mailx, mail ,mpack  ) stopped working from one sudo id .
in the logs i get error as dsn=5.6.0, stat=Data format error
but this happens with only one sudo ID-sudo1@my_hostname
another id -sudo2 works fine with any of the mail command

sudo su sudo1
mailx -s "Test mail" someone@example < /tmp/test.file
/home/sudo1/dead.letter... Saved message in /home/sudo1/dead.letter
where from=sudo1@my_hostname
message fails to sent


sudo su sudo2
mailx -s "Test mail" someone@example < /tmp/test.file
where from=sudo2@my_hostname
message successfully sent and received.

Not getting why with one prefix it is sent and other fails ... ?
0
hi,
i wrote simple perl script and trying to run geting below error from


https://www.tutorialspoint.com/unix_terminal_online.php

sh-4.4$ vi hi.pl                                                                                                                                                                            
sh-4.4$ pwd                                                                                                                                                                                  
/home/cg/root                                                                                                                                                                                
sh-4.4$ /home/cg/root/hi.pl                                                                                                                                                                  
sh: /home/cg/root/hi.pl: Permission denied                                                                                                                                                  

i just wrote in hi.pl as
print "hii";


in command prompt of windows it ran fine once i install activevperl
https://www.activestate.com/activeperl/downloads

C:\Users\ss\perl\code>perl hello.pl
hii

please advise
0
hi,
mputty session name how to rename says from server1 to server2

Please advise
0
Hi Experts,

We have been working on a script which scans through  xml files and pulls out information like database name, databaseServername etc from multiple xml files.

I am attaching sample xmls which are used by script to scan.

The script is as follows:
nohup timeout 15 cat context.xml
        sleep 10
        cat nohup.out|grep -i "driverClassName="|grep -i oracle >/dev/null 2>&1
 if [ $? -eq 0 ]
  then
        OUr=`cat nohup.out|grep url=|awk -F= '{print $2}'`
        DS=`echo $OUr|awk -F: '{print $4}'|sed s/@//g`
        DB=`echo $OUr|awk -F: '{print $NF}'|sed s/\".*//g`
        DB1=`echo $DB|sed s/\".*//g`

else
        DS=`cat nohup.out |grep url=|grep jdbc|head -1|awk -F/ '{print $3}'|awk -F";" '{print $1}'|awk -F":" '{print $1}'`
        DB=`cat nohup.out |grep url=|grep jdbc|head -1|awk -F";" '{print $2}'|awk -F= '{print $2}'|sed s/\".*//g`
        Ru=`cat nohup.out|grep "Environment name"|grep PegaRULES|awk '{print $3}'|awk -F= '{print $2}'|sed s/\"//g`
   if [ -z "$Ru" ]
    then
        Ru=`cat nohup.out|grep username=|awk -F= '{print $2}'|sed s/\"//g`
   fi
 fi

Open in new window


This works for 90 percent of cases which have only one Resource Name (example: context_works.xml and context_works2.xml)

But, in 10 percent of xmls when there are multiple resources (like context_doesnotwork.xml), it doesnt picks the right one, due to the oracle grep check, but I would like to be able to pick the resource which has the name=jdbc/PegaRULES.(It picks Oracle instead of picking the resource with name jdbc/PegaRULES). I would like to eliminate resources other than the ones with name=jdbc/PegaRULES before the grep for Oracle in the file.
Is there a way by which I can do that without losing much of the current logic?
context_works.xml
context_works2.xml
context_doesnotwork.xml
0
what is difference between control D and exit commands.

please advise
0

Unix OS

32K

Solutions

18K

Contributors

Unix is a multitasking, multi-user computer operating system originally developed in 1969 at Bell Labs. Today, it is a modern OS with many commercial flavors and licensees, including FreeBSD, Hewlett-Packard’s UX, IBM AIX and Apple Mac OS-X. Apart from its command-line interface, most UNIX variations support the standardized X Window System for GUIs, with the exception of the Mac OS, which uses a proprietary system.