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.

Excerpt from the Wikipedia page

Unix was originally written in assembly but has since been rewritten in C. It has been branched many times both commercially and open source. One popular variant is the BSD variant which originated from the University of California, Berkeley. It also gave rise to Linux.

Notable variants

  • Silicon Graphics - Irix
  • IBM - AIX
  • Sun Microsystems - Solaris
  • Hewlett Packard - HP-UX

Unix is officially trademarked as UNIX.

Unix on Wikipedia

1949 questions
1
vote
5 answers

Best way to manage $PATH varibles?

I looking for a way to easier manage my $PATH variables. executing $PATH returns me: /usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin: No such file or…
JP Silvashy
  • 1,447
  • 6
  • 24
  • 30
1
vote
1 answer

Cannot SVN checkout when anon-access = none

When I have anon-access = write Everything works fine. When I change svnserve.conf to: anon-access = none auth-access = write And uncomment password-db and authz-db AND add user in authz with rw AND put username/password in passwd, nothing works.…
sKIPper76
1
vote
1 answer

Why some companies like cisco follow different syslog messaging format rather than rfc 3164 (BSD syslog) and rfc 5424 (IETF syslog)?

According to my understanding the popular syslog formats are: RFC 3124 (BSD syslog): Format: < priority >timestamp hostname application: message Example: <133>Feb 25 14:09:07 webserver syslogd: restart RFC 5424 (IETF syslog): Format: < priority…
Allan
  • 15
  • 1
  • 5
1
vote
2 answers

how to recover a .c file in AIX unix which has removed (rm -f) by accidentally

how to recover a .c file in AIX unix which has removed (rm -f) by accidentally
Thi
1
vote
0 answers

Copying files from remote to local using lftp in unix

I'm trying to write a script to copy some files from a remote ftp server to a local directory. I have seen lots of examples using the mirror command of lftp but so far none of them seem to work. Currently I have a command that looks like this: lftp…
pbuchheit
  • 151
  • 2
  • 11
1
vote
4 answers

Create file with variable value in Unix

How can I create a file in unix or linux based on variable value ? Ex: If I store date in a variable in linux, YESTERDAY=`date --date='1 day ago' '+%d-%m-%Y'` it will store value to YESTERDAY as 27-1-2010. Here I want to create file as name of…
Kumar
  • 823
  • 3
  • 20
  • 43
1
vote
0 answers

How to ensure execution of time consuming task on reboot/shutdown?

I have a bash script that is supposed to execute on reboot/shutdown of a remote Ubuntu server, connected over SSH: ls /etc/rc{0,6}.d/k99* /etc/rc0.d/k99_stop_all /etc/rc6.d/k99_stop_all The script needs about 3 min to finish. How can I ensure the…
1
vote
2 answers

Security: Linux - Postfix/dovecot - Roundcube - unix permissions for the mail user

Background: I am running a working mail server with a postfix/dovecot on debian buster as in this guide. Like in the guide, I installed roundcube on the frontend. The last chapter of the guide discusses encryption, and if you follow it, you end up…
randmin
  • 59
  • 8
1
vote
1 answer

Exclude subdirectory from host resolution set in /etc/hosts (with dnsmasq, or anything else)

I have a local development tool (LocalWP) that sets the path to my local environment by modifying /etc/hosts. For example, if I set my site in Local to www.foo.com, it'll append the following to the hosts file: 127.0.0.1 www.foo.com This is fine,…
Orun
  • 157
  • 1
  • 6
1
vote
1 answer

How to reliably & portably serialize binary information into POSIX shell

Problem context I am trying to implement a job orchestrator whose agent/worker programs, connect to machines via an SSH session/shell. I would like to transfer (potentially binary) files to these agents (which could be needed for any sort of…
Daniel Gray
  • 147
  • 1
  • 1
  • 5
1
vote
0 answers

Difference between 'sudo gem install something' and 'gem install something'

In this case I'm using gem as an example, but I think it can be extended to any other program. I use a Mac and I installed rails using command gem install rails from directory /Users/myusername/workstation. Then I tried to run rails new somename…
borjagvo
  • 111
  • 1
1
vote
1 answer

How do permissions work?

I stumbled upon something odd (for me at least) when using CloudLinux for the first time. I'm a long time Ubuntu user, I would still consider myself novice, though. I've installed Nginx with PHP-FPM on Ubuntu servers a multitude of times. My usual…
Repox
  • 265
  • 1
  • 3
  • 14
1
vote
0 answers

Difference between machine/processor/hardware-platform

In using the uname command the following three options gives me the same output: ubuntu@ip-172:~/asm/asm$ uname -p # x86_64 ubuntu@ip-172:~/asm/asm$ uname -i # x86_64 ubuntu@ip-172:~/asm/asm$ uname -m x86_64 Are the -m, -i, and -p options…
David542
  • 939
  • 3
  • 10
  • 15
1
vote
2 answers

Selective syncronisation of two directories in UNIX (Solaris)

I'm wondering if anyone knows of a nice way to partially duplicate (hard link) files between two directory structures? My current fall back is a script invoked by cron. As background: I ask since I have two groups who both need to access a body of…
Tom Duckering
  • 235
  • 1
  • 13
1
vote
2 answers

CRON job erratic behavior with Bourne shell script

I have the following script, that runs normally when I type the script name at the prompt (logscript): #!/bin/sh dvar=`date +"%m\/%d\/%y"` filedate=`date +%b%d%Y` echo DSS1 > serverlog_${filedate}.txt grep "^$dvar" oasErrLog >>…
Lance Roberts
  • 401
  • 3
  • 12
  • 29