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

learn more… | top users | synonyms (1)

1
vote
0answers
169 views

Copy files to parent directory using relative pathnames [closed]

If I'm in the current working directory of oxford. How would I copy outline.doc, and place it into the sample_dir directory using relative pathnames? I've tried cp outline.doc ../outline.doc
2
votes
1answer
232 views

Why did this command delete every package?

I was trying to get a Windows program to run on PlayOnLinux and after it didn't work I went to remove Wine with this command: sudo apt-get remove --purge wine* and without thinking I agreed ...
0
votes
0answers
78 views

RHEL & SUSE 2014 CPU & storage benchmarking tools

I have hundreds of Linux servers that we need to benchmark the CPU & Storage on. RAM & Networking would also be good. If possible I would to avoid installing a large suite, but not totally ...
2
votes
2answers
157 views

View contents of magnet URL via command line?

Is there any way to view the contents of a magnet URL using command line? I've tried aria2c which can view the contents of a torrent file but doesn't seem to show contents of magnet URLs.
1
vote
2answers
49 views

How to locate a file in a directory

How can I locate a file using locate in CentOS under a specific directory from terminal? Locate search the whole database!
0
votes
1answer
83 views

How to get list of urls from a URL recursively with filtering

I want to get list of URLs that contains vimeo.com from a web site recursively by a command , so that I can pipe it to vimeo_downloader.sh. I prefer to use wget, but also I'm happy with other ...
0
votes
0answers
48 views

Unix gunzip decompression [closed]

So this is a very annoying problem, I have a file in the Linux terminal ERR091571_1.fastq.gz And I run gunzip on it to decompress the file... gunzip ERR091571_1.fastq.gz But all that happens is ...
1
vote
2answers
67 views

How do I get the shell on the screen?

I'm completely new to Linux. I've googled but I can't find the keyboard shortcut command for this anywhere. I tried Ctrl-Alt-F3 from the graphical desktop, but it takes me to a login screen. Back on ...
0
votes
3answers
418 views

Telnet on Linux Server

I want to know if it is necessary to have telnet enabled on both sides of machines to get telnet connection. Here's the issue: I am trying to telnet some public IP on port 80 from a Linux web server ...
4
votes
1answer
46 views

POSIX usage standards for requiring at least one optional arg

So, I'm writing a CLI for an API, and I ran into a point where one of the commands support has two optional arguments, id and fields I want to know how to show that these arguments are optional, BUT, ...
5
votes
1answer
378 views

What exactly are commands? How to identify? [duplicate]

I want to know what exactly are Linux commands? & how to identify and locate them?
2
votes
5answers
343 views

Listing files greater than particular timestamp in file name?

I have a directory in linux which has a list of log files where log files get auto generated if some job runs. Each log file gets appended with the timestamp like "JobName_TimeStamp" UPDATED: ...
1
vote
0answers
89 views

Changing KDE's mouse theme and buttons settings from a shell script

I'm trying left handed mousing, and I want to be able to easily switch between right handed mode and left handed mode. There is a utility for Windows called SwapMouseButtons that allows to bind a key ...
3
votes
0answers
296 views

Read out pulseaudio volume from commandline? (I want: “pactl GET-sink-volume”)

I want to read out the volume level I can set with pactl set-sink-volume $SINK $VOLUME Is there an easy way to do that? As easy as the hypothetical pactl get-sink-volume $SINK ? (What I'm ...
3
votes
1answer
81 views

How does SSH display the message “The authenticity of host .. can't be established”?

I wanted to trace down the system call used by ssh to output this warning message: > ssh root@abcde The authenticity of host .. can't be established. If the message were sent to stderr or ...
0
votes
2answers
202 views

Unable to telnet public ip on port 80

We are facing a communication problem between the public and our private network. We have a Linux based web server behind a firewall and an internet router. As part of some integration, our web portal ...
14
votes
1answer
308 views

Is there a way to search manpages for typical use scenario?

I have a relatively small brain, so there is a limit to what I can store up there. I have been using Linux semi-pro-amateur for a few years and still I am amazed at how little commands I know. Simple ...
1
vote
1answer
42 views

With mv, possible to put a time dependence on files mv'ed?

Let's say there's a specific time and date I have in mind. All files last edited before this date I want to keep in the directory but all files that have been edited since this date I want to mv ...
2
votes
1answer
78 views

Getting a list of WiFi networks nearby when the adapter is in AP mode

I am trying to get a list of wireless networks nearby while the adapter is acting as an access point but iwlist returns the following error: $ sudo iwlist wlan0 scan wlan0 Interface doesn't ...
0
votes
2answers
245 views

An alternative to `xdotool type`

Is there an alternative to xdotool type "a string" It will be more useful if it is not an X11 app. Because X11 apps seem to be more vulnerable. Note: I will not use it in a terminal window. So ...
0
votes
1answer
663 views

Proper escaping of double quotations for curl post data?

I'm trying to test out a server, by sending it JSON data and reading the response. I need to POST data like {"item":"value with spaces"} but when I use curl I find that it sends the backslashes as ...
2
votes
1answer
45 views

Play a sound file slower or faster

How can you play a sound slower or faster? That would be useful for listening carefully one audio passage or to listen fast forward to find a concrete passage. Is there something with the play sox ...
2
votes
3answers
89 views

Standard and portable way to send email from console?

What is the most portable or standard way to send an email from the console or a script on Linux, and possibly Unix?
1
vote
1answer
54 views

How to modify rngd's default command line?

I need to perform the following... rngd's default command line should be modified to add --no-tpm=1 rngd is a daemon that feeds data from a random number generator to the kernel's random ...
1
vote
1answer
40 views

Is there a command which creates a temporary file containing the arguments passed to it?

I can paste the contents of a file into a command using cat and backticks: ls `cat filenames` Is there a way to do the reverse - to turn a string into a (temporary) filename? gcc -o cpuburn `uncat ...
1
vote
3answers
91 views

How do I shutdown the system after a particular process exits

I am downloading some software; I can see the pid of the download process with top. Let's say it's 1001. How can I make it so that my computer shuts down after process 1001 exits?
6
votes
4answers
129 views

Is there a tool for summarizing what all commands do?

So I understand that there are man pages for getting the documentation when the internet is unavailable, or when you need advanced uses, but what if I'm offline and I don't even know what tool I need ...
1
vote
1answer
95 views

Displaying server information at login prompt (Ubuntu)

I'm wondering if there's a way to customize the Ubuntu server login prompt. Currently it shows the following: Ubuntu 13.10 fw tty1 fw login: _ I know there's /etc/motd for the message of the day, ...
2
votes
1answer
41 views

How can I partition and format my disk to an accuracy of “LBA” by commands?

How can I partition /dev/sdb into /dev/sdb1 and /dev/sdb2, and then format /dev/sdb1 to exFAT ( or FAT32 ) from LBA=1 to 2097152 by commands? ( LBA=0 is reserved for MBR )
0
votes
3answers
109 views

Applying different permissions to files vs. directories

Sunny answered the question above in this post, The answer was given as No need for scripts. // Directories: find . -type d -exec chmod XXX {} \; // Files: find . -type f -exec chmod ...
0
votes
0answers
31 views

How to halt a command while it's running? [duplicate]

I want to know how to halt a command while it is already running. My need to do this is that I was going to update my system (Fedora 20) as usual, so I ran the command sudo yum update and it started ...
5
votes
1answer
288 views

Command line to burn DVD+R DL media on Linux?

A Plextor PX-750A on a Linux system has made many DVD+R DL coasters while trying to burn an 8GB DVD .iso file with growisofs and the Schilling cdrecord program. I tried growisofs first: growisofs ...
2
votes
2answers
383 views

show entered new password in unix “passwd” command

Is is possible to run the passwd command with an option to show the newly entered passwords? By default it doesn't show what I type and I don't want this. [dave@hal9000 ~]$ passwd Changing password ...
3
votes
2answers
42 views

tail display whole file and then only changes [duplicate]

My Linux version is 2.6.32-47-server (gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5.1) ) #109-Ubuntu SMP Tue May 7 02:17:05 UTC 2013 I am currently doing a tail -f file and life is good. But that only ...
1
vote
1answer
30 views

backup kmail in command prompt

How to take kmail backup mails from command mode as GUI mode got crashed in fedora12? Found the location of mails, But how to take backup to another system to configure?
1
vote
3answers
122 views

How to return from root log-in to my user log-in?

I'm using SuSE Linux Enterprise and I know that there is a command su root for changing to root log-in. But what about the other way around? If I prefer to return to my user account, how to do it? ...
0
votes
1answer
263 views

Proxy server with authentication not working at command line

I'm running Debian 6 in a VM on a network that requires Windows authentication to a proxy server before it can run any http/https/ftp connection. I've tried: export ...
0
votes
1answer
45 views

Set alias which doesn't send specified text? [closed]

EDIT I set a alias task in ~/.bashrc. The following: alias join="clear; screen -ls; screen -rx [<ID_OF_THE_RUNNING_SCREEN> quit]" If i the task join is executed, the following has to ...
1
vote
0answers
64 views

Error mounting shared folder for KVM Solaris guest

Followed this guide on how to set up a shared folder between a KVM Host(Ubuntu 12.04) and Guest (Solaris 10 Sparc). On the last part of the it requires you to mount the shared folder and typed in this ...
0
votes
1answer
153 views

Nagios : How to monitor windows host from linux “by command line”?

I need help to monitor windows host using command line in Nagios. As we can monitor Remote Linux host by NRPE (check_nrpe)using command line as : /usr/local/nagios/check_nrpe -H localhost -c ...
3
votes
1answer
642 views

Crop SVG drawing to canvas size in command line

I have SVG images produced by PlantUML, which has some parts of drawing outside of canvas. It makes it difficult to use such images and I need to crop drawing to canvas size. As I produce UML diagrams ...
1
vote
0answers
26 views

Is there a way to execute the second-to-last command that started with a given string? [duplicate]

In a project with different makefiles: $ make -f foo1.make ... ... $ testing testing ... ... $ !ma make -f foo1.make Good! But then if I by accident do: $ make -f foo1.make ... ... $ testing ...
0
votes
2answers
33 views

env command shows 3 times same path

When i run env it shows 3 times /usr/bin under PATH . Same for every path under PATH title. For example - my scala bin directory shows 3 times . However, in my .bash_profile, it is written just one ...
2
votes
1answer
101 views

Move extension-less files with mv

I have a folder with images(png, bmp, jpg) and extension-less files. I cant figure out how to move only the extension-less files. They are all random numbered files.
11
votes
5answers
527 views

Is there a more succinct alternative to piping to wc for counting files in a directory

If I do ls -1 target_dir | wc -l, I get a count of files in a directory. I find this a bit cumbersome. Is there a more elegant or succinct way?
2
votes
2answers
84 views

A combination of uniq and agrep?

I have a file full of long SQL queries, one per line. I need to create a list of unique queries, but most of the queries include parameter values that make using an exact matching tool like uniq ...
4
votes
2answers
271 views

“tree” command output with “pure” (7-bit) ASCII output

The "tree" command uses nice box-drawing characters to show the tree but I want to use the output in a "code-page-neutral" context (I know that really there's always a code page, but by restricting it ...
0
votes
0answers
86 views

Strange message at Debian login. What does it mean?

In an attempt to learn more on the command-line I added Debian-7.4-Standard to my Acer-Aspire-One laptop. I am not sure as to what I did exactly, but after I managed to install the non-free firmware ...
5
votes
7answers
523 views

Can I avoid enter key in cp -i?

I often need to selectively archive a long list of files using cp -iar, or similar, and to speed up the process I would like to press just one key instead of y or n followed by ENTER on every file. In ...
2
votes
2answers
484 views

Unable to remove the files from an usb drive (neither by dd /dev/zero nor by rm -r)

I have a flash usb drive and up till now it has worked well. Recently I recorded iso to it using dd. Now I want to delete it. $ lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT ....... sdb ...