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

5
votes
5answers
3k views

bash execution time in milliseconds (mac osx user)

I've checked this , but the solution provided did not work for me. Using date I can get the execution time in seconds: T="$(date +%s)" #some work here T="$(($(date +%s)-T))" echo "execution time ...
32
votes
9answers
40k views

Unix/Linux find and sort by date modified

How can I do a simple find which would order the results by most recently modified? Here is the current find I am using (I am doing a shell escape in PHP, so that is the reasoning for the variables): ...
160
votes
17answers
12k 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
2answers
1k views

Where does SecureCRT save usernames and passwords?

If I check the checkbox remember my password on SecureCRT which file does SecureCRT write my username and password to?
16
votes
4answers
5k views

Powershell equivalent to unix `which` command?

Does powershell have an equivalent to the which command found in most (if not all) unix shells? There are a number of times I'd like to know the location of something I'm running from the command ...
0
votes
1answer
2k views

Setting timezone in AIX

The timezone is set to "CET" but date displays CEST $ echo TZ CET $ date Tue Apr 16 15:56:57 CEST 2013 Noticed the timezone on another similar system is "CET0" (not sure what the 0 means here!). ...
-2
votes
2answers
28 views

Trying to count and print song file names using awk

RANK NAME BAND YEAR GENERE DOMESTIC/INTERNATIONAL 206:Reach Out, I'll Be There:The Four Tops:1978:Pop:3/2 207:Bye Bye Love:The Everly Brothers:1950:Classic:3/2 ...
0
votes
0answers
7 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 ...
1
vote
1answer
23 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 ...
1
vote
3answers
42 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 ...
0
votes
2answers
30 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 ...
0
votes
1answer
20 views

vi Error | Out of memory saving lines for undo - try using ed

While executing the following command on a large file: vi largeFile.log I get the following error: Out of memory saving lines for undo - try using ed My environment is: AIX6 I cannot add any ...
1
vote
1answer
1k views

How to use wildcards with ls without listing directory contents?

ls typically displays only the files and folders in the present directory. But once you add a wildcard it starts searching in sub-directories. example: $ ls fight_folder file1 file2 $ ls ...
1
vote
2answers
47 views

Monitoring Excessive User Home Directory Growth

I am trying to write a script for a school assignment that will check and see if any of the non-administrative user home directories have increased in size by more than 100 MB in a single 20 minute ...
-1
votes
1answer
30 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
33 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
24 views

Algorithm to find the color of a shirt [on hold]

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

From where comes the inode number of a file mounted through NFS?

I asked a question on codereview to know if I could safely replace the following code: :inode => [stat.ino, stat.dev_major, stat.dev_minor], which threw NotImplementedError because of jruby not ...
0
votes
1answer
12 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
1answer
209 views

free disk space disappeared on SSD

Today my disk got full. It was surprising, because I've been running the same automated script for a few months, with plenty of space, and no issues. I don't understand where it's gone. du reports ...
6
votes
1answer
79 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 ...
1
vote
1answer
19 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 ...
0
votes
1answer
14 views

Awk - Syntax error

I am writing a bash script. setenv lineNUM `grep -n ms-listviewtable wget_list.log | awk '{print $1}' | cut -d ':' -f 1` setenv next `expr $lineNUM + 2` echo `awk '{FNR>=$lineNUM && ...
0
votes
1answer
22 views

Create a new process and make it use more than 10% CPU?

Really odd question I know. It's to help demonstrate my university coursework. I'm going to be killing processes that are using more than 10% of the CPU.
2
votes
2answers
37 views

How to list only ordinary files on UNIX

I'd like to list only ordinary files (not directories or symlinks) using ls from GNU tools. So far I have only some hackish greps. Is there an option or better way of doing that? Edit: I need more ...
0
votes
1answer
27 views

I have file called songs and i'm trying to find the longest and shortest song name using AWK

RANK NAME BAND YEAR GENERE DOMESTIC/INTERNATIONAL 206:Reach Out, I'll Be There:The Four Tops:1978:Pop:3/2 207:Bye Bye Love:The Everly Brothers:1950:Classic:3/2 ...
0
votes
1answer
24 views

Domain [ Understanding ] issue when creating a Linux email server

Ok, here goes my paradoxical question. For about 1 year into my hobby-ish career, I used to buy my domains and a hosting package from Reseller Club. I purchased their " shared hosting " plan and ...
3
votes
1answer
41 views

Is there a scenario where rm -rf -no-preserve-root is needed?

I've seen some questions on here where people accidentally do rm -rf --no-preserve-root or rm -rf *, wiping out most or all of their file system before they can react. Is there ever a reason to use ...
0
votes
1answer
25 views

Unix Scipt Shell: alert on change of specific files

Could any one Help me with the script Im trying to make a script shell that will alerts/email the root if any of those files has been modified and the script has to auto routine , so the script have ...
0
votes
2answers
17 views

Head of ssh file resource

Sort of an odd question, but is there some way that I can operate on remote resources as UNIX files? E.g. I'm looking for some way to do tasks like the following: head ...
1
vote
2answers
2k views

Mac server default file permissions

How do I change the default file permissions for files created on a Mac server? In case it's relevant, this is a Mac Mini running Mac OS 10.6.7. It's currently used mainly as a file server, and there ...
0
votes
1answer
38 views

Piping tail -f into awk

Greeting, I am trying to pipe tail -f into awk to monitor a logfile in realtime, but according to examples, there should be not problem but I can't get it to work. here is the command I'm running ...
0
votes
1answer
15 views

Unix (process) creates a core file

I have a bit of a tricky situation. First of all I am a noob with no-to-little UNIX knowledge and experience. I work for a huge company with lots of security protocols and I can't debug or look into ...
0
votes
3answers
6k views

Installing “SoX” via the Terminal

I'm new to installing applications via the Terminal, so excuse my absolute ignorance on the subject. I want to install SoX ( http://sox.sourceforge.net/ ), so I can do some ninja audio editing. First ...
0
votes
2answers
21 views

File sorting confusion

Q1. I have a command and I'm confused why it's sorting the filesizes by Kilobytes then Megabytes? $ find ~ -maxdepth 1 -size +1024c -type f -exec du -h {} \; | sort -nr 80K /home/sl6/S3401636/Lab 4- ...
2
votes
0answers
15 views

find using regexp and echo matches

I have about 50 users in /home/ directory and I have cloned a git repository to everyone: Executed at /home/ as root user: find . -maxdepth 1 -type d ! -name . -prune -exec git clone ...
0
votes
1answer
21 views

7z commandline: test archive and only show failures?

What is the easiest way to get only the failures from 7z when testing an archive for integrity? Looking at the command-line options, there seems to be no verbose or non-verbose option (i.e. there ...
0
votes
0answers
27 views

Getopts - command with multiple options

I have a command script i'm making and wondering how do i go about combining multiple options the general usage of the command is as follows: Usage: myCommand [-fpr] [-n count] [-s size] [-u user] ...
0
votes
0answers
6 views

Homebrew and RVM bickering

Homebrew requires /usr/local/bin to appear before other binary directories in PATH RVM wants to be sourced last The bottom part of my .zshrc: Alternative 1: export PATH=/usr/local/bin:$PATH [[ -s ...
4
votes
1answer
203 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 ...
7
votes
2answers
5k views

Can I monitor a local unix domain socket like tcpdump?

I'd like to monitor responses on a unix socket without disturbing the original connections and pipe them to a script for processing. I know how to do this with tcpdump for tcp connections but I ...
20
votes
12answers
4k views

Non-Windows, non-Unix-like OS's?

Since most operating systems I've heard of besides Windows seem to derive their heritage from Unix, I've been curious whether any OS's with the following characteristics exist: Not generally ...
0
votes
1answer
15 views

Merging two directory trees with same structure, but different contents in Unix

I have two directories with the following structure: A |_0 |_1 |_2 B |_0 |_1 |_2 each 0,1,2 directory contains unique contents. I want all of the contents to simply exist as: A |_0 |_1 |_2 Is ...
0
votes
0answers
19 views

Kali Linux: Renaming files in bin

I'm just curious. I want to rename files in /bin such as - ls --> als //after I change it, the ls command no longer works and I have to use als instead - adduser --> aadduser - chmod --> achmod so I ...
2
votes
1answer
1k views

How do I move a linked file on Unix?

I have a bunch of files in one directory and links to each one of those files in another directory. So ls -l looks something like this: lrwxrwxrwx 1 rembol rembol 89 Jan 25 10:00 copyright.txt ...
0
votes
0answers
11 views

How to retrieve all messages from someone using lync

How can I get all messages from a person I have lync-ed, please?
1
vote
2answers
461 views

tail stops working

I am tailing a file in unix. It stops working sometimes and I have to re-run the command. Anyone know why this happens?
0
votes
0answers
15 views

How does one install this mcrypt package?

I'm using MAC os x Mavericks, so after dlownload mcrypt-2.6.8, I decided to to configure ( per the recommendation of a dozen blogs ) like so : MACOSX_DEPLOYMENT_TARGET=10.9 CFLAGS='-O3 -fno-common ...
0
votes
1answer
63 views

Setting up a working internet connection in solaris 11

the title of this post states most of my problem. I am trying to connect to the internet for like 3-4 hours. But for being a total newbie at unix environment I failed pretty badly. How can I configure ...
0
votes
1answer
30 views

scp file with spaces in it

I have a file called test file.txt on machine 1(windows). I am trying to get this file over scp to machine 2(Linux). setenv fileName "test file.txt" scp user1@machine1:C:\Folder\$fileName ...