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
45 views

Concatenate header of one file with tail of another

I have a large gzipped mysqldump file which contains some table definitions and then many insert statements. I'd like to edit the table definitions but leave the insert statements alone. The file is ...
0
votes
0answers
40 views

Windows client that can SSH into a tablet running Unix via the USB cable?

Seems like there should be a solution to this : I run a Unix on my Android tablet. I take tablet to any old PC, and connect via USB. I open some kind of terminal program on the PC (eg. PuTTY, ...
-2
votes
1answer
37 views

Double directory separators

I wanted to ask about double directory separators, I'm using windows 7 and as i checked there is not problem for example with this string ////\\\//\\\/\ to be used as a directory separator, The ...
0
votes
1answer
32 views

The ed text editor and line feed

With ed can I add line feeds (\n)? I've tried: s/word/word\n/ But it it just gave me a plain "n" after word. With double backslash appeared "\n". With sed this works as expected, but with ed not. ...
1
vote
1answer
35 views

Show one folder's content in other folder

My question is about Linux. I have 2 folders - /home/user/first and /home/user/second. In the /home/user/first there are some files. The second folder is empty. What I want to do is to have ...
-4
votes
1answer
34 views

UNIX Scripting language -need a script [closed]

I have 4 files let us suppose a,b,c,d in that one is zero byte file.I want a script which will identify which is zero byte file and a script which will transfer this file into "archive" . Thank You.
0
votes
1answer
75 views

How to find the matching records from 2 files in unix

I have two files which contains email_ids. 1. Test1.txt 2. Test2.txt Test1.txt contents are: abc@gmail.com xyz@gmail.com mns@gmail.com Test2.txt Contents are: jpg@gmail.com joy@yahoo.com ...
0
votes
2answers
82 views

Different /bin/sh for a specific user

I am running an Ubuntu distro where /bin/sh is a symlink to /bin/dash. While this is OK for most of my users, one of them must have bin/sh "symlinked" to /bin/bash. Is that possible? I am not sure ...
0
votes
1answer
91 views

What is the maximum memory (RAM) limit for Solaris 11?

I have been trying to find out the maximum memory limit for Solaris 11 for a report that I am doing but with no luck. Can anyone please help?
0
votes
0answers
35 views

SIGCONT definition, continue or restart?

According to the definition from wikipedia SIGCONT The SIGCONT signal instructs the operating system to **continue** (**restart**) a process previously paused by the SIGSTOP or SIGTSTP signal. One ...
0
votes
2answers
98 views

how to use grep and mv together in a directory in shell?

how do you grep the contents of all files in a directory for "TEST" then move those files to a different directory(like the home dir.)?
1
vote
1answer
409 views

Creating a zip file with a timestamp

I have been trying to create a script which compresses a directory with a timestamp and move it to another location on the same server, but I cant seem to get TESTDATE to display on the zip file, ...
0
votes
1answer
56 views

adding a static route to a unix system

I am using a UNIX compatible distribution (unfortunately I can't disclose the OS) as a router for a shared internet connection I need to add a static route such that any HTTP request to my.router.com ...
0
votes
0answers
236 views

nginx, node.js unix socket access denied

I don't understand why it refuses to connect. ls -l to /tmp srw-rw-rw- 1 root root 0 mars 4 06:26 php5-fpm.sock= srw-rw-rw- 1 root root 0 mars 4 13:30 sgtu3.kernel.sock= ...
0
votes
1answer
22 views

implementation of mandatory access control in mysql

HOw to implement mandatory access control in mysql. How to set the classifications (i.e top secret, secret, confidential and unclassified) and clearances in mysql. and how to compare them.
0
votes
0answers
74 views

Motion - How to create a timelapse of motion detected images only

I'm using motion software on debian and it's creating regular snapshots and updating the timelapse video as it goes along. Is there anyway to just have a timelapse video which contains the images ...
1
vote
1answer
44 views

apt-get install re-attempts failed installs

I've used apt-get to download some application some of which failed. When I run apt-get now it looks like it keeps trying to download these previously failed installs. Is there anyway to get rid of ...
0
votes
0answers
29 views

Why am I not receiving any system e-mails?

In my crontab, I have the following: * * * * * sh /home/rimmer/test.sh In /home/rimmer/test.sh I have the following: #!/bin/bash echo 'test'; I have also set chmod +x /home/rimmer/test.sh, of ...
1
vote
1answer
135 views

Unix to Windows equivalent

I am working on project which is currently on unix platform and we are going to port that project on windows. I want to know if there is any windows equivalent to following /proc/cpuinfo ...
0
votes
0answers
30 views

stop user from being runing any commands, should able to run only granted with sudo

Is there any single command or script which gives result, the list of how many commands a linux user is able to execute? And how to stop user from executing even a linux basic commands and should not ...
0
votes
1answer
50 views

How to stop and continue the process

I used ps -fT pid to manage a bunch of process forked from the specified pid. Now I want to modify some settings so I want to stop the processes whose pid is in ps -fT pid. After the modification ...
0
votes
3answers
63 views

How to exec two commands in one find

I would like to find specific folders echo their name ls -l their contents My problem is that I don't know how to combine an echo {} and an ls -l {} in one find command. line for echo: sudo ...
0
votes
1answer
142 views

Comparison between Oracle RAC Cluster Database (10gR2, 11gR2 and 12cR1) and deployed Oracle DB on Linux Cluster [closed]

Oracle RAC implementation may be costly for small enterprise, but how it would be if Linux cluster is implemented and then standard Oracle DB is deployed on that cluster to achieve availability like ...
0
votes
1answer
18 views

Copying Jar files into single zip file

I am trying to compress the hundreds of jar files into a single zip file that can be transferred to a different location. Please help.
0
votes
1answer
25 views

Using shortcuts to create identical file structure

I've got a Debian based OS with TV shows spread over multiple disks but the series are not all on the same disk. For example, Show1 has 10 Season, Season 1,2, 4 and 5 are on Disk1, 3, 6 and 8 on ...
4
votes
3answers
489 views

SAN vs NAS: How to explain the difference in layman's term?

I am from a software background so I am not really up to date with these storage technology. I am asked this question today and I don't feel like I am able to give a correct answer. Here is my ...
0
votes
1answer
218 views

Unix zip: zip multiple folders in to one zip file without creating a top containing folder

I have a folder like this: -resources --graphics --sounds I want to zip graphics and sounds folder into a .zip file named resources.zip, which I will use zip -r resources.zip graphics/ sounds/ ...
1
vote
1answer
30 views

How to get the path of the newest file among the set of files which contains the same ID?

I want to write a script which will take the ID as an input from the user. Based on that input it will search the directories to match a file which contains the given id. Now, the directory has more ...
0
votes
2answers
151 views

How to copy all end files in a directory to another directory in unix?

How can I copy all of the files that are found in subfolders within one directory, to another directory? I am having trouble with this because some of the end files are in more folders than others. ...
0
votes
2answers
66 views

Formatting a file for sendmail

How can I format a file so I can just do cat file | sendmail? By putting Subject: This is the subject, I don't need to specify the subject in sendmail, but adding the To: myemail@hostname.com field ...
0
votes
1answer
54 views

How to encrypt the mail in unix?

I want to encrypt the mail as that will be containing the confidential information. There are no attachments. Please help in providing the steps to encrypt the mail. I have got the reference of How ...
0
votes
2answers
48 views

Is there any limitation on file names under Unix?

We are using crontab to schedule jobs and it was not picking the files for processing that contain [ or ] or ¿. Is there any limitation on file names or do these characters mean something in UNIX? ...
0
votes
0answers
37 views

Exporting Variables – Reading Them Returns Blank?

Hi – I'm using Mac OS X (Mavericks), which should be UNIX compliant. In my .bash_login, I'm exporting variables for Cocos2D-X. I know this is executing, as I have a 'echo Test' line that executes ...
1
vote
1answer
1k views

How to use desert theme across all my Putty sessions?

I'm trying to follow this tutorial, titled: Custom PuTTY Color Themes to have the desert theme in all my PuTTY sessions. I downloaded and ran the registry file for desert theme. I'm now able to see ...
1
vote
1answer
26 views

list out owned file/directories and change its permissions

Can anyone please tell how can I change files/directories owned by me only. below is the command that list out files/directories owned by me find . -user <username>
0
votes
1answer
46 views

editing string using sed or grep

first of all please execuse my ignorance on UNIX. I am quite new. I have lot many sql files that contains following string ${DB_USERNAME}.${TABLE_NAME} Can anyone please tell me how could I change ...
5
votes
2answers
277 views

slash dot /. What does this mean? Not the easiest google search

Here is and example of what I'm referring to. The tilde means "/home/usr/", but what does the dot indicate. I know it's not acting as " * " would. Thanks.
1
vote
1answer
55 views

Making changes to /etc/sysctl.conf

I want to add this configuration to my /etc/sysctl.conf so it remains permanent. kernel.sem="250 32000 32 16000" Is the quotes (") necessary or not? Lastly, What do the various numbers mean? 250, ...
1
vote
1answer
78 views

Is chmod 060/006/066/etc… useful? [closed]

Are there any useful applications of chmod 060, chmod 006 or similar permissions? I wonder, why in chmod UGO, there are no restrictions such as U >= G >= O? Is is just simpler to implement it this ...
0
votes
1answer
251 views

How To Let Certain Unix-User To Access Only One Directory

How To Let Certain Unix-User To Access Only One Directory, e.g. I want to let the following username dimension to access the following directory only /var/opt/test/reports/* How i can make that ...
3
votes
2answers
472 views

How to comment out multiple line matching a regex using sed or awk

I have a file that contains this: [...] location /static { ... multiple lines ... } [...] location /static/ { ... multiple lines ... } [...] And I want to get: [...] # ...
1
vote
1answer
16 views

How do I split lines up in latex by a certain character?

I have a bunch of lines similar to: Jasmine, Kellyn, Shelly; Applebees Sarah; Walmart Helen, Max, Sam; Dell Many of these names repeat. I need to figure out the top 10 used names. Ive been trying ...
1
vote
1answer
27 views

Is it possible to sed -i from a text file to another text file?

I'm coding a shell script on my Debian box and there's a line on the script that needs to delete some emails from a textfile that is full of emails, like this: sed -i ...
0
votes
0answers
165 views

how to send encrypted mail using mailx command in unix

I want to make my email encrypted as email is confidential. Can anyone please tell me how to encrypt the email using the mailx command. In my shell script I have already used mailx to send the emails, ...
1
vote
1answer
248 views

Running ZFS as MediaStorage with non ECC-Ram

First to the Setup: I'm planning to use 8-11 USB3 Disks to form a MediaStorage The idea is to use 2 USB3 Hubs to balance the load between two seperate USB3 Ports (on different hubs) Now from what ...
1
vote
1answer
413 views

Sync multiple hosts using unison

I am trying to keep in sync three machines, on one of which I run unison to sync the other two. This 'star' architecture is advertised in the unison manual: Using Unison to Synchronize More Than ...
1
vote
0answers
30 views

Difference between Virtual Console and Workspace?

Please explain all differences between Virtual console and Workspace in Linux. If possible also kindly requested to specify definition and/or example. Many thanks.
0
votes
2answers
164 views

How to use the top command in Unix to only see process using more than 10% CPU?

I want to use top, but not see all of the processes that are using minute chunks of computing power. Can someone tell me how to use top to see things above a certain cpu % cutoff? I tried just using ...
1
vote
2answers
42 views

Remote login in, creating alias, need advice

I usually remote login to the server at my school. I have a user name and password. The command is 'ssh -l username -p port machineName'. (username is mine, port is a number and machineName is the ...
6
votes
2answers
185 views

What is the modification date ls reports for directories in Bash shell?

When I run ls -l in Bash shell, it lists a modification time for both files and directories. As noted in this thread, the modification time for directories does not reflect all of its contents. It ...