The command-line is the interactive interface to your shell.

learn more… | top users | synonyms (1)

1
vote
1answer
87 views

Ls -1 Command in linux on Ubuntu dosen't show details beside the name of each directory or file in the list? [closed]

I am using Ubuntu and when i issue this ls -1 command there is no details appear in-front of the directories and files names there is only a blank space ..what can cause this ?
0
votes
2answers
83 views

Unix grep confusion

I am doing an assignment for school and using putty to complete the assignment. The format of the assignment does not allow for much variation and thus only one answer is sufficient enough to allow me ...
1
vote
2answers
23 views

Trying to connect through cl

I am trying with: $ sudo iwconfig wlan0 essid mynetwork key 4bare2011 $ sudo iwconfig wlan0 essid mynetwork key 4bare2011 mode Managed and similar combinations. I'm using Ubuntu 14.04. The key ...
1
vote
1answer
67 views

What does `{\} {}` mean in `find` command?

Please explain this command in detail. I am using this command to find large files above 6MB and split in to 5MB chunks in the same folder. Then it removes the original files (larger than 6MB) in the ...
5
votes
2answers
108 views

How to type a right to left language in terminal?

Please forgive me if this is a bad question. OK. I have installed Debian recently (without a GUI) to learn the CLI and C using the LearnCodeTheHardWay tutorials. Its going well, and I feel at this ...
2
votes
1answer
48 views

How can I know which organisation a special command line tool is belong to?

Frequently we use command line tools to do fancy things in UNIX like system; many of them have a manpage and typically we can know which orgnization/person owns the copyright. For example, on Mac OS X ...
0
votes
3answers
134 views

Simple way to extract value from HTML

I have a very simple html file with a value inside. Value is 57 in this case. <eta version="1.0"><value uri="/user/var/48/10391/0/0/12528" strValue="57" unit="%" decPlaces="0" ...
0
votes
2answers
26 views

why some programs needs -h and other no

I know that is not a exciting question, but yet I don't understand why some programs needs program -h and other program --help sometimes is very boring recognize it
0
votes
0answers
16 views

acoc: availability, similar projects and problems?

I am trying to work on a Linux project out of Linux From Scratch. The outcome is a Linux with dull command line and console. I tried to bring color to terminal and I hit some bits and pieces like ...
4
votes
2answers
727 views

Basic commands in Unix not working i.e: -bash: ls: No such file or directory

I'm new to Unix and in the process of installing a program for my dissertation I must have played with the PATH for the basic Unix commands such as ls. Every time I type ls and the directory name I ...
2
votes
1answer
25 views

extract bounding box dimensions for TrueType font

On Linux, I can easily extract the height / width / ascent / descent dimensions of Xorg fonts via xlsfonts, e.g. $ xlsfonts -ll -fn 9x15 | egrep 'bounds|max' bounds: width left right ...
0
votes
1answer
68 views

Diff: slightly different filenames, same file

I'm using diff -rq to compare directories on a Mac OS X 10.6 server. In folder1, we have 'filename'. In folder2, we have'filename.archive' because folder2 is created by a file sync app that also ...
0
votes
1answer
57 views

Need to know how to start some GUI programs from terminal to use XMoand

I'm training myself to use XMONAD or something of the sort, but in order to do that, I need to know, from terminal, how to open the following programs: Bluefish Editor Settings (I'm using Ubuntu but ...
1
vote
1answer
42 views

Converting unix command to windows [closed]

I have been provided a command to use in unix, however, I want to perfrom the same operation in windows. Is it possible ? It's a network configuration command that apparently interacts with a server ? ...
0
votes
1answer
32 views

elif command is throwing error [closed]

Hi is the below elif command correct? elif [[ "${FILECOMMAND}" = "" ] && [[ -f ${ZIPFILE} ]||[ -f ${ZIPFILE3} ]]] I am getting an error when I run it.
1
vote
1answer
414 views

How to round floating point numbers in shell?

How do I correctly round IEEE 754 floating point numbers on the command line? I want to specify the precision of the output number - the count of fractional digits. Rounding 6.66 to precision 1 ...
0
votes
2answers
95 views

how to run rm in background in terminal

I have the following command to delete files in a folder that are 15 days or older: find /var/www/App/app/var/sessions* -mtime +15 -exec rm {} \; what is the best way to speed this up and run it ...
15
votes
3answers
651 views

Why don't shell builtins have proper man pages?

All shell builtins share the same manual page: BUILTIN(1) BSD General Commands Manual BUILTIN(1) NAME builtin, ! etc. Then there is a little text describing ...
6
votes
4answers
242 views

Strip Filenames and Rename

What rename command can I use which will delete the present filenames in a directory and replace them with alphanumeric filenames? Such as gg0001, gg0002, et cetera? And I'd like the command to work ...
3
votes
1answer
224 views

Estimate the size of the extracted files before extraction a `tar.gz` archive?

Before using tar to extract a .tar.gz archive, it is possible to get an estimate of how large the extracted files are in total?
1
vote
1answer
47 views

How to access Flash drives in CLI mode?

I have fedora 20 64bit and for unknown reason I cannot boot on graphical mode. I have very important files for my project there. How can I copy those files to my USB flash ? How can I find my USB in ...
1
vote
1answer
72 views

Simplest way of hashing passwords with multiple different hash algorithms [closed]

I have a large list of plaintext passwords stored in a file pwds.txt and would like to obtain the hashed version of these passwords under various different hash algorithms. I want one file for each ...
6
votes
3answers
501 views

how do I remove all files in a folder except just some specified files?

I want to remove all files in a directory while leaving just some specified files, they don't have anything in common by name. How could I achieve that? For example, the file names I want to keep ...
3
votes
1answer
2k views

How to grep the output of cURL?

I need to retrieve the expiry date of an SSL cert. The curl application does provide this information: $ curl -v https://google.com/ * Hostname was NOT found in DNS cache * Trying ...
0
votes
1answer
44 views

Background a process and execute something with one command

Probably it would be easier to do just with a script, but I wonder why can't I do that with one command. What I have tried so far: $ (ls >/dev/null &) && echo $! 3135 $ (ls ...
1
vote
1answer
213 views

How To Send Terminal Commands To Remote Server After Connecting Via putty? [closed]

In order to listing all batch files and finding the required file from a directory, I am using windows script to connect to the linux server. I can able to connect by passing necessary parameters but ...
3
votes
3answers
51 views

How to see manpage of previous command?

For example if I did a curl -F 'clbin=@some-image.jpg' https://clbin.com. How do I man curl easily?
0
votes
0answers
27 views

Output of `iw list`: phy_x corresponds to what interface?

I have 2 interfaces wlan0 and wlan1. When I want to see the modes that support my cards I do iw list and I see phy0 and phy2. How do I know what information corresponds to what card? In other words, ...
0
votes
2answers
46 views

can I use logical operators to remove all files that matches with one and/or other pattern in a single line?

I want to remove .txt or .csv files in a single line. What I have in my directory tachomi$ ls file1.csv file1.sql file1.txt file2.csv file2.sql file2.txt I only want .sql files so I want to ...
2
votes
1answer
116 views

shutdown program doesn't terminate after scheduling a shutdown

I'm having a bit of trouble with my home server (running Debian 7.7). When trying to schedule a shutdown, the following occurs: serverbox:~ $ sudo shutdown -h +10 Broadcast message from ...
0
votes
2answers
38 views

One SSH session one script multiple terminals no X [closed]

I have read other posts asking the same question in the answer was, run your script and have it like this: #!/bin/bash xterm -e command The problem is that I don't have X installed on that server, ...
1
vote
1answer
51 views

Adding files to .tar from directory

Is there a way to add files to .tar file in one directory from an another directory? And at the same time list the content of the tar to see if its added. I only found ways to add files if its in the ...
1
vote
1answer
33 views

Checking permission for files

Is there any way to check/find files and directories that only I created and check their permission?
0
votes
0answers
67 views

iw dev <iface> connect <essid> doesn't connect

I am trying to connect with the by the command line to the Wifi I have up on my AP with hostapd and no password and it's not working, the command doesn't have any effect. My AP doesn't have password ...
1
vote
1answer
22 views

Maintain the path in installable UnixAPI

I am developing an API in Unix environment for virtual machines. Most of the modules are developed in python. I have few questions on this. Inside the API I am using absolute path like ...
0
votes
1answer
43 views

Make python module as an installable API

I am developing an API in Unix environment for virtual machines. Most of the modules are developed in python. I have few questions on this. I want to make this as an installable API, I mean to ...
3
votes
2answers
149 views

Basic steps to develop python API in Unix environment

I am developing an API in Unix environment for virtual machines. Most of the modules are developed in python. I have few questions on this. I have the file extension as abc.py. I would like to make ...
2
votes
1answer
82 views

How to run a program that has its own command line within a shell script program

I need to write a shell script to automatically run a set of files through an existing program ~1000 times. The program I'm trying to run them through is accessed through command line as follows, then ...
0
votes
1answer
33 views

How do I immediately put a drive to sleep (without changing its power setting configuration)?

Within GNOME's "Disks" utility there is the option to immediately put a drive into sleep / standby, which spins down the platters. I would like to do this on my servers before pulling hot-swap drives ...
2
votes
1answer
29 views

Saving a list in a specific format

Is there any way I can save a list in a output.txt, but without using the text editor to make so that: before each output there should be the command used that made the list ( list -l, for example ...
1
vote
2answers
28 views

ls for decreasing order in combination with another command

I know there is the ls -r command for listing in a decreasing order. But is there any simple way to do it with a combination with another function by only using ls and not its arguments?
1
vote
2answers
62 views

What can I do if bash stops echoing?

One of the applications I use at work sometimes screws with my bash and so I don't see my own input anymore. I.e. $ echo foo foo $ becomes $ foo $ I incorrectly tried to run stty -echo which ...
1
vote
3answers
55 views

How to access temporary file straight after creation?

I've script which is connecting to remote host via SSH, creates temporary file and executing the following command: Calling system(mysql --database=information_schema --host=localhost < ...
0
votes
1answer
434 views

grep: input file 'X' is also the output

I use ubuntu 14.4, and attempt to redirect the output of grep command to a file, but I keep getting this error: grep: input file 'X' is also the output I've searched for this issue and just found ...
5
votes
1answer
141 views

Why does BASH process substitution not work with some commands?

On occasion process substitution will not work as expected. Here is an example: Input: gcc <(echo 'int main(){return 0;}') Output: /dev/fd/63: file not recognized: Illegal seek collect2: ...
3
votes
1answer
127 views

How to create a deterministic tar.gz using git-archive?

Creating a git repository for testing. ~ $ mkdir somefolder ~ $ cd somefolder/ ~/somefolder $ git init Initialized empty Git repository in /home/user/somefolder/.git/ ~/somefolder $ echo test > ...
0
votes
2answers
194 views

What are the meanings of different Unix commands? [closed]

I am running Ubuntu 14.04 on my machine. I am new to Linux and feeling lost when I see different command line commands (or what exactly are they called?) like sudo, apt-get, mkdir, -R, -n etc. while ...
2
votes
1answer
32 views

Confused about piping commands from find to commandX?

I have a script, run.sh, that looks like this: #!/bin/bash FILES=$(find corpus/ -type f) for i in $FILES do ./individual.sh $i done It runs without problem. I want to do away with the run ...
3
votes
1answer
125 views

What is the purpose of those special characters in the sed command?

I found this bash command that creates a directory tree in your console window. I find it quite useful, but I don't really understand how all of the special characters work. Could someone help break ...
3
votes
3answers
160 views

Sorting directories by last modified date/time of the same-named contained file

Is it possible, using grep, find, etc, to sort a list of directories by the last modified date of the same-named file (e.g., file.php) within? For example: domain1/file.php (last modified 20-Jan-2014 ...