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

less -S server.log (unix)

For a better understanding I prefer to read the logs with no wrap lines. In less I can get this with the -S option. The problem is that I can not select and copy rows that go beyond the right side ...
1
vote
2answers
42 views

batch rename multiple mp3's stripping leading digits

Hi could anyone help me? Im trying to strip leading digits from multiple mp3 files so "01 some_file.mp3" would become "some_file.mp3" if any one could show me how to doit with zmv that would be great
1
vote
1answer
67 views

Unix mail command: Sort by newest first

When I use the "mail" command, it prints a list of messages in my inbox in a format like this: 1 Super User Mon Jun 9 17:13 86/4716 Complete Registration With Stack Exchange However I've ...
-1
votes
2answers
74 views

If we have a collection of Linux computers on a LAN, how to write shell script to shutdown all computer [duplicate]

I have lab and in that ,collection of Linux computer are connected in LAN. i want how to writ e shell script to shut down all PC when we run that shell script.
0
votes
0answers
17 views

How can I activate the Front Panel in CDE?

We installed a new Solaris work station at work and most of them come with the Front Panel, however the latest did not. How can I activate it?
0
votes
2answers
91 views

Is there a unix command to output time elapsed during a command?

I love using time to find out how long a command took to execute but when dealing with commands that execute sub-commands internally (and provide output that allows you to tell when each of those ...
1
vote
2answers
508 views

Can files be recovered after a failed mv command?

I used mv * .. in Unix to move all contents of a directory to its parent folder. There was a folder called "Downloads" in both the current directory and the parent. The one in the parent was empty to ...
0
votes
0answers
38 views

Solaris - Inheriting by files the user's ownership of directory

I have a directory with ownersip like user:group. I want to make on it something like suid on group, but for user - all of new created files have a directory ownership. For example: drwxrwx--- 2 user ...
2
votes
1answer
42 views

Can I create a “symlink-esque” file to “merge” two files together?

I'm dealing with an application that reads a config file, config.yml, from the current directory. This config file contains both secret information (API keys) that shouldn't be checked in to source ...
0
votes
2answers
203 views

Is it better to check if file exists before deleting it

Sometimes when I want to delete a file (from within a script), I will just delete it rather than checking if it exists first. So I do this: $ rm "temp.txt" 2>/dev/null Instead of this: [ -f ...
0
votes
1answer
74 views

Windows 8 cannot access samba while other OS do

I found some related topic, but they do not answer my problem or weren't enough accurate. I have a samba on a ArchLinux machine (a rapberry), which can be accessed from Android and iOS apps but not ...
12
votes
5answers
1k views

How to jump back to the first character in *nix command line?

When writing a long command in the *nix command line and having to go back to the first character, in order to add something at the beginning (for instance a nohup, when you realize the process will ...
1
vote
2answers
160 views

CURL used in shell

I am executing a shell script in which one curl command is present. I have to store the output of curl command(xml format) in a file and display the result on screen. For this to happen "tee command" ...
0
votes
1answer
114 views

Delete file if number in filename less than xxxx

I have thousands files in format randomstring_XXXXXXXX.jpg where 'xxx' is unixtime (1388415305). Now I need to delete all files older than some (unixtime) date. Does anyone have a solution for this?
1
vote
3answers
143 views

What risks are there in stopping and resuming processes in Linux?

Let's say I stop a process using Ctrl+Z and resume it five hours later using fg. How risky is this with regards to the proper functioning of the process? For instance, imagine that vim is working on ...
0
votes
0answers
933 views

FTP: Connection Refused

I am trying to transfer files between a Linux PC to a Windows PC. I can ftp the Linux PC with localhost ftp localhost prompts for the username and password and the login is successful. But when ...
0
votes
3answers
67 views

Zero sized tar.gz file found inside a tar.gz file

My current directory contains a single file like this- $ls -l -rw-r--r-- 1 root staff 8 May 28 09:10 pavan Now, I want to tar and gzip this file like $tar -cvf - * ...
0
votes
0answers
33 views

How to temporarily disable rsh between machines for user only

First, please note that I am just a regular user. I cannot do anything as a super user. Our sysadmin has enabled rsh between machines in our local network. That is, I can do this: [user@machineA] ...
0
votes
0answers
58 views

Idle timeout Bourne-style shell

Is there any way to timeout idle users in Bourne-style shell (/bin/sh). man sh does not talk about it. http://www.freebsd.org/cgi/man.cgi?sh TIMEOUT or TMOUT shell env variables in /etc/profile ...
0
votes
2answers
53 views

How to find number of `_`-separated words?

I want to make a Unix command that reads a string and counts how many words it contains. In my case the words are separated by a _ (underscore) character, not spaces. For example, TABLE_PERSON ...
0
votes
1answer
53 views

Multiple copies of the same file as a result of make / make install

In a development project I'm involved in, we have some files in our src folder that don't need to be compiled (such as python files, a custom .bashrc script, etc...). Running make copies these to our ...
0
votes
2answers
343 views

Pass-through account login through WinSCP [duplicate]

I have a Linux server, where when I connect by PuTTY, I first need to log in using a non-root account (let's say user1), and then issue the command su root or su - root to log in to the root account. ...
0
votes
1answer
48 views

Unix : Avail Space of File mounts

Problem Statement This is regarding the space usage of file system mounted in Unix box df -h -> Gives the total usage/avail/used/used% of all mounts in unix server Is there any other way to ...
0
votes
2answers
186 views

Why my setting with NFS and setuid not working in Linux

I'm using Linux. On machine A I have such NFS setting in etc/exports: /home 10.0.129.130(rw,no_root_squash) I mount this directory on machine A on /home/nfs/ on machine B. And I've set setuid using ...
1
vote
0answers
200 views

(111)Connection refused: mod_fcgid: can't connect unix domain socket

I have a problem with one of my webservers. I have Apache and Nginx (like a proxy-reverse server). My Apache run with mod_fcgid for PHP5.3. All works fine, but only on a few requests show me this ...
1
vote
1answer
49 views

extract file content to mutliple files base on match pattern

I am new to unix. I would like to process this file. PP_NAME_1 jprovider|J Driver Provider|${J_DRIVER_PATH}/jcc;${J_DRIVER_PATH}/jcc_license_cu|${J_DRIVER_NATIVEPATH}|com.jcc.Connection ...
0
votes
0answers
41 views

set/modify environment variable for gnome/kde at runtime

Is there a way to modify or set environment variables in gnome or kde at runtime, ie. after logging in? I specifically need this for gnome, but knowing the kde method would be really useful too. If ...
0
votes
1answer
92 views

cursor ripple effect for screencasts and other useful action visibility tools

I was wondering whether someone could point me to any tools available for unix/windows/mac that enable useful screen cast options such as showing a circle that ripples out everytime a mouse click ...
0
votes
1answer
38 views

How do I quickly search through large ascii files with less?

I'm looking through some large log files (1-10 GB) and have been running into trouble using the standard less search functions (/). Searching for strings takes several minutes to find a match. I ...
1
vote
2answers
112 views

How do I unset (undo) unix set -C in zsh?

This works as expected $ echo "foo" > foo $ cat foo # foo $ echo "updated" > foo $ cat foo # updated From man set -C If set, bash does not overwrite an ...
0
votes
1answer
272 views

email command not working in UNIX Linux

I tried with 2 email UNIX commands mail and mutt from my Red Hat Linux box. It's not sending any mails to the email id I specified. echo "My message" | mail -s subject "test email" <my valid ...
0
votes
0answers
108 views

copy-paste in VNC (unix)

I have a copy-paste issue when connected to the VNC client. I am running the "vncconfig &" as requested and copy-paste works as expected. After few hours/day, the copy-paste function stop working ...
0
votes
0answers
30 views

How can I use zgrep to take a file with IPs and recursively search another path, then take matching lines and correlate them into a single txt file?

How can I use zgrep to take a file with IPs and recursively search another path, then take matching lines and correlate them into a single text file? The command I have been using to find a single IP ...
1
vote
2answers
247 views

Pipe output from two commands into one

Is it possible in unix/bash to pipe output from two commands into another? I tried running the following command, which successfully ran both commands, but the first was piped to stdout and the ...
1
vote
1answer
70 views

Move Files having No Extension

I have 5 files in a directory log.txt abc.pdf def.ppt 1CC 1DD Now I want to Move files having no extension i.e 1CC and 1DD to a another directory i.e tree. whenever i am manually using command it ...
1
vote
1answer
62 views

Find last 24 hours executed commands per each user in bash

How can I find last 24 hours executed commands per each user and mail them the result? I have Ubuntu GNU/Linux. I find out that I need a package named 'acct'. I have already installed and enabled that ...
2
votes
3answers
318 views

rm -rf doesn't work for an empty directory [closed]

In terminal I try to delete a directory but that doesn't work: myuser$ rm -rf foo/ rm: foo/: Directory not empty In my main directory I have only foo : myuser$ ls foo I haven't any problem with ...
0
votes
1answer
29 views

Replace '-' char using sed

I have a text file, quite similar to this one: JACK BLACK 123456 -1245368 - BRIDGET RED 1245 548425 + JOHNNY HOMUSS 55482 -4325 - I wanted to use a sed command ...
0
votes
3answers
115 views

Unix - Rename a file by removing last 2 instances of a character

I need to rename some files on Unix. I want to truncate the last two underscores and anything that follows them. For example: abc_def_ghi_121222_as.csv --> abc_def_ghi.csv ...
0
votes
1answer
107 views

Extract specific folder from a tar.gz

I know this question was previously asked on this site before like here 1 and here 2 but no success for me. I want to extract the Measures folder from my S012011_csv.tar.gz zipped file. If I do tar ...
1
vote
3answers
274 views

Is it possible to TFTP files via shell script in OS X?

I'm working on migrating my development environment from Windows to OS X and have run across a problem with TFTP. I use TFTP to upload files to an embedded network device, this is the only option to ...
0
votes
0answers
131 views

unix process showing unusual cpu usage and timing in ps aux

USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND root 684 186912060 0.0 17140 988 ? Ss Feb24 54195432:44 root 7319 288895842 0.0 4096 668 ? S 04:30 ...
0
votes
2answers
36 views

Inserting a linebreak in lines starting with a pattern

I have a huge file that has the following format: #pair: 0 1 0 1 0 0 1 0 0 1 0 0 1 0 0 1 0 0 1 0 0 1 0 0 1 0 0 1 0 0 1 0 0 ...
-1
votes
1answer
55 views

Is GDDR5 compatible with DDR3?

I want to buy a MSI GeForce GTX 760 that is GDDR5 and I have a motherboard that is only DDR3. The thing is, I don't know if there is a newer type of motherboard that can support GDDR5 or my ...
0
votes
1answer
56 views

Interpretation of the unix command: ip address

I have to interprete the result of the unix command: ip address I'm getting something like this: 2: eth-man: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen ...
-2
votes
1answer
31 views

Algorithm to find the color of a shirt [closed]

My requirement is to prepare a 3-4 page of document explaining the different approaches or algorithms (currently existing) to find the color of a shirt. Can anybody point me to the link where i can ...
1
vote
1answer
82 views

sFTP process ids explained?

Could someone explain to me the process that sftp makes when creating a connection and transferring data, on a control/data level? I know the basics about the ssh authentication and such, but for ...
0
votes
1answer
26 views

what is the difference between /var/lib and /var/run

I am studying unix-like filesystem structure especially FHS. Anyways i know in the recent FHS /var/run is moved to /run I can't understand the difference between lib and run. Can someone elaborate ...
1
vote
3answers
186 views

The system cannot find the path specified

Here is my situation. I have a Windows server box and a Linux box. On my Windows server I have Sharepoint installed and was able to access the shared directory through the Windows command line by ...
1
vote
1answer
24 views

single click or command setup for webserver on unix system

One of the product has requirement of on premise webserver. We are using LAMP stack. We have selected website for on premise use due to business constrains. We are to install this on multiple servers ...