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

Increase size of /var /usr /etc

df -h Filesystem Size Used Avail Use % Mounted on /dev/root 20G 788M 18G 5% / devtmpfs 16G 4.0K 16G 1% /dev none 4.0K 0 4.0K 0% /sys/fs/cgroup none 3.2G 532K 3.2G 1% /run none 5.0M 0 5.0M 0% /...
0
votes
2answers
180 views

Rename CSV header using command line tools

Given a CSV file, h1 h2 h3 a b c z x b how to rename the first header to One and the third header to Three using command line tools, namely One h2 Three a b c z x b
0
votes
1answer
215 views

How can I send email with attachment xls file using shell script as application/xls mimetype without making the received file becoming unreadable

#!/bin/bash ATTACH1=file.xls<br> SUBJECT="subj"<br> FROM=me@domain.com<br> TO=you@domain.com<br> CC=them@domain.com<br> MIME="Application/vnd.ms-excel" <br> FILE=$...
0
votes
1answer
33 views

Transform CSV column by a function using command line tools

Given a csv file such as h1 h2 a 0 b 1 c 0 how to rename 0 to YES and 1 to NO in the second column.
0
votes
2answers
28 views

LS but exclude suffixes

I have files foo.mp3 bar baz.mp3 bar baz 2.mp3 What command would output the following? foo bar\ baz bar\ baz\ 2 I know ls -1b handles the escapes, but how do I cut ...
0
votes
0answers
69 views

How to install new DB2 Express-C interface (CLI/CLP) language / NLPACK

I'm using IBM DB2 Express-C Docker image on (RHEL 7) https://hub.docker.com/r/ibmcom/db2express-c/ In my dockerfile I'm creating my locale and calling a shell script: ... localedef -i fi_FI -c -f UTF-...
1
vote
0answers
119 views

Slow vagrant box, how to improve this?

We've built a vagrant box for our development box and we are facing some latency issues. Issues: Assetic:watch is being slow Overall application access in (app_dev.php) is slow Using "find" command ...
1
vote
1answer
269 views

How to record or log telnet session using the command line?

I need to record the output of a telnet session. I can't just pipe or output it because I need to authenticate first. How I can achieve this log?
0
votes
0answers
33 views

Modify “save history when conversations are closed” to not restore history

I want to save my messages on my Macbook, but I like to delete the history from my Messages app. I don't want my messages gone forever, but just cleared off the app. Is there a way to save the ...
1
vote
2answers
114 views

commands to gather system information under unix

I have ssh access to a unix-based computer. What are the best set of shell commands to help identify what kind of machine it is (e.g. CPU type, number of cores, cache sizes, memory size, manufacturer,...
1
vote
3answers
45 views

how to specify A record of own domain in a zonefile

assuming that foobar.com is my domain, how do i specify the ip of "foobar.com" itself in my zonefile ? Below is my sample @ IN SOA myfoobar.com. hostmaster.myfoobar.com. ( 2001030201 ;...
1
vote
1answer
35 views

Why does CTL-3/CTL-# equal CTL-[? (and others) in the case of ASCII control characters

I've been rediscovering ASCII control characters as I fiddled with some terminal emulation code, and wrote a small program that outputs the hex value of each key I press (tcsetattr() with ~ICANON). ...
3
votes
0answers
103 views

Which X Window system is installed on my server that would work with Xming

I would like to use Xming to connect a server and managed to get it to work. I am now trying to get it to connect to a different server but i am not sure which X Window system is installed. I tried it ...
1
vote
1answer
46 views

Execute program when screensaver starts

Is it possible, on Linux, to execute a program when the screensaver starts without using 3rd party tools? For example: I have a script that will run a who command and log the output to a file. I ...
0
votes
1answer
36 views

How to execute a shell script when system time is changed? [closed]

I want to be able to reliably run a script on system time change. I don't know much shell scripting, so was thinking of touching a file in a continuous loop and figuring out system time change using ...
0
votes
2answers
81 views

What is the difference between /bin and /usr/bin/?

I am using Mac OS X 10.11 (El Capitan) and wanted to know what the difference is between /bin and /usr/bin/? Apparently /usr/bin/ seems to have more binaries in it like grep etc.
0
votes
1answer
44 views

Force Unix line endings for a partition in Notepad++

I've a Linux partition mounted using Web Drive on a Windows PC. It uses the same Drive letter all the time. Whenever I create a empty new text file and then open it with Notepad++, it starts using ...
0
votes
2answers
61 views

ctrl+x/c/p (cut/copy/paste) subsitutes in Unix bash?

I can't find any documentation that shows the equivalents for ctrl+x, ctrl+c and ctrl+p (cut/copy/paste) in Unix (and some other equivalents but these are more than enough to start with).
0
votes
1answer
27 views

A way to split a text file into arbitrary blocks based on first column?

I have a (very large) text file of the form... /folder1/fileA /folder1/fileB /folder1/fileC ... /folder999/fileA /folder999/fileB /folder999/fileC ...etc with an unknown number of entries for each ...
2
votes
2answers
295 views

How to move files into corresponding folders which have the same name?

Example scenario: I've multiple files ending with .torrent and I would like to move them into folders which has the same name. For example given the following files: abc.torrent def.torrent some ...
0
votes
1answer
43 views

Extracting tar file without overriding working directory

I have a tar file that contains hundreds of spreadsheets, inside of the tar file there is a directory home/common/4000_UW_spreadsheets what I want to do is extract a single file to a current directory,...
-1
votes
2answers
134 views

Tail, cat and grep a file at the same time

So I need to monitor a log file in linux and I'd like to cat the contents (to see all previous entries) as well as tail the log file while simultaneously using the grep to filter out the stuff I want ...
0
votes
0answers
27 views

Process running in SSH-allocated TTY not terminating once stdin is consumed

I can perform file-transfer via SSH* like this: ssh -T ${HOST} eval "cat > remote.txt" < local.txt However, if I instead allocate a TTY, it hangs until I press Ctrl+C: ssh -tt ${HOST} eval "...
1
vote
4answers
35 views

UNIX Command to sort file based on word delimited

I have a file that has lines file.txt like this: www.site.com/230207|Sophie Rundle title: Episodes|5irko3ke www.site.com/228264|Camilla Luddington title: Balifornication|5423234 www.site.com/...
0
votes
1answer
161 views

Recursive chmod only on {directories|files}

I'd like to know how could I change the permissions of all my folders recursively under a path (e.g. /Users/me/Desktop/main_folder) and also change permissions to all my files under a specific folder. ...
0
votes
1answer
21 views

Understanding /etc/aliases

I know that /etc/aliases is used to provide mail alias for system users (for either Sendmail or Postfix), for example, the listing like those in Understanding /etc/aliases and what it does. However, ...
0
votes
3answers
51 views

Why does deleting a directory take so long on SFTP?

One of my WordPress installs has been migrated recently and I'm trying to delete the directory of the old one but it's taken over 15 minutes to delete. It looks like it's deleting each individual file....
0
votes
2answers
57 views

Set environment variables (e.g., $PATH) at beginning of script — Not applying for all programs

I must be overlooking something, but I've tried several ways to get this to work. I'm working on a super computer without admin rights. I need to use a specific java version for a particular program,...
-1
votes
1answer
38 views

choosing a device to act as a server.

This is not a coding question. This is a question coming out of curiosity around my personal project. I have a simple server side web-sever which can be connected to limited set of clients over ...
0
votes
1answer
33 views

Unix Pattern Match for: “C:\filename.txt ->” and “C:\filename.txt\ ->”

How to pattern match those in Unix? I don't understand how do pattern match for a folder or file ending with "->" Edit: I'm trying to perform pattern matching with FastCopy. I only want to copy ...
0
votes
1answer
23 views

dd utility number of passes on bad block

In ddrescue you can set how many times to try to read from bad block (ddrescue -r1 will try once). It does not seem to be the case with dd. Does anybody know how many times dd tries bad blocks? ...
0
votes
1answer
34 views

Distinguishing and Executing `set` & `env`?

What is the difference between the set and env commands? When would/should one be used as opposed to the other? How are they generally invoked? (Typical use; case scenario).
0
votes
2answers
44 views

xargs; How & When?

What exactly is xargs? How do you use it? When would it be considered pragmatic, or otherwise appropriate to do so?
1
vote
1answer
182 views

External hard drive can't be mounted. OS X(10.10.4) running huge fsck_hfs process

It is sad to say that my external hard drive is currently facing issues. The hard drive is listed when I run diskutil list (TOSHIBA_EXT): /dev/disk1 #: TYPE NAME ...
1
vote
3answers
50 views

Unix - remove file with pound signs around it

I am using SSH to another terminal with very limited disk space. upon typing ls I see a file called #korpus.txt#. I suspect this file is an emacs buffer, but upon running emacs and trying to kill it ...
4
votes
1answer
75 views

Actions before logout from ssh session

Is it possible to bind some actions which will be executed before logout from ssh session? I mean some config like .bashrc, etc.
2
votes
2answers
88 views

Unix vs Excel sort

I have the following list of files sorted according to Excel: a1.txt a10.txt a11.txt a12.txt a2.txt If I use sort on Unix/Linux, I get the following order: a10.txt a11.txt a12.txt a1.txt a2.txt ...
1
vote
1answer
28 views

Unix find -size -1G ignore files which were returned by find -size -900M?

I need to tar-gzip files below a certain size in a directory. I tried the command suggested from this post and it works, but when I changed the argument for find -size to -1G, it ignores some files ...
0
votes
1answer
49 views

Terminate connection by sending some text

Is it possible to terminate an established tcpconnection created with netcat sending some text from host to server or viceversa? I attach what I'm asked to do:
0
votes
1answer
100 views

SFTP not switching to password mode

Two servers, synced configs and ssh keys. When connecting to the destination, first server switched to the password mode: debug1: Authentications that can continue: password,publickey,keyboard-...
-2
votes
1answer
74 views

What does asterisk “*” mean in a unix PATH environment variable?

Example: # echo $PATH /home/admin*:*/bin I assume it's a wildcard of some sort, but is it one level deep, or many? For example, will */bin match only items in usr/bin or will it also match deeper ...
-1
votes
1answer
71 views

VirtualBox Centos Not having network connection

After reading several posts on the above topic, i was forced to post this question because i m still stuck. I am running internet connection on MAC OS X el captain(wifi) and trying to run internet in ...
1
vote
0answers
24 views

inconsistency between pfiles and fuser [closed]

$ uname -sri SunOS 5.10 i86pc $ fuser securityagent-default-server321-1449307160087-2015-12-05.log securityagent-default-server321-1449307160087-2015-12-05.log: 29478o $ pfiles 29478|grep ...
1
vote
2answers
52 views

Select all instances of quoted text from a file

Is there any way to grep or obtain in any other way all instances of text within each pair of double quotes in a file? I've seen answers like this: http://stackoverflow.com/questions/15435056/grep-...
1
vote
0answers
54 views

Add a new locale to OS X (/usr/share/locale)

I am trying to add a new locale support to my OS X system, which I could then use in Python scripts. It is Indonesian locale (id_ID) and I currently do not have it in my /usr/share/locales directory, ...
0
votes
1answer
82 views

How to write “!” symbol between double quotes in bash? [duplicate]

I can't figure out how to write ! symbol in bash scripts when putting it in double quotes strings. For example: var="hello! my name is $name! bye!" Something crazy happens if I type the following ...
2
votes
2answers
177 views

Convert hexadecimal Shift-JIS to the characters

I am searching for the way to convert the hexadecimal value of Shift-JIS to the character in Unix/Linux command line. A Shift-JIS code table can be found here. For: 82 ae (0x82ae) I would expect: ...
0
votes
1answer
1k views

What does <<EOF do?

I am a newbie in Linux admin. While I'm learning GDB to debug my code, I need to create an input.txt file for my program to read. I know redirection symbols such as >, >> and <, but ...
0
votes
2answers
256 views

What is the exact different between Linux kernel release and version? [duplicate]

In Linux based operating system we can find Kernel release and Kernel version. So what is the exact different between Release and Version ?
0
votes
0answers
23 views

How to remove group message in Pure-ftpd

I have two servers with identical pure-ftpd configs. But, whenever client logs in to the second pure-ftp server, they keep getting the following message: 230-User xxxxx has group access to: 49 20 28 ...