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
vote
1answer
55 views

Using ldapbind to Authenticate

I'm trying to run ldapbind to authenticate to an LDAP server. From running Java code that attempts to connect via LDAP, I know that a "Connection Timeout Error" is occurring. However, am I running ...
2
votes
2answers
303 views

scriptdir=`dirname $0` not working

I am trying to get the directory where my script is in by using: scriptdir=`dirname $0` but this gives me the following error: dirname: invalid option -- 'b' Try `dirname --help' for more ...
0
votes
0answers
54 views

Starting a Script with Nohup inside another Script

I have a server that runs several scripts, and every once in a while we receive an autogenerated alert mail saying that some are stopped. (It doesn't matter the reason.) Then we manually start all ...
0
votes
0answers
32 views

Zsh prompt produces an error

I have the default prompt for oh-my-zsh, which is great when I have a git repo, but if there is no git repo its actually failing instead of putting nothing. I trapped an ascii image to err just for ...
0
votes
3answers
70 views

Need to trigger a script to run on a specific date from a Unix hosted static website

I have a static website running on a Unix hosting service where I need to trigger an event at a particular date which is calculated from a date (which changes regularly) written in a table on the ...
0
votes
0answers
122 views

Irritating GitHub Conduit dialog opening up whenever I visit a GitHub link — can I get rid of it?

X-Post from a [closed] StackOverflow question. I have a problem that sprang up out of nowhere in the past two or three days. Whenever I'm using Git in Terminal (which is pretty much always), if I ...
1
vote
2answers
27 views

Excluding a file from UNIX “find” results based on existence of another file

I have a big bunch of directories, each with a series of .pdf files. Some of these files have successfully converted to .csv, some have not. An example directory listing using find ./: ...
0
votes
3answers
91 views

What's the name of the file system of the operating system in UNIX\Linux?

Is that correct to assume that the operating system is ALWAYS placed in /usr in all kinds of UNIX and Linux? I'm writing a script that has to check the free space in the operating system's file ...
1
vote
1answer
35 views

What does man [-acdfFhkKtwW] mean?

I am fairly new to using the OSX terminal, so before I move forward, I want to get good at finding information out for myself. So, I was reading about the manpages about manpages, and I saw that I ...
3
votes
2answers
545 views

What does Unix “lunch” command do?

man lunch and lunch --help both return nothing Googling for unix lunch command, I also find nothing I am assuming it is custom. How do I go about finding its location and what it does?
0
votes
1answer
165 views

gnuplot not working on ubuntu

My initial problem is that i am unable to find png as list of terminals in set term. So using the link http://askubuntu.com/questions/393882/png-terminal-in-gnuplot, I installed the gd library.And ...
0
votes
1answer
117 views

Unable to plot png in gnuplot

i need to plot png files in gnuplot 4.6.3 and/or 4.6.4.I am unable to do so as set term does not list "png" as an option. system information is Linux masterx-Studio-1535 3.5.0-27-generic #46-Ubuntu ...
2
votes
1answer
252 views

bash vi mode: What does # -*- mode: ruby -*- # vi: set ft=ruby : mean?

I'm looking through some random code, and at the top of it, it says this: # -*- mode: ruby -*- # vi: set ft=ruby : What does this mean? I know it's a simple question, but I couldn't find it out ...
1
vote
4answers
117 views

Is there any harm in converting all files to executable?

I wanted to install certain software. The package had lots of files including some shell scripting files. Initially I had to select some files and then make it executable: chmod 777 shellscr1 but ...
0
votes
1answer
100 views

How to run program on Unix server and then close SSH? [duplicate]

I need to run a long operation in MATLAB on a remote Unix server. But I know I won't be able to stay logged in via SSH the whole time. I am root/admin if that helps. How can I do this without losing ...
2
votes
1answer
54 views

*nix find -type flag: can it accept multiple types?

I want to use find for getting all simlinks and regular files. I can use the -type for these individually, and I can use -o to string them together, but I apparently can't do -type fl. Is there a way ...
0
votes
0answers
88 views

How to access different tty session

I wanted to know if there is any possibility of login to other tty sessions. Someone has mistakenly changed the root su password. One of the session is already logged in as root. So any possibility ...
0
votes
1answer
476 views

How do you extract a file using tar in AIX?

On a NORMAL Unix distro, tar zxvf works but seems like my machine has some super old version of tar that doesn't have the right parameters. -bash-3.00$ tar zxvf qemu-1.7.0.tar.bz2 Usage: tar ...
0
votes
0answers
254 views

Meaning of sshd's disconnection log messages

I got a series of messages like below in /var/log/secure and I'm curious about the numbers and the messages. Received disconnect from xxx.xxx.xxx.xxx: 11: Bye Bye Received disconnect from ...
0
votes
0answers
242 views

Cannot connect to local ip address OSX (Mavericks)

Here is the situation: I can ping and connect to localhost / 127.0.0.1 I can resolve hostname (dig / nslookup) I can ping my ip local ip address (10.63.66.185) and hostname from another machine I ...
0
votes
1answer
78 views

Print to file using enscript

I want to print to file using the unix command enscript. I've looked in the man pages but can't figure out how to get it to print to file without it going straight to the printer. Thanks
0
votes
1answer
40 views

Remove all traces of emacs and start over

I've been trying to install PolyML in Emacs on my Mac in OSX but I can't get that or SML-mode to work. I've tried the builtin emacs, the gui version and the one from homebrew. Neither poly or sml ...
2
votes
1answer
108 views

How can I log all my command-line activity?

I just had a Heisenbug that completely disappeared on me. I'm convinced that something funny must have happened when I compiled my program several days or a week ago. But sadly, my Windows (MINGW) ...
0
votes
3answers
68 views

Fix multiple user permissions recursively for one directory

I want to create a ZIP archive of a particular folder, it mainly contains photos copied from various sources gathered over multiple years. Unfortunately, the permissions are messed up. With ls I am ...
1
vote
3answers
144 views

How to exit the super user from middle of shell script?

I have a shell script in which most of the commands need to be run under sesu user and then I need to run some commands as current user. Can you please help me in this?
0
votes
1answer
1k views

SSH Issue on AIX 6.1

I recently upgraded the openssl version on AIXX 6.1 server. The install went fine. But now I'm unable to start new ssh sessions from puty to the server and I'm getting the error "Connection ...
0
votes
1answer
70 views

Permissions of files/directories in Unix

It appears that each file/directory has a given set of permissions shown by the 10 characters to the far left of each listing if one were to type into the terminal ls -l Considering that you can ...
0
votes
2answers
29 views

What is the procedure to check the apache version in a sun solaris machine?

What is the procedure to check the apache version in a sun solaris machine?httpd -v is not working
1
vote
1answer
19 views

Building a String of dynamic length - least consuming way?

I want to write a series of the character -, the amount equaling to 50% of the terminal window column size. I already have the column size. Let's say the terminal column size is 30. My desired end ...
0
votes
1answer
183 views

Remove question mark “?” from file names OSX

My music library contains many .flac files that need the "?" removed from the filename as my current music player (Sonos) cannot for some reason see those files. Is there a command or script that ...
0
votes
1answer
45 views

Transmission cannot be started in Unix

I once opened Transmission in some computer in the computer centre of my institute, and maybe forgot to exit Transmission and locked the screen. Then on some later day I log in from another computer ...
0
votes
1answer
54 views

Accidently ran 'dd' command on external drive - partially deleted data

I accidently ran the below: sudo dd if=dev/sda1 of=/dev/sdb1 bs=32M count=10 iflag=direct Removing the first 320MB of the drive has of course made the drive mounted on /dev/sdb1 inaccessable and ...
1
vote
1answer
335 views

Significance behind January 6 1980 server time

Today my iPhone reset it's date to Jan. 6 1980... I googled it and apparently it's a very common problem (A ton of results for January 1980... Most if not all were in January 6th of 1980)... the ...
1
vote
0answers
20 views

ps aux and processes between [ ] [duplicate]

Just wondering if there is a difference between processes listed between [ ] and others when running ps aux. What does it mean? Is the process still running or is it a recent process that has been ...
2
votes
4answers
127 views

Add a display to let user wait in bash

I am looking for a pretty stupid piece of code for bash that will show a kind of "please wait" rolling display, with the characters : - \ | / The first problem is that I don't know the name of this ...
1
vote
1answer
27 views

Fix User permission (UID changed)

I changed the UID of an user, (cos I was having problems with file permission), now this user can access or see any file... any ideas how to fix? I executed usermod -u UID username with the old ...
1
vote
4answers
402 views

How to split CSV files as per number of rows specified?

I've CSV file (around 10,000 rows ; each row having 300 columns) stored on LINUX server. I want to break this CSV file into 500 CSV files of 20 records each. (Each having same CSV header as present in ...
0
votes
0answers
22 views

What permissions should I have on a file to make it available via owncloud and readable to my local user?

Files stored in .../owncloud/data seem to be owned by www-data and in a group of the same name.
1
vote
2answers
66 views

How do I search for a string in a group of files when some of those files contain spaces?

I'm running Mac 10.7.5. In a terminal, I'll use this command for finding files with strings find src/main -name "*" | xargs grep -i 'mystring' However when the files contain spaces, I'll get ...
0
votes
1answer
40 views

Can I tell if I'm in an scp session in my .bashrc?

Inside my .bashrc, I'm doing a bunch of magic that causes problems when I'm trying to do an scp. The solution I've been going with is to manually ssh to the target machine, disable my .bashrc, do the ...
4
votes
1answer
45 views

Unix /Linux show the last part of a file with line numbers

Is there a way to make tail show a line number in front of the last lines it show so that it show the growth of the file when using it in a script. e.g: when using it in a script like this one: ...
0
votes
1answer
98 views

Eject all disks and dmg's with Automator script in Mac OS X

I have created an Automator Service to eject all disks in Mac OS X. find /dev -name "disk[1-9]" -exec diskutil eject {} \; This works, but I still receive an error message afterwords: "The action ...
0
votes
2answers
529 views

using awk with find -exec

I have a directory structure with 14 directories containing a bunch of files containing data in a three-column format (separated with tabs). I intended to use find and awk to extract the second column ...
0
votes
2answers
184 views

Logrotate says “log needs rotating” and then does nothing

I have the following logrotate configuration, and a 2 GB /var/log/messages: /var/log/messages /var/log/secure /var/log/maillog /var/log/spooler /var/log/boot.log /var/log/cron /var/log/network { ...
0
votes
2answers
120 views

Understand what is happening in Linux with ps, top, and free

I'm running my java program on a 12 cores 24 thread machine. They have several processes that are running simultaneously. It seems that I performed too many processes so that the whole tasks made the ...
0
votes
2answers
32 views

Using only 1 command line, how do I write a command to that will do a long list of all files in the storage/file directory

Using only 1 command line, how do I write a command to that will do a long list of all files in the storage/file directory and pipe the output to a grep command that finds all items containing the ...
0
votes
1answer
59 views

Create script to login and change time on unix Darwin

I work for a non-profit and recently had to take on some sysadmin responsibilities, and and it is a new area for me. We have a Apple X Server that is running Darwin, and from time to time, especially ...
0
votes
1answer
40 views

Extract single file from tar without taking its directories with it

I'm currently using this command tar -zxvf foo.tgz -C /root/dir1/ dir2/dir3/dir4/dir5/file to extract my specific file from a tar archive to a given directory, dir1. As is, I end up with ...
0
votes
0answers
21 views

Add a path in $PATH globally for every user

Do we have anyway to add a path globally so that each user gets it in $PATH. I want to add path of ANT so that each user doesn't need to add it in his $PATH variable.
2
votes
1answer
881 views

How to get actual creation time of a file on Unix?

I'm inspecting some files in my dedicated web server via linux cli after a hack attack and found some files have been modified with the 'touch' command to change the dates. I'm willing to get the ...