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

0
votes
1answer
16 views

Built installation usb key from linux virtual machine

I have a virtual machine I'd like to install as real os on my machine. As I have refit installed on my macbook air (Mac os, windows and ubuntu), I tried the clonezilla methode in order to overwrite ...
2
votes
1answer
30 views

Pointing man pages to different location

In my environment, I am installing a different vendor SSH server other than openSSH tended to meet our environment needs. When I issue a man ssh command, for example, I want it to point to the new ...
0
votes
2answers
23 views

How to make scripts run from anywhere on OS X?

I've correctly added my scripts folder to my $PATH. But I still cannot run the scripts from anywhere by simply calling them. How do I achieve this? Example. If I have ~/scripts/ in my path and in ...
4
votes
2answers
48 views

unix tools to merge pdf [duplicate]

I'm looking for an alternate to ghostscript to merge pdf tools. We generally have print jobs containing more than 3000 documents, which are to be merged into a pdf. Ghostscript does this whole ...
1
vote
1answer
86 views

Is my UNIX command du failing?

I was checking the space occupied in my hard drive, and I saw strange results when executing the du command. Here you have a sample of what I've typed: marcha_r@Risa marcha_r $ du -cksh * 28M ...
0
votes
1answer
62 views

How to really force kill an application without rebooting? (Mac OS X 10.7 )

This is perhaps related to the question posted here: http://stackoverflow.com/questions/356722/killing-a-defunct-process-on-unix-system I cannot seem to kill Zotero after it crashes and I "Force ...
0
votes
0answers
20 views

How can I list all IPs in the network QNX

How can I list all IPs in the connected network, through QNX Terminal preferably?
2
votes
4answers
43 views

Best way to edit certain system files without sudo [closed]

On a Unix system, what is the best practice for editing system files such as /etc/hosts and php.ini as non-root without doing the tedious sudo+password? Can I simply chown those files to my ...
3
votes
2answers
191 views

Understanding top command in unix

When I run top -c command on my UNIX box I get the output below: top - 03:09:34 up 5 days, 6:14, 1 user, load average: 0.00, 0.00, 0.00 Tasks: 175 total, 1 running, 174 sleeping, 0 stopped, ...
1
vote
0answers
43 views

repeat command until process start or timeout unix

Is there anyway to check the number of file in a directory, if the number of files is correct, say 5 files, zip the files with zip -r total.zip. If the number of files is wrong, wait 3 seconds, and ...
0
votes
3answers
54 views

What is the equivalent unix command to a Mac OSX “Compress” menu action?

When I right-click a file in Mac OSX and select "Compress 'File Name'", what is the equivalent bash or terminal command to get the same result? Is it just gzip -9 /path/to/filename?
0
votes
1answer
23 views

Linux user group permissions and virtual development environments

So, I wanted to establish a virtual development environment that would be shared by a few users for collaboration. I created a new user group X denoting the group of users allowed access the virtual ...
1
vote
2answers
35 views

unix command zip everything except file ending with _fpartxx

I was wondering, if I have a folder structure like this: /var/www/testing/file1.iso_fpart0 /var/www/testing/file1.iso_fpart1 /var/www/testing/file1.iso_fpart2 /var/www/testing/file1.iso ...
3
votes
1answer
62 views

One line ls command

How can I use just one single ls command to display all symbolic links in my /dev directory? I know ls -l and that's about it.
1
vote
3answers
91 views

Single-line input to multiline output in Unix

How can I use a filter to display something like: echo "Hello there" | H e l l o t h e r e
2
votes
1answer
32 views

Using inode number to locate hardlinks

How can I use the inode number to locate all hardlinks to the file "file.txt" in my home directory?
1
vote
2answers
151 views

Unix Date command not working for few servers

I am trying to execute date command in unix server for yesterday. The commands tried are : date --date="1 day ago" date --date="1 days ago" date --date="yesterday" date --date="-1 day" These ...
0
votes
3answers
88 views

Find and replace string in a list of filenames

I have a couple of files like so, (on Mac OS X): product-103-footer.tpl product-103-header.tpl product-103.tpl I want to replace '103' in all the filenames with something else using grep and sed, ...
1
vote
2answers
54 views

Delete users who havent logged in for x days

got the simple code below USERS=`cat /etc/passwd` for USER in $USERS do echo "---------- $USER --------------" last -n 4 $USER done I want to ideally remove all users who haven't logged in ...
0
votes
1answer
43 views

Single “find” command with multiple arguments?

I need to devise a single find command that searches for: All C# or Java programs Located in the home directory of the current user Have at least one hard link Readable for everybody Have at least ...
0
votes
1answer
35 views

Create a logging program

I want to create a program that logs all the processes started by the user and confirms after they are started. I don't want to log all the syscalls and other daemon processes. I have initially ...
1
vote
2answers
62 views

Redirecting shell command outputs to another konsole shell

I am writing a shell script and I would like to write commands in the script but redirect the output to other konsole sessions. (using kde)
0
votes
5answers
28 views

Rename a file based on the owner - linux/Unix

I have several files in a folder that all follow a naming convention of: rs1.txt rs2.txt rs3.txt Some of these files were produced by myself, and some were produced by my colleague. I was ...
0
votes
1answer
42 views

How to list the content of a zip file within another zip file without extraction

We have a zip file which contains another zip file. We tried zip -l file on a zip file but we don't know how to list the content of the other zip file within it, without any zip extraction. Is that ...
0
votes
1answer
52 views

What does this line do? [export DYLD_LIBRARY_PATH=”$DYLD_LIBRARY_PATH:/usr/local/mysql/lib/]

I'm trying to get MySQL-python working on my mac. I have to put this line in the terminal to fix an error, specifically "_mysql.so image not found". The source of this line tells me I should put it in ...
0
votes
1answer
35 views

unix sytem-access

I have the permissions below for the directory V, created by the owner a. Now, according to the properties, the associated group should also be able to read write and execute in the directory. Does ...
0
votes
2answers
101 views

i want alice to run any command as root, but can not run commands as any other user

Say I have 2 users - 'alice' and 'bob' and want to allow 'alice' to run any command as root, but not run commands as 'bob' or any other user, am I able to do this, and if so how ? consider this ...
0
votes
1answer
38 views

UNIX command to sort the file by the following words, from major sort key to minor sort key: word 3, word 1, word 4

Need help with the UNIX command below to sort the file by the following words, from major sort key to minor sort key: word 3, word 1, word 4. (words are separated by white spaces) sort -t -k3 -k1 ...
1
vote
1answer
66 views

Unix utility to run a command after a specific length of time has elapsed?

I'm looking for a daemon that will run a command once every week. But I am not looking for something like cron that will run a command at a specific time. Because my laptop is turned off a lot, it ...
0
votes
0answers
32 views

reading snort.u2 files

I had posted this question on Unix & Linux StackExchange site but told that it is not a good site for this type of inquiry. So I am posting this here. I am just getting started with learning and ...
0
votes
1answer
49 views

Force Solaris 10 reinstall on SPARC T4

New job, new environment... I'm picking up for someone who has "moved on to other projects." One of the last things he worked on was installing Solaris 11 on a Sun SPARC T4-2. Solaris 11 was further ...
1
vote
0answers
61 views

Retaining usable permissions and ownership copying unix files to NTFS

I have an old solaris system with terabytes of data on it. Recently we got a new server and I went along with the recommendation of a windows server "because it was easy to manage". Someone copied ...
2
votes
2answers
98 views

Can I clone a large hard drive (with little data on it) to a smaller hard drive (with no data on it) with “dd”? Is there a better way?

I recently got a new desktop, and two hard drives to go with it: a 128GB solid state drive, and a 750GB hybrid drive. I installed Windows to the hybrid drive, but have come to realize that it would ...
1
vote
2answers
62 views

How to compile a shell script in FreeBSD?

How can I compile binary shell script for FreeBSD? I tried the Linux binary emulator but it doesn't work.
140
votes
17answers
8k views

What is the advantage of using 'tar' today?

I know that tar was made for tape archives back in the day, but today we have archive file formats that both aggregate files and perform compression within the same logical file format. Questions: ...
0
votes
4answers
60 views

How to set the time temporarily in Linux

I am testing some code with some random numbers generated with the current time as the seed using srand(time(0)) I'd like to get the same random numbers every time when I run it. So I want to set ...
3
votes
2answers
55 views

Generate distribution of file sizes from the command prompt

I've got a filesystem which has a couple million files and I'd like to see a distribution of file sizes recursively in a particular directory. I feel like this is totally doable with some bash/awk ...
0
votes
2answers
22 views

How to automatically remember the last path where I was? [*nix]

Is there any scripts or tools that can automatically remember and write down the path I am? I asked because, when I was remote accessing my campus cluster via ssh last night, they will log me out ...
0
votes
2answers
46 views

Silent cd using cdpath with zsh?

When using cd to navigate to a path found by cdpath that is not located relative to ., the resulting path gets echoed. For example, assuming a directory structure like ~/parent/child and a cdpath like ...
1
vote
3answers
95 views

how to combine contents of 2 txt files in unix..i know the cat command can do this but how?

I need to combine contents of 2 text files, word by word. The script takes every word from file 1 and combines with file 2. it adds all the combined words in file 3. Example: File1 File2 ...
0
votes
1answer
32 views

Why doesn't this xargs + grep combo work properly?

I have two files, team1.txt and team2.txt team1.txt =========== Alex Bob Charlie David team2.txt =========== Alex Charlie Benjamin Zed Noah I want to output the people who are in both team1 ...
1
vote
1answer
40 views

UNIX Scripting Possibilities

Need a small help to understand if a task can be accomplished using UNIX script. Situation: Symantec Endpoint Encryption when installed on Mac, a manual intervention is required where a technician ...
0
votes
1answer
58 views

How to execute a script saved in the local system from a remote server?

I want to execute a script saved on the local system from a remote Unix server to help me automate a deployment process. The script contains some commands to rename an existing file on the remote Unix ...
2
votes
3answers
183 views

What does kill 0 do actually?

In the man page, it says: 0 All processes in the current process group are signaled And I tried like this: $ man kill & [1] 15247 $ [1]+ Stopped man kill $ kill ...
1
vote
1answer
113 views

Edit sudoers to allow /sbin/ifconfig down with NOPASSWD

I'm trying to edit /etc/sudoers so that I can execute a bash script with a root password. so far every edit I've tried to sudoers is not working. I've tried adding each of these lines: %admin ...
1
vote
1answer
118 views

How can I prevent a specific USB drive from automounting?

I have a USB drive that is, for all intensive purposes, permanently inserted. It's a licensing thumb drive for a Windows application I use. How can I prevent Linux from automounting that drive, since ...
0
votes
1answer
90 views

How to use chmod to change a file's permission?

I used ls -l to find file permissions in a shell and found this: File 1: -rw-r--r-- 1 root root 451 Mar 9 15:25 file.class.php File 2: -rw-rw-r-- 1 andy dev 872 Mar 9 15:43 file.class.php I want ...
1
vote
1answer
49 views

minix doesn't shut down

I've installed minix on virtual machine (bochs VM). Everything works great until I try to shut down the minix (shutdown command). Minix hangs at this output MINIX will now be shut down... What is ...
1
vote
1answer
70 views

OS X - make ordinary SSH commands use SSH config

Here is a (somewhat redacted) listing of my ~/.ssh/config under OS X 10.6.8 Snow Leopard: Host * IdentitiesOnly yes Host foo1 IdentitiesOnly yes User foo1 HostName example.com ...
0
votes
0answers
55 views

How do I install NanoBSD on a flashdrive?

I would like to install NanoBSD on a flashdrive, I'm on a Linux Machine and don't have an extra machine around. I'm very used to Linux but I'd like to try out NanoBSD on a headless machine of mine. ...

1 2 3 4 5 45