Unix is a multitasking, multi-user computer operating system originally developed in 1969 by a group of AT&T employees at Bell Labs.

learn more… | top users | synonyms

0
votes
1answer
28 views

Changing /etc/passwd in SSH User

I've got an Amazon EC2 instance running. It's an Ubuntu 14.04. I connect using Putty SSH. I use the key/certificates I got when I created the instance to authenticate my connection. This is all done ...
-1
votes
1answer
46 views

Removing 1 line of code from all php files

I can see same code under all php files. Starting from <?php $rfghoh = '*f%)sfxpmpusut)tpqssu6 And end $rfghoh=$yuoopi-1; ?> I am just looking for script using which only first line of ...
0
votes
0answers
9 views

How to rename bulk files in Unix Shell Script [closed]

can someone please help me how to bulk rename below file? Original: TEST_XXXXX_41574983_41574992_03312016.221034.DAT Expected: ...
-3
votes
0answers
17 views

what is unix command that we can use to search any type of pattern having any type of quotes and special characters

i have a pattern like pattern = '"name": "jhon" ; 'age': "36years''. I want to search it in a file called employees.txt can I use the grep command grep "$pattern" employees.txt or is there any ...
0
votes
2answers
34 views

SERVERFAIL error while doing nslookup on server itself. FreeBSD

I am using FreeBSD to setup a DNS server. I have install BIND and setup everything in resolv.conf and named.conf file. This is the ip address of my DNS server 192.168.10.100. in resolv.conf I added ...
1
vote
2answers
88 views

Create a file only if the directory exists?

I am trying to write the module where it creates the file if directory exists or else it shouldn't do anything. class puppetmodule{ exec { 'chk_dir_exists': command => 'test -d /usr/dir1', ...
1
vote
0answers
42 views

Kernel fails to assign memory in any Linux Distro

I have a motherboard: X11SBA-LN4F/F. After install CentOS, i have error in log: May 2 21:47:48 ll-226 kernel: pci 0000:04:04.0: BAR 14: failed to assign [mem size 0x00200000] May 2 21:47:48 ll-226 ...
0
votes
0answers
5 views

Setting samba along with quota

We are trying to project quota for folder share managed by samba. We are using following permission for folder we want to share, User:nobody Group:perProjectGroup Mode drwxrwsr-x Please note ...
0
votes
0answers
6 views

sed use to replace string 2 lines after matching pattern in AIX 6.1 [migrated]

I try to replace a character, 2 lines after matching pattern. For this, I'm using this code: sed '/some_pattern/{N;N;s/word1/word2/}' /etc/filesystems > /etc/filesystems.tmp && mv -f ...
1
vote
0answers
36 views

How can I decide which unix or unix-like OS will give me the most open files permissible? [closed]

I am looking to deploy a service that is capable of serving more than 65535 simultaneous connections on one host. 65535 seems to be the practical limit of most common linux distributions. Are there ...
-1
votes
1answer
24 views

BSD Connection 'Drops'

I've been setting up a BSD server and every thing went fine. It still works fine except on my own IP address I cannot connect to my webserver at all and with SSH I can login but then as soon as I type ...
0
votes
0answers
28 views

Wine + PsExec fail with Path not found

I'm trying to use PsExec with Unix distro. I use Wine with the command: wine PsExec.exe \\192.168.70.151 -u admin -p Pa55w@rd= dir Tried too: wine PsExec.exe \\\\\\\\192.168.70.151 -u admin -p ...
0
votes
0answers
13 views

Apache James: eval: /opt/james/bin/./wrapper-linux-x86-32: not found

I'm setting up a James server for the first time. I'm using 3.0-beta4. After I copied the binaries to /opt, I tried running it: neonorb@neonorb /opt/james/bin % ./james start Starting Apache James ...
0
votes
0answers
16 views

FreeNAS ACLs - ID mismatch, no AD

I am currently experiencing a strange behavior with my FreeNAS Setup, I assume it has been since my initial config. Even though I have a Windows 2008 Server, I do not use it for authentication with my ...
-1
votes
1answer
55 views

SSD Server with trim enabled

I have a Windows Server (but I think this problem may apply to any UNIX server too) running using SSD. I have Kingston UV300 SSD and they allow TRIM. I also checked and my Windows is running with TRIM ...
1
vote
1answer
95 views

Centos 6; phpMyAdmin 'Cannot log in to the MySQL server' after moving mysql.sock

I recently moved my mysql datadir from /var/lib/mysql to a new directory /home/mysql mounted on a new hard drive. For neatness sake I thought it'd be nice to place the tmpdir and socket on this new ...
0
votes
0answers
59 views

Ssh into a remote machine and execute a script using “expect”

I have a script named serverbounce.sh on server A. However, my Hudson home is on a server B. I want to execute my script serverbounce.sh on server A itself.For this performed the following: a. Created ...
0
votes
2answers
139 views

how to put files in ram

I have a server with 30 Gb ram and i have a script that put a (.ts) file (10mb) in /var/www/html/tv and script replace (.ts) file every 2 mintues. so my question is: can i mount this folder ...
0
votes
1answer
57 views

Installing a software in multiple linux machines using shell scripting in one machine

I will login to one Linux instance using ssh - putty and my goal is to install a software (for ex: I need to download oracle and install it) on 5 Linux machines with one shell script when I run that ...
-3
votes
1answer
19 views

A reminder/memo file at login in Unix Solaris

I want that a user gets a specific message on the screen when login in, which file should I update ? Thanks
1
vote
1answer
53 views

Unix move folders with pattern

How can I move subfolders with a pattern to the new location? Example list of sources: /data/aaa/_old/ /data/bbb/_old/ The destinations should be: /archive/aaa/_old/ /archive/bbb/_old/ Is ...
1
vote
1answer
50 views

ssh and git pull from remote server

I'm trying to ssh from server 1 to server 2 and do a git pull from server 1 to server 2. So on server 1, I run the following command: ssh root@server2 'cd /root/.example; git pull origin master' ...
2
votes
1answer
151 views

Why is this process refusing to quit?

I have a cron job that runs a shell script that executes a php script. It runs every day, sends some email, and writes to stdout (which is redirected to a log file in the shell script). It looks as ...
-2
votes
1answer
56 views

How can we get IO utilization for Process by Process ID using /proc directory? [closed]

I need to IO utilization for Process by Process ID without using any tool like iostat,iotop etc. Can any please help me to get IO utilization using info files using /proc/PID? Thanks in ADV.
0
votes
0answers
33 views

Preserving destination's permissions using Cygwin's rsync

I am using Cygwin with rsync to sync files from my windows 7 computer, to a CIFS share on a Freenas Server. The command I am using is: D:\Utility\Cygwin\bin\rsync.exe -rt --delete --verbose ...
2
votes
2answers
387 views

Non standard ssh port: should I edit /etc/services?

On a *nix system, when configuring ssh to listen on non standard port, should I also edit /etc/services to reflect that. I would think it should be done, so tools that use it (such as ufw) will ...
0
votes
0answers
35 views

Delete files older than x days permissions

I have a folder that I have to run the following script find folder/ -ctime +7 -exec rm {} \; To delete files in the folder older then x days. But I can't let the root user do that, there will be a ...
0
votes
0answers
17 views

What is [idle] under command means?

Using ps aux | less I got the next results: USER PID %CPU %MEM VSZ RSS TT STAT STARTED TIME COMMAND root 11 1541.1 0.0 0 384 - RL 8Jan16 1446474:56.82 ...
0
votes
0answers
25 views

Cannot restore RAID 5 configuration

We have recently come across a problem and we would like your input on what is the best way to solve this. We have a QNAP TVS-871 and it was configured as a RAID 5 Storage Device. Today the system ...
1
vote
1answer
72 views

Why does “cat /proc/net/dev” show only 0 for non-root users?

Recently, I've noticed that my script to monitor the network showed me nothing at all when it was run with a non root user. My script is simply looking at /proc/net/dev which has the following ...
2
votes
1answer
27 views

mv: when is the resulting file available?

Suppose one process does this: mv a large file to a destination directory And another process is watching for that file in the destination directory because it wants to read its contents as soon as ...
0
votes
1answer
30 views

How can I know why my dedicated server froze or crashed ? (Unix-like)

Recently, my dedicated server froze for around 50 minutes on Sunday. It did not respond to ping or any command. In the end, it was hard rebooted by the hosting company and everything works fine since ...
1
vote
1answer
31 views

Understanding top and tuning

I have allowed Postgres 30GB of RAM on our server. When running intensive tasks, I think it is swapping. As I understand it: VIRT - virtual memory (ie: swapped to disk) RES - complete memory usage ...
0
votes
2answers
106 views

Unable to clear up tmp

I had a bunch of files in /tmp that I cleared up by doing $ rm -rf ./tmp/*. However, I'm still unable to 'clear' that information, even after a reset. Here is what I have now: $ cd Av-bash: cannot ...
-3
votes
1answer
26 views

How to cut a string after a number of characters in unix? [closed]

How to delete all characters in one line after point with with sed? I have a file with multiple lines like this: 123456789 3483 98765432 56345 985745634 3469 67495735 87654 Now I want to delete ...
1
vote
0answers
93 views

Monit “check program” and restart based on exit code

When I use check process, monit will start the program I define under start program then monit will restart it if it stops. But when I use check program monit will not automatically start it. If the ...
0
votes
2answers
89 views

Unix / Linux command to see finished or killed processes

Is there a way to see processed that finished running or were killed a given amount of time ago? For instance, ps -ef will show all running processes, but if a process finishes, it is no longer ...
0
votes
0answers
11 views

Data was truncated on an input, output or update operation

Question: What can cause that in rare times (in a few %), 0 Byte sized files are created over FTP with the following errormessage: Data was truncated on an input, output or update operation ...
0
votes
0answers
12 views

consistent uid in multiple Distributed File System nodes

I am using GlusterFS to build a Distributed File System, which later I use to store the instances files for my OpenStack cloud. Each node need to have r/w access to the files on Gluster. The user by ...
3
votes
1answer
170 views

Passing Apache variable into SetHandler directive

I'm trying to have dynamically determined Unix socket used for different separated PHP "apps" (different sockets lead to different PHP-FPM pools) on my Apache (2.4.18) server (using mod_proxy_fcgi): ...
0
votes
1answer
53 views

How to get the time and date at which a user account is locked/unlocked in unix?

I need to get the exact time and date at which a user account was locked or unlocked in Linux. passwd -S command can give the status of an account i.e., if its locked or unlocked.
0
votes
1answer
78 views

Simpliest unix non-blocking “broadcast” socket

I have non-regularly running program which outputs string, I need to send this output to some kind of socket which can be distributed out of docker container and which can be listened by multiple ...
0
votes
0answers
58 views

Bash - Deployment script for files to a webserver

I am using an old machine as a webserver to host a static, code-generated site (the site serves HTML documentation, JS, PDFs and images). The old machine, along with development PC are on a home ...
1
vote
1answer
161 views

Wrong hardware time on linux

I don't have the correct hardware time on my debian server: root@server[09:48]:date Tue Dec 22 09:48:52 EST 2015 root@server[09:48]:date -u Tue Dec 22 14:48:54 UTC 2015 root@server[09:48]:cat ...
0
votes
0answers
108 views

HDP installation using ambari failing on CentOS 6.7

I am getting following error while installing HDP using ambari. Couldn't make out where the error lies,as error itself is not very clear. ========================== Creating target directory... ...
1
vote
0answers
13 views

HP-Unix: C-shell:Disk space checking

I have 10 devices that using hp-ux and i want to check the disk space in each devices. my requirement is if the space more than 90%, the info of device ans space will be save to a log. this is list of ...
0
votes
1answer
28 views

Checksum error while installing ambari

While installing ambari server,getting following error. yum install ambari-server -y Loaded plugins: fastestmirror, security Loading mirror speeds from cached hostfile Updates-ambari-1.7.0 | 2.9 ...
0
votes
0answers
26 views

Super confused about possible NAT kerfuffle

I have a PFSense running on a ZBox at the moment - there are 4 Interfaces: LAN 1(192.168.2.0/24) WAN 1(192.168.2.0/24) (I know, same address, but this IF only connects to a modem, everything ...
-2
votes
1answer
29 views

UNIX Shell Script IP Lookup

UNIX/LINUX: I'm not there yet with writing shell scripts. Trying to write a short shell script that asks user to input IP address and performs host lookup of IP address and returns a name if ...
-1
votes
2answers
50 views

LINUX/UNIX basic command questions

I'm trying to write a single command line that uses netstat and grep to count all connections in a state of “ESTABLISHED” and outputs a single number representing how many connections are currently ...