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
2 views

apt-get install libphp-phpmailer not including class.phpmailer.php

I am installing PHPMailer on a Ubuntu 14.04 LTS server. I ran the command apt-get install libphp-phpmailer. It installed the files under usr/share/doc/libphp-phpmailer as expected. However, it is ...
0
votes
1answer
7 views

How can I enable arbitrary users to edit files in '/opt' sub-tree?

I am user 'somebody'. I have a typical "Web blob" website ecosystem ( essentially an FS sub-tree starting at Apache's typical "htdocs" directory ). Its files are owned by 'root', and grouped to ...
0
votes
2answers
17 views

print lines containing limited words in the second field

I have a symbol table of the form M07UP49A0870I422.wav <s> haraa keelaa <bn> </s> M07UP49A0870I423.wav <s> <horn> jau <babble> </s> ...
2
votes
2answers
25 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 ...
0
votes
1answer
35 views

Batch for execute Putty, log on Server and run commands with shell script or txt

I need help for this process. I have a batch file to run Putty and log with ssh an server and will execute commands from file "commands.txt". C:\Programme\PuTTy\putty.exe -ssh user@server -pw 123456 ...
0
votes
0answers
4 views

Move a directory and its contents up several levels

I have a directory with text files in /user/data/tutorial/texts/ and I'd like to move the directory Folder2/ with all of its contents to /user/. How should I go about this using unix commands?
-3
votes
0answers
19 views

What are the best (or well known) Linux or UNIX certifications? [on hold]

I've been reading online and a lot of people seem to think that certifications are useless in the software engineering field. However, I've been thinking of getting a certification in Linux or Unix ...
1
vote
2answers
24 views

Using wildcard in unix find command's path

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$ echo $Pswd|ssh ...
-1
votes
0answers
15 views

How to delete a directory in unix using Runtime.exec() / ProcessBuilder in Java?

I am unable to delete a directory in unix using the command "rm -r path". I also tried to at first delete all files inside the directory and then delete delete the directory itself but the commands ...
0
votes
0answers
22 views

How to save SSL certificate in terminal without openssl?

I've got the following scenario: A service runs on server-1, calling server-2 via SSL over proxy-1 Server-2 is external and out of our scope Server-2 can only be reached from server-1 over proxy ...
0
votes
0answers
14 views

Time command execution with real time updates

Generally I use time myCommand to know how long does it take to run myCommand. I was wondering if there's a command that also shows how long it has been running so far on real time. Something like: $ ...
0
votes
1answer
11 views

How pause list of process in htop?

I should like stop refreshing list of process. My problem is in often refresh list. How I can do it? I use a tool htop.
-1
votes
0answers
20 views

Unix/Linux email notification

echo "This is the body" | mail -s "Test POC Mail" $sender_mail echo "Mail is sent" when I run this script, it is giving the last statement in the console but am not receiving the email and I set the ...
1
vote
1answer
10 views

sTunnel failure to start

im a bit stuck and need help understanding what im being told as there is nothing in the log file, i get the following error when i try and run stunnel (servermode): sudo /etc/init.d/stunnel4 start ...
2
votes
1answer
63 views

Execute commands using sudo in remote server after logging into PuTTY through batch file

I need to login into remote server daily and perform same set of tasks. I am using Windows platform and the remote server is Unix. I use PuTTY to login to remote server. To reduce the manual work, I ...
0
votes
1answer
32 views

FTP: executable file changing to a text file during download

I have unix executable files along with a mac OS X app that I have transferred to my FTP server. When I download these files after uploading them, the unix executables download as TextEdit documents. ...
-2
votes
0answers
18 views

Unix script to merge two tables

I am having a hard time creating a code in Unix. File1 Column1 Column2 Column3 Column4 DFPN 53011 A1 TPI DFPN 11401 B3 DIO DFPN 51401 A7 INP ...
0
votes
0answers
5 views

Send binaries to old unix machine via serial socket

I have old SVr4 unix machine,connected via serialline running in virtualmachine. The serial is a socket called /tmp/att1 I can use minicom without problems But i cannot transfer with kermit. On remote ...
1
vote
1answer
15 views

How do I monitor changes made to environment variables ?

I have an environment variable whose value didn't match the one set by /etc/environment, even after reboot. I eventually found the auto-executed .sh script changing it, but that incident got me ...
0
votes
0answers
12 views

Default Profile

How can I set the default profile to be loaded on a bash login? My system was loading my user profile instead of the system one. I had it working properly and seemed to have accidentally broken it ...
0
votes
1answer
16 views

Remotely running malware detection on a *unix server

I've used Linux Malware Detect in the past and it's very efficient and useful, however to run the installation shell script access to the root directory is required. As a result, when I'm on many ...
0
votes
1answer
27 views

Destination host unreachable when using ping<hostname> but no issue with ping <ipaddress>

I have 6 VMs with CentOS called n1, n2, n3, n4, n5, lnx-app1 with the below IP addresses: n1.xyz.com = 10.10.100.101 n2.xyz.com = 10.10.100.102 n3.xyz.com = 10.10.100.103 n4.xyz.com = 10.10.100.104 ...
0
votes
1answer
34 views

Check if samba down from a Linux client

What is the most effective way to check Samba server availability from a Linux client?
0
votes
1answer
32 views

How to print the calendar in reverse order in UNIX?

I want to print the calendar in terminal using cal -y command , but in reverse order. What should I add to print the calendar from December to January?
0
votes
0answers
10 views

Deleting ftp folder in remote system using putty command automatically when system boots?

I need to delete a folder in a remote system using putty, I have rm command to remove particular folder, but this should run everytime when the system starts how to do it?
1
vote
3answers
95 views

How to Copy all the .c files starting with letter [h-o] to directory h-oFiles

I'm trying to accomplish this one command and this is what I tried: sudo cp /hw2/ladsrc/.c[a-g] /hw2/a-gFiles What am I doing wrong here?
1
vote
1answer
23 views

what is the difference between umask and chmod

I am completely confused between umask and chmod. Both are used to give permissions to the files. But where exactly is the difference and when to use them. I have read the online documentation but ...
0
votes
1answer
36 views

quickly find argument description in unix man page

How do I jump exactly to the definition of an option within a man page? Example: try to find what -L means when performing man curl. Naive approach: /-L requires 5 ns (nexts) before I get to the ...
0
votes
0answers
20 views

Can a Linux user have multiple primary user groups? [migrated]

How many primary groups can an individual Linux user have? If they can have more than one, how does one go about assigning multiple primary groups to a user?
0
votes
0answers
9 views

Fullscreen TMUX sessions selection

I've found TMUX's choose-tree command to be quite useful when navigating between sessions, but I dislike it only displaying inside of the current pane. I'd prefer it to overtake my entire screen. ...
0
votes
0answers
12 views

ignoring No data available (61) errors with rsync

Is there a way to supress a warning where the prigin changes during the rsync? $ rsync --archive server::somemodule/ /dest/dir rsync: read errors mapping "/somefile" (in somemodule): No data ...
0
votes
0answers
10 views

Increase size of /var /usr /etc

df -h Filesystem Size Used Avail Use % Mounted on /dev/root 20G 788M 18G 5% / devtmpfs 16G 4.0K 16G 1% /dev none 4.0K 0 4.0K 0% /sys/fs/cgroup none 3.2G 532K 3.2G 1% /run none 5.0M 0 5.0M 0% ...
-1
votes
0answers
15 views

What to do for error: base64: command not found?

(cat << ! From: $FROM To: $TO Subject: $SUBJECT Date: $(date +"%a, %b %e %Y %T %z") Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="$boundary" This email has attached the file ...
0
votes
2answers
30 views

Rename CSV header using command line tools

Given a CSV file, h1 h2 h3 a b c z x b how to rename the first header to One and the third header to Three using command line tools, namely One h2 Three a b c z x b
0
votes
1answer
34 views

How can I send email with attachment xls file using shell script as application/xls mimetype without making the received file becoming unreadable

#!/bin/bash ATTACH1=file.xls<br> SUBJECT="subj"<br> FROM=me@domain.com<br> TO=you@domain.com<br> CC=them@domain.com<br> MIME="Application/vnd.ms-excel" <br> ...
0
votes
1answer
22 views

Transform CSV column by a function using command line tools

Given a csv file such as h1 h2 a 0 b 1 c 0 how to rename 0 to YES and 1 to NO in the second column.
0
votes
2answers
26 views

LS but exclude suffixes

I have files foo.mp3 bar baz.mp3 bar baz 2.mp3 What command would output the following? foo bar\ baz bar\ baz\ 2 I know ls -1b handles the escapes, but how do I cut ...
0
votes
0answers
20 views

How to install new DB2 Express-C interface (CLI/CLP) language / NLPACK

I'm using IBM DB2 Express-C Docker image on (RHEL 7) https://hub.docker.com/r/ibmcom/db2express-c/ In my dockerfile I'm creating my locale and calling a shell script: ... localedef -i fi_FI -c -f ...
1
vote
0answers
24 views

Slow vagrant box, how to improve this?

We've built a vagrant box for our development box and we are facing some latency issues. Issues: Assetic:watch is being slow Overall application access in (app_dev.php) is slow Using "find" command ...
0
votes
1answer
41 views

How to record or log telnet session using the command line?

I need to record the output of a telnet session. I can't just pipe or output it because I need to authenticate first. How I can achieve this log?
0
votes
0answers
9 views

Modify “save history when conversations are closed” to not restore history

I want to save my messages on my Macbook, but I like to delete the history from my Messages app. I don't want my messages gone forever, but just cleared off the app. Is there a way to save the ...
1
vote
2answers
58 views

commands to gather system information under unix

I have ssh access to a unix-based computer. What are the best set of shell commands to help identify what kind of machine it is (e.g. CPU type, number of cores, cache sizes, memory size, ...
1
vote
3answers
42 views

how to specify A record of own domain in a zonefile

assuming that foobar.com is my domain, how do i specify the ip of "foobar.com" itself in my zonefile ? Below is my sample @ IN SOA myfoobar.com. hostmaster.myfoobar.com. ( 2001030201 ...
1
vote
1answer
25 views

Why does CTL-3/CTL-# equal CTL-[? (and others) in the case of ASCII control characters

I've been rediscovering ASCII control characters as I fiddled with some terminal emulation code, and wrote a small program that outputs the hex value of each key I press (tcsetattr() with ~ICANON). ...
3
votes
0answers
31 views

Which X Window system is installed on my server that would work with Xming

I would like to use Xming to connect a server and managed to get it to work. I am now trying to get it to connect to a different server but i am not sure which X Window system is installed. I tried it ...
1
vote
1answer
26 views

Execute program when screensaver starts

Is it possible, on Linux, to execute a program when the screensaver starts without using 3rd party tools? For example: I have a script that will run a who command and log the output to a file. I ...
0
votes
1answer
28 views

How to execute a shell script when system time is changed? [closed]

I want to be able to reliably run a script on system time change. I don't know much shell scripting, so was thinking of touching a file in a continuous loop and figuring out system time change using ...
0
votes
2answers
71 views

What is the difference between /bin and /usr/bin/?

I am using Mac OS X 10.11 (El Capitan) and wanted to know what the difference is between /bin and /usr/bin/? Apparently /usr/bin/ seems to have more binaries in it like grep etc.
0
votes
1answer
36 views

Force Unix line endings for a partition in Notepad++

I've a Linux partition mounted using Web Drive on a Windows PC. It uses the same Drive letter all the time. Whenever I create a empty new text file and then open it with Notepad++, it starts using ...
0
votes
2answers
39 views

ctrl+x/c/p (cut/copy/paste) subsitutes in Unix bash?

I can't find any documentation that shows the equivalents for ctrl+x, ctrl+c and ctrl+p (cut/copy/paste) in Unix (and some other equivalents but these are more than enough to start with).