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
2answers
125 views

which unix or linux command is used to change root password of remote machine(Just an IP address) without using SSH Login

which unix or linux command is used to change root password of remote machine(Just an IP address)? Suppose I just have an IP address of the target machine which is on my network, But I do not know ...
0
votes
1answer
32 views

Cut - the delimiter must be a single character

I am trying to cut the information from a variable of a variable. I am using csh. Ex: setenv time \`date | cut -d ' ' -f 4\` echo $time setenv hour \`$time | cut -d \':\' -f 1\` echo $hour Output: ...
0
votes
5answers
143 views

Little clarity needed about: PC and Mac and Unix

I've always thought that a PC and A Mac were two different computing platforms, not just with in their operating systems (Windows & Mac OS) but different from hardware to thier respective internal ...
-2
votes
1answer
54 views

Should I switch over to UNIX? [closed]

I used Windows 98 second edition. I loved it. Then I started on Windows XP Pro 32 bits. I found it reliable and easy to work with. Now I get a message that Ms will not support Windows XP Pro, from ...
0
votes
0answers
66 views

OpenBSD Change tty background color

Is it possible to change the background color of one or all ttys without installing any additional packages? Using a config file, or environment variable? I tried changing the text mode resolution, ...
0
votes
1answer
51 views

What variables I can place in a Putty Link?

I create a new link in Windows with the following target: "C:\Program Files (x86)\PuTTY\putty.exe" -ssh username -pw password Are there any other options I can add in that one link target? I am ...
0
votes
0answers
15 views

Default location for public keys of remote machines on windows?

I want to move the files between a windows and Linux machine. Because I want to transfer without prompting for credentials I need to distribute the Linux's public key to the Windows machine. I am ...
0
votes
2answers
94 views

Is VIM adding the Windows newlines?

Notice the line endings from git diff: - IP_ADDR: 'http://1.2.3.4:143' + IP_ADDR: 'http://2.4.6.8:143'^M I edited this file by putting the cursor on 1 then pressing ct: and then entering the ...
6
votes
1answer
90 views

Merging different windows in tmux

my question is simple. I have two windows in tmux session, 1 and 2. How can I merge these two windows into one window split horizontally/vertically? I couldn't find an answer in manpage, so I'm asking ...
0
votes
2answers
68 views

cat wc -l count lines line with defined line endings (e.g Mac OS X specific)

As any command-line user I sometimes want to count lines in text file with well known command: cat some_text_file | wc -l I face the problem on Mac OS X, which as far I have it studied is connected ...
0
votes
0answers
44 views

What is the meaning of double hyphen in reboot command

What is the meaning of the double hyphen in the following command: reboot -- -rx
0
votes
2answers
145 views

Linux move files from specific directory one directory up and delete empty folder

I need to move files out from a directory inside a directory inside a directory and remove folder that I move them from. I would need a recursive script. The directory structure: ...
3
votes
1answer
971 views

Unix command to get number of lines in a CSV file

I have to get the count of lines from incoming CSV files. I have used the following command to get the count. wc -l filename.csv Consider files coming with 1 record I am getting some files with * ...
1
vote
1answer
281 views

Does rsync delete files, folders at destination by default?

Files Suppose that /foo/src contains only A.c and that /foo/dest contains both A.c and B.c. And suppose I run the following command: rsync /foo/src/ /foo/dest Will rsync erase B.c? Folders Now ...
0
votes
1answer
23 views

Not able to reference softlinks in a script

we have couple of softlinks to scripts a directory in our current directory. Let's take we have two softlinks , script1 and script2. We are referencing script2 from within a script1 like below. . ...
0
votes
1answer
39 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
33 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
30 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
68 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
73 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
76 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
32 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
79 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
310 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
52 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
195 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
19 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
61 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
38 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
130 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
29 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
47 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
57 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
123 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
387 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
107 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
119 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
62 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
50 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
35 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
25 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>