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
0answers
70 views

Are there any OpenGL implementations which can use a server to do the rendering?

Assume I have 2 independent machines, one running Debian sid, and the other running Windows 7. The one running Debian sid has a decent graphics card, the Windows 7 machine has no graphics card and a ...
11
votes
2answers
305 views

Linux mv command moved data to an unknown location?

I accidentally executed this command in SSH: mv /var/www/vhosts/website/httpdocs/magento/* Now all the data in the magento dir is gone. Does anyone know where it moved to? Thanks!
1
vote
2answers
653 views

Non-ISO extended-ASCII text

when i tried to know the encoding of the file all.txt using $ file all.txt it shows this message all.txt: Non-ISO extended-ASCII text, with very long lines what is the kind of this encoding ...
1
vote
1answer
54 views

How to only remove file extensions while keeping other parts as they are

I have quite a few files with different extensions sitting under sub folders like 'aaa' /f1/aaa/a.txt /f1/aaa/a.sql /f1/f2/aaa/b.txt /f1/f2/aaa/b.csv what I need is to extract all these files from ...
2
votes
1answer
107 views

iconv cannot convert between CP1256 -t ISO-8859-6

i tried to convert from CP1256 to ISO-8859-6 encoding using Sygwin but it cannot convert! and help? $ iconv -f CP1256 -t ISO-8859-6 cca.txt > cca1.txt iconv: cca.txt:791:41: cannot convert the ...
1
vote
3answers
134 views

TimeZone Issue during DayLight Saving

I just been bugged by the Day light saving hours I seem that 3rd November 2013 01:00:00 start EST time Now ever Time I set my time to 3rd November 2013 00:58:xx(some seconds) and run date it ...
2
votes
0answers
44 views

ag (the_silver_searcher) not searching entire file - does it have an implicit maximum input size?

I have a very large plain text file (multiple gigabytes in size) which I need to search for certain strings. When using grep, I get over 11,000 matches of a string but with ag I get roughly 1,500. The ...
1
vote
1answer
100 views

error when using while loop in bash script

I am getting an error 2: [: missing ] when using the following while loop: #!/bin/sh while ["$INPUT_STRING" != "bye"] do echo "please type something (bye quits) " read INPUT_STRING echo "you ...
2
votes
1answer
76 views

What file system(s) does LynxOS support?

LynxOS documentation say that uses a "Unix-like" file system . It says you can mount devices as file system, but doesn't state which are supported (e.g. EXT3, EXT4, etc).
4
votes
1answer
194 views

Installing arch linux - unable to format filesystem

I had Centos & Windows systems dual booted previously. I am replacing Centos with Arch now. I have Centos's /boot installed on /dev/sda8 and / on /dev/sda9 When I try the following command on ...
0
votes
0answers
31 views

Getting RQuantLib to work in R 3.0.2

I have installed the latest version of R from apt. When I try to install the RQuantlib package, I get an error because Quantlib is not installed. When I try to install QuantLib, it says that the ...
0
votes
1answer
138 views

grep: can't open nohup.out

I am doing recursive grep (grep -r) but it is failing saying grep: can't open nohup.out How to make it going and grep in all directories. I have some idea about nohup but I am not interested in it. ...
0
votes
1answer
93 views

How to get a list of background processes in freebsd

I need to get a list of background processes in freebsd, but i don't know how. I've tried to use ps command, ps -ax ps -e -j but I haven't found properties which describe background processes. ...
3
votes
1answer
60 views

How can I rename files and subdirectories in a copied directory based on changes in the original?

I have a directory structure with many hundreds of files and folders underneath it for organising files (in this case photos). I create backups of that directory structure by rsyncing it to identical ...
0
votes
3answers
284 views

Copy a list of files preserving directory structure, without scripts

Is there a way to copy a list of files, that share a common base directory, preserving their relative directory structure? The files with relative paths are listed in a text file. edit I have the ...
1
vote
2answers
67 views

Bash: verify that process has stopped

I'm working on script meant to start/stop a set of services. For stopping, it has to terminate many processes which take a while and might hang. The script needs to verify that the process has indeed ...
-4
votes
1answer
60 views

Extracting exact field value from xml file and creating zip files based on each station type in unix using gzip

I have an xml file as below: <?xml version="1.0" encoding="UTF-8"?> <UnitReport Qunatity="163" start-time="2012-06-22T07:00:01+00:00"> <Station ...
0
votes
1answer
26 views

What should I do to secure, chmodly wise, my server?

I want to let my friend access my server so he can host his website. Let's call him Joris. # useradd joris note that I'm Debian. So now a /home/joris has been created. This is cool and all. BUT. He ...
1
vote
3answers
307 views

How do I grep the first 50 lines of each file in a directory recursively?

I need to search the first 50 lines of every file in a directory and its subdirectories. This will do the recursive part, but how do I limit to just the first 50 lines of each file? grep -r ...
1
vote
0answers
23 views

Retaining creation date with unison

Is there a way to retain creation dates using unison? I can preserve the modification times, but I also need creation dates. Edit: OS in use are BusyBox (EXT4) and OS X (Extended Journal)
0
votes
1answer
97 views

Unison profiles root/path issues

I am trying to sync two folders with each other (one local, one remote) using unison. If I use a standard command like this.. unison -times /Volumes/My\ HD/Work ssh://myremoteserver//volume1/My\ ...
0
votes
0answers
44 views

Get more space for redis in unix server

In our app we have only windows servers beside the cases we use redis queues. This case , we use unix server created by amazon. As you can see we do not have a lot of space available and we want to ...
-1
votes
1answer
62 views

Unix Script: check earliest date in a folder

let's say there is a directory with the name 'IN'. It contain a no. of files. i wanted to know how i can find out no. of files in a folder and the earliest and latest dates on which fille has arrived ...
0
votes
1answer
224 views

ash: command not found

On my NAS I have installed Unison package, which works when ssh'd into the NAS with this $NAS unison -version. However when running the command locally without ssh'ing to the system first using ssh ...
0
votes
2answers
139 views

How to compare content of two files?

I got a mission to compare the content of hundreds of pair files. I have to quickly compare each pair and to provide an answer if that pair is equal (in content) or not. The files could be text or ...
0
votes
0answers
45 views

How to redirect all traffic from one port to another host and port?

I have a socat running as redirector of traffic to another host, but it always hangs up and freeze. Maybe there is better options to do such a thing? My current command is: socat ...
1
vote
1answer
123 views

Move all files in sub-directories to current directory while renaming duplicates

I have a number of subdirectories and I would like to move any files contained therein to the current directory using a one line Terminal command on the Mac. I know that my file names are not all ...
4
votes
1answer
238 views

Is it possible to format ps RSS (memory) output to be more human friendly?

Executing ps ux returns a nice list of process information, easy to grep through or watch. However, there doesn't seem to be much flexibility in the memory usage output; the RSS (resident set size) is ...
1
vote
1answer
110 views

How to remove files which are copied after running `make install`?

So the question is how am I supposed to uninstall or remove the files that has been installed after running the make instal? (Specially when I stop it in the middle of the process by a "Ctrl+C" or ...
0
votes
2answers
43 views

What is the difference between different “make” commands?

So after running configure file on source codes for different applications one enters make and make install to install the application. My question is what is the difference between make and make ...
0
votes
1answer
39 views

How to set the default dimension of an application window

Every time I open nedit/gedit applications on my machine, the application loads in a small window. I have to resize the window each and every time. Is there any way to set a higher default dimension ...
0
votes
1answer
117 views

uuencode to attach all files in a directory

I am using uuencode and mail to do basic file attachments to an email. $ path/to/targetdir/audio.gsm audio.gsm | mail user@mail.com This works but my problem is I am trying to find a way to ...
0
votes
1answer
355 views

how can I search for a string in a folder that has zip files also

I am trying to search a string in a folder "test". This folder has sub folders and zip files too. I want to search within this directory to find the match. I used zgrep '11:57' test zgrep '11:57' ...
1
vote
2answers
63 views

what is way to set Proxy in Chrome in Linux

When i go for change proxy setting in chrome it appears as about:linux-proxy-config.Please also tell me how do I install Proxy switchy in it.
0
votes
2answers
645 views

How to move files to hdfs in hadoop using unix command

I have 2 directories "dft" and "hdfs" in the unpacked Hadoop folder. I am trying to copy the file(StartUnit.txt) in dft into hdfs. The corresponding command and exception are as shown below ...
0
votes
3answers
327 views

Unix - Surround First Column of CSV with double quotes

I have data in the following format - 4,"abc" 8,"def" 9,"ghi" I want to surround the value of the first column by double quotes. "4","abc" "8","def" "9","ghi" How do I do that ?
1
vote
3answers
123 views

What happens to the unix/mac file ownership/group/permissions when it is copied or moved to a different system

Talking about Mac specifically or perhaps Unix I am bit confused about how file ownership/group when a file is moved from one system to another. For example On my mac if I create a file I am the ...
3
votes
1answer
115 views

How does sudo actually work?

How is it possible for sudo to actually function? If it's just a normal program, couldn't you make the same thing without requiring the user to authenticate, giving anyone with access to a computer ...
0
votes
2answers
40 views

Replicate Log File Between *NIX Servers

I have an application running remotely on a vendor *NIX server. This application writes out log entries to a file. This logging process is very much a typical append-only approach, so the file only ...
1
vote
1answer
102 views

What will happen if my DB server runs out of disk space?

I'm seeing a huge difference of free disk space between df -h and du -sxh / I've understood in my question Resolving unix server disk space not adding up that du -sxh / is a better estimation as ...
1
vote
1answer
142 views

Extract a single file from a tar file to another directory

I have a tar file and I need to extract a single file from it and put it to another directory. I tried this but it gives an error message. It did extract the file but not to the directory that I want ...
2
votes
1answer
66 views

SCP command Clarification

I'm using the scp commands to pull some files from the remote server and one variation of the command is not working. I have 2 files names one.xml and two.xml in a remote server and I'm pulling these ...
0
votes
1answer
75 views

UNIX script to LPAD update query in cat file

I want script which will open the text file data and write update query to those file and save in SQL file which will get executed through cron. I have prepared command but its writing the update ...
1
vote
1answer
49 views

What is the meaning of -perm -400 in find command?

I found in a text the command find / -name "foo" -perm -400. What does the -perm -400 indicate?
0
votes
1answer
247 views

Why can't I cd into a directory that is owned by a group that I belong to? [duplicate]

In the home folder of the pi user on my Raspbmc distribution, I have the following directories: $ sudo tree . -L 2 . `-- downloads |-- complete `-- incomplete They're owned by the ...
0
votes
1answer
27 views

Unix - Convert Column to CSV

I have the following output from a command in Unix - "10" "30" "u" "hello" And I want it in the following CSV format without the trailing comma - "10","30","u","hello" I tried tr '\n' ',' ...
2
votes
2answers
53 views

List folders in Linux which can only be seen if accessed

Maybe it is a amateur question but here it goes: At the university we have a folder /vol. This folder is absolutely empty until you "cd" into a directory which exist there. E.g. "cd ...
0
votes
0answers
61 views

Forwarding mail from pine

I have an unix account on university servers and in one of my courses I need to forward all my mails to my personal box on gmail. I tried forwaring by opening .forward. In putty I connected to the ...
1
vote
1answer
244 views

-bash: pear: command not found

When trying to install phpDoc through the Terminal I get the following error: -bash: pear: command not found Even though I have just installed pear. Prior to trying to install phpDoc I installed ...
0
votes
3answers
72 views

What is the effect of using a # in front of a UNIX command?

My guess from the working of it is that it suppresses the output of the command