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

-1
votes
0answers
17 views

I want to run script file which will move files from current directory to the shared drive in network folder.

I want to run a script file in my server which will search for .log extension file and move it to the shared drive in network. Can you please help me on this , as i am totally new to it. However i ...
-1
votes
0answers
28 views

How to automate the process of shooting commands on UNIX system which is not connected directly? [duplicate]

Let me tell you what my requirement is. I am having my Windows system from where I am connecting the Jump Server (Unix based platform) through Putty. Once I am logged into this Jump Server, I'll ...
1
vote
1answer
52 views

How to type commands in PuTTY by creating batch file?

I have created a .bat file which automatically takes the SSH server (Jump Server) access. Now, I have couple of commands which I would like to hit in that window. For an ex. (To take root access) ...
-1
votes
0answers
14 views

Using vlc to batch generate snapshots say every 2-3 minutes or os?

Is there a way to batch generate snapshots every 2-3 minutes or so in Debian. I have a video of approximately 15 minutes and while I could use hotekey 's' to manually generate snapshots . Using vlc 2....
2
votes
2answers
101 views

How to sort java's .property file containg <key> = <value> by <value> column?

How can I sort this property file from java project by its value column? The value contains tabs or spaces before or after the value. Here is how this file looks like, key1 = value1 key2 = ...
0
votes
4answers
48 views

How many cores does my Mac have?

I am confused, because when I see my mac about window, I see That I have 1 Processor and 4 cores. But when I run htop, I see 8 cores What am I missing?
-3
votes
0answers
24 views

File size becomes 0 after download

I downloaded a file xyz.tar.gz, it shows that download went properly wget http://abc/def/ec-validation-assembly-9.2-assembly.tar.gz --2016-07-13 11:40:14-- http://abc/def/ec-validation-assembly-...
0
votes
2answers
24 views

Passwordless authentication not working

I am trying to setup a passwordless authentication between my webserver & a reporting server using the below steps. It works fine in my dev environment , however in the customer environment it ...
0
votes
0answers
29 views

Executing unix shell scripts on a remote server using local windows command Prompt

Does anyone know, without using any third party tools, how to invoke or call a Unix shell script from window command prompt or a batch file. Any links or pointers will be really helpful. Using Batch ...
0
votes
2answers
40 views

How to collect specific information in a file

I have the need for different hardware information. such as serial numbers, capabilities, among many others, and for that, I found the hwinfo, but it gets information far beyond what I need. For ...
0
votes
1answer
16 views

Lsof command in repeat mode no interval

How can you set the timing of lsof to sub 1 second? On lsof -r (repeat mode), is the minimum value 1 second? Is there a way to have a continuous monitoring with lsof without having intervals between 2 ...
0
votes
0answers
12 views

Record all child processes spawned by a program/script

I want to record all child process Ids spawned by a long running program. Is there a way we can do that? Lets say we are running a script which does build+test and runs for an hour spawning many ...
0
votes
1answer
21 views

Unix: Why it suggested to create users for some applications?

Is it some kind of encapsulation when by some tutorials I am suggested creating separate unix user. E.g. in tomcat installation instructions it said: 1 - Create a Low Privilege User Running ...
0
votes
2answers
42 views

How to convert date from number format to String format?

My input is [10/04/16 01:02:03 BST].How can I convert to Apr 10 16 01:02:03? And I dont want to replace / to-.
0
votes
2answers
14 views

To filter out its input in lowercase character

Given an input file,I need to filter out its input in lowercase character. I tried using: cat filename | tr -s "[a-z][A-Z][0-9][:space:]" "[a-z]"
-1
votes
0answers
13 views

mutt command is not working with huge file size, Can anyone suggest for the same

I am using 'mutt' to send the small number of records(fetched from database and converted into CSV) through email, while if the record grows till 400k from database mutt is not able to send that huge ...
1
vote
1answer
23 views

Camel-casing a 'dashed' string

I'm fairly inexperienced with *nix scripting, and I have a need to take a string with lowercase words separated by dashes and convert that to a new string with the dashes removed, and the first letter ...
0
votes
3answers
98 views

Why are Windows line breaks larger than Unix line breaks? [duplicate]

So I created two files, each with 127,955 lines and 24 random characters per line. As far as text the two files were completely identical. However one file had Unix line breaks and the other had ...
1
vote
1answer
49 views

On HPUX, how do I list the full path to the executable for all running processes?

What I need: A list of all currently running executables with their full path. Something like this: 1234 /full/path/to/executable 4567 /full/path/to/executable2 Using UNIX95= ps -exo pid,comm I ...
0
votes
1answer
22 views

Regarding files resulted in equating file properties in “ls” command

I have a folder in which there are thousands of images. Of those thousand images, I want to bring together all those images whose “Last created” and “Last modified” properties are exactly same. ( In ...
2
votes
1answer
93 views

Please explain how to use sort command in unix

I am new to UNIX. Please explain sort command. I have doubts related to sort field separator. E.g.: sort -k2, 2 filename, Please clarify. Please provide small example.
0
votes
1answer
28 views

Linux Utility to Suspend Laptop until AC power connected?

I run a home server on a Laptop, and recently I ran into an issue where we had a storm and the power went out. The laptop I use as a home server does not have a "Wake on AC Power" function built into ...
0
votes
0answers
27 views

Does dd read every possible byte from the SD card?

I have this damaged 16 GB MicroSD card which is hardly readable by a card reader (one of my two readers recognized it) and it shows up in the system as a drive with a single raw partition with 200-ish ...
1
vote
1answer
18 views

Select a specific part of the output and use it to rename files

I'm currently sorting files I recovered from a broken filesystem. They now all have filenames that go something like this: f123123123.xls If I run: file "f123123123.xls" it gives me a lot of ...
0
votes
0answers
52 views

Format external drive in single user mode mac os x

I am looking for suggestion to format external volume in Single User Mode. diskutil eraseDisk didn't work in such environment, so is there any possibility to format usb memory stick from Single User ...
0
votes
0answers
16 views

Split and encrypt a folder before uploading online for backup

I'd like to try out BackBlaze B2 to back up 400 GB of files. However, I'd like to zip and encrypt before uploading. Requirements split a folder to multiple folders (folders contain videos and ...
0
votes
1answer
14 views

Unix, Shell Scripting

I am extracting data from an Oracle database and writing it into a flat file. I need the line delimiter to be FFLF. I am able to add the FF character but I am unable to remove the CR character. How ...
2
votes
1answer
82 views

Debian : -bash: ls: command not found

I have a vm to play with linux and wanted to try rbash. I followed a tutorial to make it work. Then I wanted to remove the stuff i've done, and delete a symlink from /bin/ls to /etc/skel/. But instead ...
0
votes
0answers
8 views

zentyal ldap groups/unix group

I can't understand what's going on with zentyal when you have a group and users (definied in zentyal and stored in it's own LDAP). You can grant to these groups and users access to Samba folder, but ...
0
votes
1answer
37 views

How my Samba shared folder is protected without any valid user defined

I'm having a hard time trying to understand how Samba is able to put restriction on a folder having no "valid user" property set here is my smb.conf [test-share] comment = test shared folder. ...
-1
votes
1answer
34 views

How can I write this sed script?

Reads input number "n" and writes 0 1 ... n to the output by "n" times, separate by spaces. For example: n=3 1 2 3 1 2 3 1 2 3 Thank you very much!
-1
votes
2answers
64 views

Sed insert, copy and change, append a line of matching string

Tool: sed Requirement: I want sed to find a line with matching string . Copy the line and comment one line . Modify the other line . Insert a string above the two lines. Example: File ...
0
votes
0answers
27 views

Putty login issue

There are 2 issues - 1) when I don't set auto-login username and the radio button is set on Prompt under Connection --> Data, then also putty is by default taking system username for login Then once ...
0
votes
0answers
7 views

Cannot change terminal title in zsh

I'm trying to update my iTerm2 terminal title using the command echo -ne "\e]1;this is the title\a" The title changes to this is the title but then refreshes back to ~ (zsh). Help is appreciated
0
votes
1answer
27 views

Access Linux VM from Windows via SSH

I am running out of ideas on what exactly I need to do to get into the unix vm hosted in Azure. How to access Linux VM from Windows 7 using Putty or similar SSH client. Information I have been ...
1
vote
0answers
51 views

Dropped packets in all Linux and Unix

I have a problem. I have motherboard by Supermicro – X11SBA-LN4F. There are 4 ethernet ports. In first port i have internet. In second port i have my local network. When, i write "ifconfig" or "...
1
vote
1answer
22 views

Unix storing files in a variable one at the time

how to store multiple files in a variable 1 at the time. for f in *.biz do file="$(ls *.biz)" echo " $file" done but here is the output minimum.biz maximum.biz milan.biz ritz.biz <----------...
0
votes
0answers
10 views

SLURM: how to run a large job that takes longer than the fair usage policy

I'm not sure if this is the correct stackexchange, so please feel free to point me elsewhere. I am looking for some advice on SLURM. The HPC cluster I use has a fair usage policy of 48 hours per job, ...
2
votes
2answers
32 views

How can I assign (x,y) coordenates to some values?

So I basically have to assign (x,y) coordenates to some ids that will be coming from a file. Let's say the file items.txt have the following content: if-eth0-in if-eth0-out ping-status cpu-load ...
0
votes
0answers
5 views

Processes duplication and Denial of Service

Suppose a person X connects to a Unix OS with ssh as a regular user; X writes a small program P which executes itself 2 times without waiting and exits; then X executes it. Clearly, after some time, ...
1
vote
3answers
26 views

Grep by all filenames in a directory

I want to get the process status for all services running in a given directory. Right now I can check one by one ps -ef | grep ServiceName. But is there a way to ls the directory and ps every service? ...
1
vote
1answer
69 views

How to resolve Seagate USB 3.0 hard drive not being properly recognized by FreeBSD 10.3?

FreeBSD version: 10.3 Seagate drive model: SRD00F1 USB 3.0 Adapter: Insignia USB 3.0 PCIe Host Card (NS-PCCUP53) When I reboot with the drive already attached, it is not seen. But, when I attach the ...
0
votes
0answers
20 views

Converting unix cli command to windows

I am using gethttpsforfree.com to get my cert. I am stuck on step 3. They want me to run a command but it's a unix command and I am on windows. The command is PRIV_KEY=./account.key; echo -n "...
1
vote
1answer
26 views

Diskstation (Networkshare) - Deleted File but Space still in Use

So I've been trying to clear up some space on my backup drive. The Volume is 17TB in Size but it's in use by 96%. Now, I deleted a 2.5TB File but the usage isn't going down. I've went ahead and ...
0
votes
0answers
72 views

How can I make git bash `which` command work with windows?

If I type which node in git bash in Windows, then I get node's path, but when I type which open, it says it's not found. The open program is in PATH, but not marked as executable since chmod +x doesn'...
3
votes
1answer
58 views

How to check if make uninstall will work

FYI I'm on Mac OS X El Capitan. I compile things using CMake and make on my machine on a day to day basis, but without so far having understood CMake or make in any respectable depth at all (I have ...
0
votes
1answer
37 views

Modify value on XML file on Unix

i need to do something with Xml file on Unix. In particular in 1 path i have different xml files. I need to cut the first 10 digits for value tradeId tag and then paste it to issue tags <issuer ...
1
vote
1answer
38 views

WinSCP from Unix to Windows - Conserving timestamp, ownership and permissions

I'm migrating a number of folders from a Unix box to a Windows server, and I want to maintain the folder structure, permissions, ownership (user and group), and ideally timestamps of the original ...
0
votes
1answer
30 views

Pattern search the user input in a file in Unix using awk

I am trying to write awk script to search for a pattern that is given input by user, in a file. My code look like this: awk 'BEGIN{printf "Enter : ";getline input<"/dev/tty"} /'"$input"'/ {print}' &...
-1
votes
2answers
35 views

gzip unix command with tar command

I want to zip more than one file using gzip, but when I unzip it I should get multiple files. I tried tar with zip but tar created extra folders that I don't want. The files I want to zip are cp1....