We help IT Professionals succeed at work.

Unix OS

33K

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.

winscp how to grep or search on a word say "xyz" in all the folders and sub folders
Please advise
0
Anyone knows how to import txt zone file from BIND DNS into Windows DNS?
0
Prevent color change when vim is invoked.

My computer is running Windows 10 Pro 64-bit.  I connect to remote Linux Machine using telnet utility.

My shell is bash.  My terminal emulator screen has black background and white foreground.  I invoke vim <filename>.  I exit vim and return to
my terminal.  Now the terminal has changed colors.  man vim doesn't have color option that will tell me how to disable color when vim is inovked.
0
We need to upgrade the memory of one of our Unix Servers - Sun Sparc Enterprise T5120 from 8gig to 16gig.  Should we order a 16gig memory and replace the current 8gig?  
Is there any command to get the memory model  in the server?  Please advise.
0
I have version IBM WebShere MQ 6.0.2.3 , do I need to upgrade the system from AIX 6.1.9 to the AIX 7.1.4 now  the current version of QM is compatible?
0
winscp how to name the link i save to favorite

say i have link
/home/xyz/bea/logs

i want to save above link with name as production_logs_folder

I have other link as below

/home/xyz/crm/logs

i want to save above link with name as crm_logs_folder

how do i name like above so that it is easy to locate and navigate later
\please advise
0
A single-line shell command like this:
find [path] [filename pattern] -exec gzip {} \;

sometimes succeeds, and sometimes returns:
find: '[path][file_name]' No such file or directory.

How is that possible?  If the file really doesn't exist, I expect "find" to quietly do nothing.  But if it really does exists (as it does) how can bash return: "No such file or directory" and then print the exact path and file name that it claims it can't find?

We run this shell command nightly as a "host" job in OEM (Oracle Enterprise Manager) job queue on our Oracle database servers, because our management requires us to use this job scheduler, not cron or some other job scheduler.  This job always succeeds on two of the three servers we run it on, but it fails some nights, not always, on the third server.  These three servers are unrelated to each other, and have nothing in common other than they all run independent Oracle databases.

We have: Oracle Linux Server release 7.4
kernel: 4.1.12-112.14.15.el7uek.x86_64
0
I have had to disable SELinux to get an application installed ,I was wondering if anyone has ever used 'AUDIT2ALLOW' to re-tag the objects in SELINUX and re-enable SELINUX  

I have never ever worked with SELINUX before and could use any advice you can give
0
log file how to copy whole content

zgrep -C20 '1234' 1234.log.gz

above gave lot of results in unix screen

how to copy whole page and paste into a text file on my C drive of the windows laptop through which i am connecting to unix box using putty?


also

i see all results like

0123456
9123488

etc

which i do not want

i want complete word search of 1234 only
how to achieve it
please advise
0
How to create a md (memory disk) file in freeBSD,

basically I want to keep / ( root ) in memory and hence I want to use memory disk ( md ). Also I want to ensure that it's like that boot over boot
0
what is curl and ping in unix.

lets say i have service called
www.xyz/webservice_operation

now if do
curl  www.xyz/webservice_operation
get the exact_name of service from above result
then use that exact name to ping
ping exact_name
then we can get ip of the service where it is running?

please advise
0
When do we need to add lun information in sd.conf ? how to identify wether HBA card is oracle branded or emulex ? What driver should be loaded into solaris 8 kernel for Emulex card ?

Recently, it took about 3-4 hours to perform re-configuration reboot post edition to sd.conf ...... how can we avoid this late booting cause , sd.conf was edited with 255 lines like :

Below contents are only indicative ***

name= x target=0 lun=0
.
.
xxxxxxx target=0 lun=255

How do i know which target the luns are coming on to  ? so i can mention them coorectly
0
Dear All,

I have VIO VMware open stack environment integrated with NSX , we have uploaded the suse 12 sp 2 package to the VIO portal and  the ip is not getting assigned on the instance for all other Linux images it is automatically getting assigned what could be the reason are there any specific packages or changes to be done to the image.
0
i have install postfix on ubuntu 16.04 for send-only mail.
when i send mail nothing happend nor error and  don't send mail.
service status on postfix  is
fatal: bad numerical configuration: mailbox_size_limit = 20M
fatal: bad numerical configuration: mailbox_size_limit = 20M
warning: process /usr/lib/postfix/sbin/local pid 12388 exit status 1
warning: /usr/lib/postfix/sbin/local: bad command startup -- throttling

what is wrong here what should linit be?
0
Hi,

I have to upgrade an AIX 6.1.9 to an AIX 7.2, I have installed a PowerHA 6.1, this version is compatible with the 7.2?
0
Hello,
I need help in understanding, how lu can work on Solaris-10 on this server. I can detach mirror metadevices of LVM, but zpool looks confusing, which mirror I should break.
server-app01 # : |format
Searching for disks...done


AVAILABLE DISK SELECTIONS:
       0. c0t0d0 <SUN300G cyl 46873 alt 2 hd 20 sec 625>
          /pci@0/pci@0/pci@2/scsi@0/sd@0,0
       1. c0t1d0 <SUN300G cyl 46873 alt 2 hd 20 sec 625>
          /pci@0/pci@0/pci@2/scsi@0/sd@1,0
       2. c0t2d0 <SEAGATE-ST930003SSUN300G-0868-279.40GB>
          /pci@0/pci@0/pci@2/scsi@0/sd@2,0
       3. c0t3d0 <SEAGATE-ST930003SSUN300G-0868-279.40GB>
          /pci@0/pci@0/pci@2/scsi@0/sd@3,0
Specify disk (enter its number):

server-app01 # zpool status -v
  pool: z
 state: ONLINE
 scrub: none requested
config:

        NAME          STATE     READ WRITE CKSUM
        z             ONLINE       0     0     0
          mirror      ONLINE       0     0     0
            c0t0d0s7  ONLINE       0     0     0
            c0t1d0s7  ONLINE       0     0     0
          mirror      ONLINE       0     0     0
            c0t2d0    ONLINE       0     0     0
            c0t3d0    ONLINE       0     0     0

errors: No known data errors
server-app01 # metastat -p
d5 -m d8 d9 1
d8 1 1 c0t0d0s5
d9 1 1 c0t1d0s5
d1 -m d4 d6 1
d4 1 1 c0t0d0s1
d6 1 1 c0t1d0s1
d0 -m d2 d3 1
d2 1 1 c0t0d0s0
d3 1 1 c0t1d0s0

server-app01 # zfs list
NAME                           USED  AVAIL  REFER  MOUNTPOINT
z                              

Open in new window

0
Does not clear command clears whole screen.

what i noticed is it still kept lot of stuff at the top like previous files, commands i gave etc.

Please advise how to clear everything on clear and do fresh
grep xyz *
afterwards to see only above grep results?
0
grep -C20 123x789 *
what is difference between above and below command
 grep 123x789 *

what -C20 means here. prints 20 additional bottom lies wherever it find 123x789?

please advise

if i have to print both bottom and top 30 lines what command i have to give?
0
Hello,

I have this error occurred when installing Python2.7 on AIX 6 OS :

 error: command '/opt/freeware/lib/python2.7/config/ld_so_aix' failed with exit status 8

Can I install separately ld_so_aix ? How ? Where can I get the library ?

Thanks for your reply
0
I have an AIX 6.1.9 version, I need to update IBM WebShere MQ.

Now I have version 6.0.2.3, which version can I get as an update?

Operationally what operations do I have to do to upgrade?
0
I have an AIX 6.1.9 version that is end of support, how can I update the security patches periodically?
0
$ zgrep --version
grep through gzip files
usage: zgrep [grep_options] pattern [files]


when i typed above command i do not see any version number? please advise
0
Log file cleanup issue in a Unix bash shell environment.  My development environment consist of about 60-80 J2EE developers at any given time.  Most developer are unit testing and integration their code through the day.  Each developer's execution of their application generates multiple log files.  I need to absolutely insure that prior to each developer's execution run all of their previous set of log files are deleted/removed.  One thing in common the log files for a specific developer all will have the same userid embedded in a set of logs.  I need an bash example of deleting all the common logs before the developer is allowed to invoke their next test run of the application.
0
need help with a Unix script.

1) Need to split a file that by fixed text and use part of the data to name the file.

Source file A

$$$$|DEF|ADDD
HDR|12345678|444|rhrhrh|hghghghg
LINE|33333|444444|ghththg
LINE|THHE|rrr|5555
LINE|TEHEHE|5555|urjurjr
HDR|234567890|444|rhrhrh|hghghghg
LINE|33333|444444|ghththg
LINE|THHE|rrr|5555
LINE|TEHEHE|5555|urjurjr

2) $$$$ starts new file
3) 2nd field in HDR is part of file name

Here is output

File B  name TESTTfile_12345678_20180130.txt

HDR|12345678|444|rhrhrh|hghghghg
LINE|33333|444444|ghththg
LINE|THHE|rrr|5555
LINE|TEHEHE|5555|urjurjr

File C  name TESTTfile_234567890_20180130.txt

HDR|234567890|444|rhrhrh|hghghghg
LINE|33333|444444|ghththg
LINE|THHE|rrr|5555
LINE|TEHEHE|5555|urjurjr

then original file saved to /archive

thanks!
0
I would like to have a list of all backup / archive of a node with its size.
I have a 30-day retention, I should have a list with the last 30 backup / archive done and their size
0

Unix OS

33K

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.