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

-2
votes
1answer
39 views

How to build custom FreeBSD os Image for Raspberry Pi using Ubuntu? [closed]

I want to build FreeBSD Image for Raspberry Pi Image using Ubuntu OS if it is not possible help me out of it
1
vote
1answer
67 views

Working with LFTP, find and -exec option throws error

What is wrong with the following lftp command? There files on server. I am trying to get their names without any path in it (like ./) Just file names. lftp -u user,password -e 'find -exec basename {} ...
0
votes
2answers
36 views

Create a binding to save with `shift S S` in vim

Recently someone recommended I save in vim using shift Z Z. This is working great for me! How can I create a shortcut so that shift S S maps to :w?
1
vote
1answer
16 views

How to plot column in unix in one line

I would like to plot a column of data output by a script in unix in just one line. For example, something like script | cut -f2 -d ',' | gnuplot ....
0
votes
1answer
31 views

basename command is outputting an 'enter' character along with the file name

I'am reading a text file line by line using while loop whose contents are directories and file names. I read the file names using basename command. I want to check if that file exists in a directory. ...
0
votes
2answers
40 views

Shell Script output indentation

I want to call a shell-script / application inside another script. Every line of the contained script should be indented by 2 spaces. Is this possible? The output should look something like this. I'...
0
votes
1answer
77 views

How to manage my firewall with new Centos's utilities?

I just installed a Centos7 distribution on my server. I came from Centos6, and I read that iptables utility has been replaced by firewalld and services utility by systemctl. So I try to get my ...
1
vote
1answer
35 views

Alternative to ls to group extensions before sorting

I'm looking for some way to modify/replace ls with a command that is capable of: Grouping directories first (as ls does) grouping files by user-defined extension groups (e.g., all image-type ...
1
vote
1answer
39 views

how to list all files from smallest to biggest

So I know how to list all files in the current directory from largest to smallest by typing ls -lhS. I just need this list read in the opposite direction by having the smallest file on top and the ...
-1
votes
1answer
33 views

Syntax Error The source line is 1

I have a server list in hostlist file and I am trying to execute below script: #!/bin/bash for server in `cat hostlist`; do ssh $server 'hostname ;id $(cat /etc/passwd | grep Luyang | awk -F '[:]' '{...
0
votes
1answer
61 views

How to display motd or banner when users ssh directly into screen session

I have several users that connect to the same service account but under different screen sessions. So they would use a command such as: ssh -t user@myserver screen -Dr specificSessionName I would ...
0
votes
2answers
756 views

Is it safe to delete these files?

I came across these files in my home directory: .bash_history .bash_sessions (directory) .lesshst and I cant help my OCD-ness and I want to remove them, is it safe?
0
votes
0answers
15 views

Is it possible to program unix-based OS (specifically iOS jailbroken) to function as usb keyboard?

I know this is possible with Android to make a device emulate a HID keyboard for plug and play usage via usb to a computer, since the functionality was introduced to linux, but can it be done with iOS ...
0
votes
0answers
16 views

KeePass destroys Hardlinks?

I'm using KeePassX on OS X. I have a folder ~/.keyfiles, to which I'm hardlinking all key- and password-related files for a daily encrypted backup. To also backup my KeePass-Database, I therefore ...
1
vote
2answers
227 views

Run a shell script in background in Unix at specific time daily

I have a shell script task.sh that is needed to be run in background in Unix at specific time daily. I know nohup is useful to run the script in background. But worrying about how to schedule this ...
0
votes
1answer
192 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
19 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
30 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
63 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
127 views

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

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 ...
1
vote
1answer
16 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 (sub)directory Folder2/ with all of its contents to /user/. How should I go about this using unix commands?
1
vote
2answers
58 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 ...
0
votes
0answers
90 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
16 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: $ ...
1
vote
1answer
135 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
vote
1answer
60 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
332 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
49 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. ...
0
votes
0answers
8 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
28 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 ...
1
vote
1answer
27 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
47 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
40 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
39 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
12 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
202 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
217 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 ...
1
vote
3answers
56 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
14 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
81 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
16 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% /...
0
votes
2answers
133 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
186 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> FILE=$...
0
votes
1answer
30 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
28 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
61 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 UTF-...
1
vote
0answers
104 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 ...
1
vote
1answer
247 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
29 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
105 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, manufacturer,...