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

-2
votes
1answer
35 views

How to build custom FreeBSD os Image for Raspberry Pi using Ubuntu? [closed]

I want to build FreeBSD Image for Raspberry Pi Image using Ubuntu OS if it is not possible help me out of it
1
vote
1answer
50 views

Working with LFTP, find and -exec option throws error

What is wrong with the following lftp command? There files on server. I am trying to get their names without any path in it (like ./) Just file names. lftp -u user,password -e 'find -exec basename {} ...
0
votes
2answers
34 views

Create a binding to save with `shift S S` in vim

Recently someone recommended I save in vim using shift Z Z. This is working great for me! How can I create a shortcut so that shift S S maps to :w?
10
votes
2answers
40k views

How to specify group with chmod?

I was asked to add group-wrx permissions to a directory in another user's home folder. I believe what I should do is run chmod 771 -R directoryname in the parent directory. What I can't find ...
68
votes
13answers
96k 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): ...
2
votes
1answer
4k views

What's the difference between “uname -r” and “uname -v”?

I am using CentOS 6.2. In the man page of uname (i.e., man uname), it says: -r, --kernel-release print the kernel release -v, --kernel-version print the kernel version ...
4
votes
1answer
239 views

Edit bootable img file on Mac OS X

I have downloaded a bootable image of Ubuntu (7.95Gb .img file) for a Parallella (minicomputer), but its too big to fit on my 8GB micro sd card (which actually is only 7.8 GB!). I would like to ...
1
vote
2answers
131 views

SSH working but SCP permission denied using the same password

I can successfully SSH into my remote sever (amazon web services if that matters, I'm on a mac) using ssh -i mykey.pem ubuntu@??.??.??.??? But when I try to use scp scp -i test.php mykey.pem ...
0
votes
1answer
9 views

Move a directory and its contents up several levels

I have a directory with text files in /user/data/tutorial/texts/ and I'd like to move the directory Folder2/ with all of its contents to /user/. How should I go about this using unix commands?
1
vote
1answer
34 views

Alternative to ls to group extensions before sorting

I'm looking for some way to modify/replace ls with a command that is capable of: Grouping directories first (as ls does) grouping files by user-defined extension groups (e.g., all image-type ...
15
votes
6answers
1k views

How to jump to a particular flag in a Unix manpage?

When reading a Unix manpage in the terminal, how can I jump easily to the description of a particular flag? For instance, I need to know the meaning of the -o flag for mount. I run man mount and want ...
1
vote
1answer
36 views

how to list all files from smallest to biggest

So I know how to list all files in the current directory from largest to smallest by typing ls -lhS. I just need this list read in the opposite direction by having the smallest file on top and the ...
-1
votes
1answer
33 views

Syntax Error The source line is 1

I have a server list in hostlist file and I am trying to execute below script: #!/bin/bash for server in `cat hostlist`; do ssh $server 'hostname ;id $(cat /etc/passwd | grep Luyang | awk -F '[:]' ...
5
votes
6answers
322 views

Linux/Unix in Windows

What would be the best way to get the full-blown Unix/Linux bash inside Windows? I don't mean the Virtual Machine, but rather only the terminal with mounted NTFS drives. This way I could use the ...
0
votes
1answer
52 views

How to display motd or banner when users ssh directly into screen session

I have several users that connect to the same service account but under different screen sessions. So they would use a command such as: ssh -t user@myserver screen -Dr specificSessionName I would ...
0
votes
2answers
730 views

Is it safe to delete these files?

I came across these files in my home directory: .bash_history .bash_sessions (directory) .lesshst and I cant help my OCD-ness and I want to remove them, is it safe?
0
votes
0answers
15 views

Is it possible to program unix-based OS (specifically iOS jailbroken) to function as usb keyboard?

I know this is possible with Android to make a device emulate a HID keyboard for plug and play usage via usb to a computer, since the functionality was introduced to linux, but can it be done with iOS ...
0
votes
0answers
14 views

KeePass destroys Hardlinks?

I'm using KeePassX on OS X. I have a folder ~/.keyfiles, to which I'm hardlinking all key- and password-related files for a daily encrypted backup. To also backup my KeePass-Database, I therefore ...
1
vote
2answers
188 views

Run a shell script in background in Unix at specific time daily

I have a shell script task.sh that is needed to be run in background in Unix at specific time daily. I know nohup is useful to run the script in background. But worrying about how to schedule this ...
0
votes
2answers
43 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?
0
votes
1answer
119 views

apt-get install libphp-phpmailer not including class.phpmailer.php

I am installing PHPMailer on a Ubuntu 14.04 LTS server. I ran the command apt-get install libphp-phpmailer. It installed the files under usr/share/doc/libphp-phpmailer as expected. However, it is ...
0
votes
1answer
18 views

How can I enable arbitrary users to edit files in '/opt' sub-tree?

I am user 'somebody'. I have a typical "Web blob" website ecosystem ( essentially an FS sub-tree starting at Apache's typical "htdocs" directory ). Its files are owned by 'root', and grouped to ...
1
vote
2answers
46 views

Using wildcard in unix find command's path

This command with a * in the find path works fine on the local server Svr1$ find /path/*/foo/ -name "*20160208" When I try this remotely from another server it doesn't work Svr2$ echo $Pswd|ssh ...
0
votes
1answer
99 views

Batch for execute Putty, log on Server and run commands with shell script or txt [duplicate]

I need help for this process. I have a batch file to run Putty and log with ssh an server and will execute commands from file "commands.txt". C:\Programme\PuTTy\putty.exe -ssh user@server -pw 123456 ...
4
votes
1answer
2k views

FreeBSD 9 ports: How to make quiet installations?

Just wondering how do I make ports installation - without config options (blue) window popup? Assuming that I accept default options of the installation. make install clean
0
votes
2answers
24 views

print lines containing limited words in the second field

I have a symbol table of the form M07UP49A0870I422.wav <s> haraa keelaa <bn> </s> M07UP49A0870I423.wav <s> <horn> jau <babble> </s> ...
2
votes
2answers
58 views

Unix find not working with a wildcard in the path when ssh'ing

This command with a * in the find path works fine on the local server Svr1$ find /path/*/foo/ -name "*20160208" When I try this remotely from another server it doesn't work Svr2$ ssh Svr1 find ...
0
votes
0answers
11 views

Deleting ftp folder in remote system using putty command automatically when system boots?

I need to delete a folder in a remote system using putty, I have rm command to remove particular folder, but this should run everytime when the system starts how to do it?
2
votes
1answer
238 views

Execute commands using sudo in remote server after logging into PuTTY through batch file

I need to login into remote server daily and perform same set of tasks. I am using Windows platform and the remote server is Unix. I use PuTTY to login to remote server. To reduce the manual work, I ...
4
votes
1answer
61 views

What are the other uses of hard links, junction points, and symbolic links?

There are many answers on why hard links, junction points, and symbolic links are useful. I understand that junction points are supported from Vista onward and are described as "directory hardlinks" ...
0
votes
0answers
62 views

How to save SSL certificate in terminal without openssl?

I've got the following scenario: A service runs on server-1, calling server-2 via SSL over proxy-1 Server-2 is external and out of our scope Server-2 can only be reached from server-1 over proxy ...
0
votes
0answers
16 views

Time command execution with real time updates

Generally I use time myCommand to know how long does it take to run myCommand. I was wondering if there's a command that also shows how long it has been running so far on real time. Something like: $ ...
1
vote
1answer
92 views

How pause list of process in htop?

I should like stop refreshing list of process. My problem is in often refresh list. How I can do it? I use a tool htop.
2
votes
2answers
2k views

How to correctly extract the files from rar archive that contains non-ASCII characters as folder name or filename on linux

I used rar to list/extract the archive, but the non-ASCII characters became unreadable words. The 7z could list the folder name/filename with readable characters, however 7z said the unsupported ...
1
vote
1answer
54 views

sTunnel failure to start

im a bit stuck and need help understanding what im being told as there is nothing in the log file, i get the following error when i try and run stunnel (servermode): sudo /etc/init.d/stunnel4 start ...
38
votes
3answers
29k views

Unix: How to unsplit in screen

I'm trying to learn how to use screen, in unix so that I don't have to open up several ssh connections and terminal windows just because I want to do more than one thing at the same time on a machine. ...
0
votes
1answer
46 views

FTP: executable file changing to a text file during download

I have unix executable files along with a mac OS X app that I have transferred to my FTP server. When I download these files after uploading them, the unix executables download as TextEdit documents. ...
1
vote
1answer
592 views

Connection timeout when transferring file via FTP

I am trying to upload my csv file to a Unix server using FTP in the Windows cmd window, and at the end of the process I get this message: 425 Unable to build data connection: Connection timed out ...
0
votes
0answers
8 views

Send binaries to old unix machine via serial socket

I have old SVr4 unix machine,connected via serialline running in virtualmachine. The serial is a socket called /tmp/att1 I can use minicom without problems But i cannot transfer with kermit. On remote ...
1
vote
1answer
23 views

How do I monitor changes made to environment variables ?

I have an environment variable whose value didn't match the one set by /etc/environment, even after reboot. I eventually found the auto-executed .sh script changing it, but that incident got me ...
0
votes
1answer
42 views

Destination host unreachable when using ping<hostname> but no issue with ping <ipaddress>

I have 6 VMs with CentOS called n1, n2, n3, n4, n5, lnx-app1 with the below IP addresses: n1.xyz.com = 10.10.100.101 n2.xyz.com = 10.10.100.102 n3.xyz.com = 10.10.100.103 n4.xyz.com = 10.10.100.104 ...
0
votes
0answers
14 views

Default Profile

How can I set the default profile to be loaded on a bash login? My system was loading my user profile instead of the system one. I had it working properly and seemed to have accidentally broken it ...
0
votes
1answer
37 views

Check if samba down from a Linux client

What is the most effective way to check Samba server availability from a Linux client?
1
vote
1answer
24 views

Remotely running malware detection on a *unix server

I've used Linux Malware Detect in the past and it's very efficient and useful, however to run the installation shell script access to the root directory is required. As a result, when I'm on many ...
3
votes
3answers
10k views

How can I chmod/chown a specific list of files?

I want to write a .sh script to setup some folder permissions, but was wonder if I can run something like: chown -644 ./one;/two;/three to chown a list of folders, rather than calling chown ...
7
votes
5answers
7k views

List all unique extensions for files contained in a directory

I would like to see all the unique extension of files contained in a certain directory. What is the command to do that in bash? One could use find . -type f to get all the files in the current ...
0
votes
1answer
38 views

How to print the calendar in reverse order in UNIX?

I want to print the calendar in terminal using cal -y command , but in reverse order. What should I add to print the calendar from December to January?
3
votes
4answers
417 views

Is the Windows kernel considered an “application”?

If it is true that all Windows files with the ".exe" file extension are considered "applications", is NTOSKRNL.exe, the Windows kernel, an "application", or is this an exception to the rule? What ...
3
votes
10answers
505 views

Why not ~/dls instead of ~/Downloads?

Most folder names in the *nix world are lower case. It makes them easier to type in my opinion. However, everything in my home-dir is capitalized! Why is this? Is it possible to change them? The ...
10
votes
5answers
138k views

How to run a command file in PuTTY using automatic login in a command prompt?

I am using the following to login automatically to a remote server and then run commands listed in a commands.txt, like this: C:\path\to\putty.exe -load "[Sessionname]" -l [user] -pw [password] -m ...