Questions tagged [unix]

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

715 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
0 votes
1 answer
129 views

Exclude mlocate.db from the Locate searches

Can the search be excluded in /var/lib/mlocate/mlocate.db? I just want you to look at the one I generated locally. With -d or modifying LOCATE_PATH, only the one created in local is added, but ...
Luis M's user avatar
  • 1
0 votes
1 answer
718 views

Getting command history of all opened terminals in one place

I had been working with multiple terminal opened . For some reason my PC rebooted and after when I executed the 'history' command , I could only see the list of commands related to a particular ...
rishi's user avatar
  • 1
0 votes
1 answer
44 views

SSH between N number of servers

I have n number of servers like c0001.test.cloud.com, c0002.test.cloud.com, c0003.test.cloud.com and I want to do the ssh between these servers like: from Server: c0001 do the ssh to c0002 and then ...
Niket Sharma's user avatar
0 votes
1 answer
330 views

Unable to locate package shred. Meaning, apt-get can't find it and neither can I using Google

I have come to depend on this unix utility to wipe SSD drives dependably and quickly in preparation for re-imaging. I am curious as to why it is gone. But the purpose of this question is to either: ...
Scripting Pink's user avatar
0 votes
0 answers
200 views

How to detect a USB drive in Lynx OS?

In Linux, when I insert a USB stick, the USB shows up in /dev, usually as /dev/sdb or something similar. Right now I am trying to backup a computer running Lynx OS, when I insert a USB stick, nothing ...
Jamie Clinton's user avatar
0 votes
0 answers
2k views

Operation timed out when attempting ssh host computer

Cant ssh into host apple computer & cant ping I can screen share host via ARD I can ssh other computers from my remote computer I can copy files to host via ARD ssh computer's from host host ...
localplutonium's user avatar
0 votes
1 answer
72 views

using logical AND within IF statement to search for file ext(tilde ~)

Please find the below script : #!/bin/bash for index in `ls -1 /appdata/frozen_files` do for bucket in `find /appdata/frozen_files/$index -name "*.gpg~" | cut -d/ -f4-5` do for files in `ls /...
Gerald Johnson's user avatar
0 votes
0 answers
33 views

How do I log the execution of programs within a directory regardless of shell?

I'm curious when exactly a particular directory is being used and when it is loaded into memory. Is there a way to place a low level hook in the linux file system that says when a file with execution ...
John Drinane's user avatar
0 votes
1 answer
41 views

ending txt contents in csv file by placing values in column format

I would like to get help on sending below txt contents in csv file by placing values in column format DEV-C axpp4-pkrisbtm 04-25-2018-01.15 04-25-2018-01.20 UAT AXKIN-PBBCT4 04-25-2018-22.02 04-25-...
khuharshree's user avatar
0 votes
1 answer
554 views

Extract tar.gz files into a directory with different basename based on their match in the text file

I have hundred of folders, some with with tar.gz files and some with bam files. I just wanted to extract tar.gz files into a different directory. Folders with tar.gz files looks like mentioned below: ...
beginner's user avatar
  • 223
0 votes
1 answer
1k views

grep -Ef saying 'invalid character range'. Again

This is a followup to this question. The differences are listed below. Here's an excerpt of what's inside foo.txt (it's gigantic): ^.{64} /Volumes/Documents - Part 1/July 2009/Mum & Dad/Winter ...
leetbacoon's user avatar
0 votes
1 answer
383 views

Delete backup files - keep only one per day

I have this script to delete old backup files older than 15 days "find $path -type f -mmin +".(60 * 24 * $expire_days)." -name '*.tar.*' -delete" After that I want to keep only 1 backup file per day ...
clarkk's user avatar
  • 439
0 votes
1 answer
2k views

Application / interface specific routing

I have a routing configuration whose intention is to route all traffic through a tunnel (utun3) into an openvpn client which then connects to the openvpn server (64.120.44.114) via my physical ...
lhunath's user avatar
  • 4,567
0 votes
1 answer
3k views

/usr/lib64/python2.7/site-packages/rpm/_rpm.so: undefined symbol: rpmpkgVerifySigs

My first time here to ask question. Hope my question could help more friends after solved. Base: System Version: CentOS 7.2 64 bit Problem: Wrongly remove python that comes with the system. And ...
Tyler  Lin's user avatar
0 votes
1 answer
2k views

vim colorscheme not working, from file or colorscheme command

I'm trying to use a color scheme for vim, but I can't get it to load. I've placed ~/.vim/colors/palenight.vim with the following: let s:overrides = get(g:, "palenight_color_overrides", {}) let s:...
ctote's user avatar
  • 379
0 votes
0 answers
27 views

Hard drive speed normal on some sessions while slow on other sessions

I'm currently running Slackware 13 on my Dell D600 and until recently, everything was functioning normally. What I've been noticing more lately is when I turn my computer on after its been off for at ...
Mike -- No longer here's user avatar
0 votes
1 answer
13k views

Displays the list of groups for a login using command-line in iMac

How to display the list of groups for which login, contained in the environment variable FT_USER, is a member (separated by commas without spaces) using Unix command line in iMac. Example: ...
Mveliso's user avatar
0 votes
1 answer
453 views

How to Find UNIX Files in a Windows Environment

Is there a way to find UNIX files in a Windows environment? I'm looking in a specific HUGE folder with dozens of sub-folders for all UNIX files in a Windows environment. I've done a few cursory ...
user2993425's user avatar
0 votes
0 answers
86 views

Reliably tail/stream a log file to another machine (Keyword: Reliably). Strangely impossible?

I have a growing logfile on a unix box. I just want something that collects that data on another box within a few seconds of it being written. Sounds simple. But I need it to not introduce screw ups ...
declanw's user avatar
0 votes
1 answer
315 views

Editing tab-delimited .txt files from Excel in vim

When I save a simple spreadsheet in Excel 15.41 (on Mac) as tab-delimited .txt and open it using vim <filename>, I see characters for carriage returns as ^M, but everything is on one line. There ...
Jeff Groh's user avatar
0 votes
0 answers
343 views

Linux - How to toggle sloppy mouse window using terminal / hotkeys

So I can change window focus mode using the GUI but I would like to be able to switch between sloppy and click on toggle and want to create a script for that that is trigger by keyboard. However, ...
mjs's user avatar
  • 121
0 votes
1 answer
68 views

How can a desktop mail client be configured to read local mail?

This seems like something that should be doable, but I'm having no luck figuring it out and Google isn't helping much either. Is there a way to use claws-mail (or another client) to view local mail (...
Kefka's user avatar
  • 1,436
0 votes
1 answer
212 views

Block su without the '-'

I want to block everyone running su without the login option. They can run su - <user>, su -l <user>, su --login <user>. But su <user> will be blocked. How to achieve this?
RatDon's user avatar
  • 127
0 votes
0 answers
31 views

Unix - Automated MD5SUM Verification / Security reccommendations

This is my first post on here so go easy on me! I am currently looking into ways of securing a number of E-Commerce websites which serve a large amount of tragic each day. So far we have ...
Lewis Browne's user avatar
0 votes
1 answer
142 views

ps -ef output gives complete text

$ ps -ef | grep -i 6919 epiphany 6919 6900 0 06:08:50 ? 2:40 /opt_local/crm/pacman/bea/jdk/bin/java -client -XX:MaxPermSize=512m -Xms2048m - I need the complete text of this ps -ef. ...
sumit prakash's user avatar
0 votes
1 answer
241 views

Setting up EBS/EFS disk storage for disaster recovery

I am thinking about how to best setup a couple of environments on AWS. I would like to setup two servers: Application server (running web application and REST services) Tools server (running several ...
ziggy's user avatar
  • 343
0 votes
0 answers
182 views

Increase column width for iotop

Currently I'm using the iotop command to get snapshots of what my system is doing like so: sudo iotop -C 10 20 > iotop.txt However, in the output file, The text looks like this: 2017 Oct 14 16:...
rcplusplus's user avatar
0 votes
2 answers
194 views

After `script` command gives a file, in vim I use `:set isprint=1-225` to remove non-printable characters yet can't save the file in this format

When in vim I execute this command :set isprint=1-225 all the non printable characters are condensed/removed. Now how can I save this file or convert the format of this file so that by default this ...
Shér's user avatar
  • 1
0 votes
2 answers
784 views

How do you get a specfic part of a word in a file using awk?

I have a script which goes like this: script.m rng('shuffle'); load samples123/stage17/resamp_stage.mat indarray = str2num(getenv('arrayindex')); index = (indarray-1)*4+1:(indarray)*...
Rishabh Dutta's user avatar
0 votes
1 answer
100 views

postfix failed to start

I try to set up postfix on my WS880 router under ASUSWRT-Merlin. When I run it from command line, got error /opt/sbin/postlog: can't load library 'libresolv.so.0' In fact libresolv.so.0 lay in /...
Alexey's user avatar
  • 363
0 votes
0 answers
82 views

How can I create a 'view' of a directory tree in unix?

In my current dev environment, I have folders with dozens if not hundreds of files, including a plethora of generated files that are copied directly next to source in my working copy. I unfortunately ...
Rollie's user avatar
  • 101
0 votes
0 answers
32 views

What is it called - Example a Debian server with only limited system features

I came across a word which I don't remember correctly. Basically, unlike Ubuntu 16.04 server (has a lot of stuff installed by default), there are servers like Debian with only very limited softwares. ...
John Doe's user avatar
  • 356
0 votes
0 answers
874 views

Unix sed can't read. peculiar issue when using a variable

One line in a control file looks like this: 1039 ZA_BKPF_20170725103534.txt So using space as a delimiter, I am cutting and assigning the filename alone to a variable like below: file=echo "$line" | ...
Hari Gopinath's user avatar
0 votes
2 answers
2k views

Kali Linux installation, dual boot with Windows 8

I have Windows 8 installed on my system, and I am trying to install Kali Linux using a bootable USB flash drive. System details: 4 GB RAM Core i5 Processor Windows 8 64-bit I have prepared a ...
Harsh Joshi's user avatar
0 votes
0 answers
365 views

Making a 'special file' like /dev/null on Linux

Is there any way one could create a 'special file' or directory that processes the data written to it in some way, or generates some arbitrary data when read from? For example, a file which outputs ...
DividedByZero's user avatar
0 votes
1 answer
46 views

Find strings that do not appear in a repository

Problem: I have a moderately large repository (1000s of files, hundreds of thousands of lines). I have a text file with ~5000 lines. I need to find the lines in the text file that do NOT appear ...
Chris's user avatar
  • 131
0 votes
2 answers
2k views

Batch rename file to remove everything after the &

I have a directory full of files like this: Joe Schmidt Kapitel 10 - Teil 7.mp4&content_uid=359&hash=8353ee953b9bb79cebf58cc46d7dc085&random=190644109 A bunch of web stuff got kept on ...
right2clicky's user avatar
0 votes
1 answer
2k views

Unix - grep multiple keywords from a file

I have a script that will search for a keyword in all the log files. It work just fine. LOG_FILES={ "/Sandbox/logs/*" } for file in ${LOG_FILES[@]}; do grep $1 $file done This only works for 1 ...
user1736786's user avatar
0 votes
0 answers
536 views

SSH public Key Authentification still ask for Password with public key

I have two servers, one is local and one is on the web. I want to synchronize with a crontab job (crontab -e) every day at 4:00 AM between two folders on those servers. I'd like to use Unison with a ...
symp Ioio's user avatar
  • 881
0 votes
0 answers
23 views

Cannot connect to server.local from unix-based Machine

I'm running an internal Website that our Employees can access using the address http://server.local. The server is running IIS 7 and the Clients are Windows 7 and 10. It all works fine. However, when ...
Christian Seiler's user avatar
0 votes
1 answer
322 views

RSync Folders - Sync Multiple folders on different servers

I have a folder called Test and it has only one file called file1 on four different servers. I want all four folders to be in sync If file1 changes on any of the servers. Does Rsync support this kind ...
Bheemesh's user avatar
0 votes
1 answer
532 views

default directory permissions redhat linux

How can I set default group owner & permissions for any new file created under /data/user-name/ ? I want any new file created under /data/user-name/ to have the following properties: 1) group ...
Super_John's user avatar
0 votes
1 answer
378 views

How to create command to send me text message as to whether it failed or passed?

I am trying to create a command that will send me a text message whether it passed or failed. So far my command looks like this: command && echo OK || echo Failed | echo ' 'at `date | ...
Veridian's user avatar
  • 121
0 votes
1 answer
972 views

How can I escape the message that The authenticity of can't be established for sftp command

I have a problem with sftp. When I use the command sftp servername it prints out: The authenticity of host 'servername(IPaddress)' can't be established. ECDSA key fingerprint is 99:68:ca:0c:9f:a3:...
osamuyl's user avatar
0 votes
1 answer
132 views

c shell script doesn't recognize remote server

On AIX I have a scrip, which ssh to remote server #!/bin/sh Usage () { echo "Usage: $0 <config_file>" echo "Example: ./transfer_dmz_startD.sh /export/data/mbsesb/...
osamuyl's user avatar
0 votes
1 answer
1k views

curl is executed twice from crontab

I have installed centos 7 and PHP 5.6.29 on my server, and I set up crontab to run this command every 15 minutes: */15 * * * * curl http://example.com/check.php but the command is run twice. Is ...
rrapal's user avatar
  • 1
0 votes
1 answer
631 views

How to redirect error messages to log file in a shell script

I am executing below command to store matching files/directories however if i dont find any match then im getting error messages on console matching_files=`ls -d $log_dir/$pattern` ls: cannot ...
user's user avatar
  • 199
0 votes
1 answer
252 views

What is meant by, "saving clock cycles could make a substantial difference in execution time"?

The following text is discussing the historical development of UNIX: The next important milestone was the rewriting of UNIX in the programming language C. This was an unheard-of strategy at the ...
The Pointer's user avatar
0 votes
0 answers
48 views

processing Apache logs by date

I have a simple unix routine that can look through all my Apache access logs for particular strings. That serves me well in checking for malicious mischief. I do this by just concatenating all the ...
user618's user avatar
  • 101
0 votes
1 answer
11k views

ftp ls/dir command does not work properly on linux terminal while connecting a remote qnx target

I have a problem where in I am able to login as a guest ftp user. I get following message: 230 Guest login ok, access restrictions apply. Remote system type is UNIX. Using binary mode to transfer ...
user5767859's user avatar

1
7 8
9
10 11
15