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

learn more… | top users | synonyms (1)

6
votes
0answers
897 views

How to use terminal to access iCloud Drive when Finder is not running

I would like to access iCloud drive from Terminal in order to create an emergency backup. Unfortunately, my installation of Mac OS Yosemite is not operational, so I am using recovery mode to create my ...
4
votes
0answers
200 views

Replace a image in a PDF using command line

I need to process some PDF files. The task consists in exchange a given image file by another. My first problem is how to replace a PDF image from command line in a batch process. Next I'll try to ...
4
votes
0answers
485 views

Multiple wget calls in a single session?

I have the following code to retrieve a page from a website that needs authentication (it uses Sungard Higher Education authentication): wget --delete-after --save-cookies cookies.txt --keep-session-...
4
votes
0answers
8k views

fatal: bad ownership or modes for chroot directory component “/”

I used to be able to connect via ssh with the user I have created but now I keep getting: "Write Failed: Broken Pipe" and I can only connect as root In the ssh auth.log I get the following: ...
3
votes
0answers
44 views

Dbus: Logout other user

I'm new with dbus. I know how to logout current user from terminal using dbus messages dbus-send --session --type=method_call --print-reply --dest=org.gnome.SessionManager /org/gnome/SessionManager ...
3
votes
0answers
344 views

How to change block device names, e.g. /dev/sdc to /dev/sdb?

Example of why this might be desired: I connect a block device, which shows up as /dev/sdb, and mount it. Later that device gets removed without being unmounted. The block device is reconnected, but ...
3
votes
0answers
2k views

Can't login via telnet in ddwrt

I have a Gateworks laguna 2388 router with dd-wrt firmware installed in it. It was working fine till i change "http_passwd" nvram attribute. I wanted to change the web GUI password via telnet. So I ...
3
votes
0answers
214 views

Convention/standard on using curly braces around options

Man page for tar in arch linux SYNOPSIS section starts with: tar {A|c|d|r|t|u|x}[GnSkUWOmpsMBiajJzZhPlRvwo] [ARG...] I perfectly understand that in this situation it means that exactly one of them ...
3
votes
0answers
470 views

Xorg Setting checking from Command Line

How do I determined, whether Xorg is using Xinerama, DDC and Reduced Blanking ?? Just adding few options in Xorg.conf is sufficient ? If I have to check from command-line, then how can I check ...
3
votes
0answers
99 views

Importing hdhomerun channels into MythTV

I am setting up a MythTV backend, to stream Live TV from. I scanned for channels with the hdhomerun_config utility, and got this However, I really don't have a clue how to import it into MythTV.
2
votes
0answers
20 views

How to do with “ndd” for get “ethtool” equivalent on Solaris

I've to restore a large file from a NAS backup on Solaris 10 ZFS. I'm using this following command: rsync -av user@xxx.xxx.xxx.xxx:from/NAS/files/system to/solaris/files/system And I've got this ...
2
votes
0answers
54 views

how to capture the latest kernel version from grub.conf

how to capture the latest kernel version from grub.conf ( in case default=0) for example the latest kernel from the file is 2.6.18-409.el5 # all kernel and initrd paths are relative to /...
2
votes
0answers
26 views

Sometimes my zsh messes the end of lines

I have this strange issue, that I cannot find the source of, nor a solution to solve. "Sometimes" my zsh gets messed up and start display end of lines in a funny way: As you can see, the newlines ...
2
votes
0answers
750 views

m: command not found

just tried to compile the R-language from sources but my make aborted with m -f liblzma.a make[4]: m: Command not found I eagerly searched the web but it seams it's impossible to find the command ...
2
votes
0answers
247 views

GLIBC not loading even after source compilation

While I am installing chef , I am getting below error. [root@centos Tools]# chef-server-ctl reconfigure /opt/opscode/embedded/bin/ruby: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by /...
2
votes
0answers
95 views

I can't delete a file from EFI System Partition

I'm trying to delete a file since I installed rEFInd instead or Grub, I want to remove Grub or just remove "grubx64.efi" from my ESP, to make it disappear in the rEFInd boot screen. I can mount my ...
2
votes
0answers
139 views

Unable to run chmod, chown, and even ls on a folder

I searched the net and tried to apply answers to similar problems but none worked so far. There is a folder named ocrpaylasim under /home/bnet path. This file belonged to bnet user before and was ...
2
votes
0answers
318 views

Manual creation of NetworkManager connection file fails (Error: Unknown connection)

Objective: I am trying to set up a 3G connection using NetworkManager 0.9.4 via command line. I have previously succeeded (see this question) by setting up the connection through the nm-applet (GUI in ...
2
votes
0answers
305 views

Why reading from and writing to framebuffer shows no effect ?

I read a very short description of how to make a Screenshot by making use of the file which represents the framebuffer /dev/fb0. in order to write the screen content: cat /dev/fb0 > file in ...
2
votes
0answers
119 views

Show connected printers in CUPS

Is there a way to list the available/connected printers in CUPS using the command line or better yet using the CUPS API ? I already tried lpstat -a but it only lists the installed printers and not ...
2
votes
0answers
388 views

Unable to create a configuration directory for [FishShell] Please set the $XDG_CONFIG_HOME variable

I'm getting this error when starting fishshell: melanie:~ melanie$ fish fish: Unable to create a configuration directory for fish. Your personal settings will not be saved. Please set the $...
2
votes
0answers
191 views

Open a program (VLC) and move it to the foreground

On a Mac, specifically, when I use the VLC command line to open a video file, it opens in the background by default. How can I instead move it to the foreground whenever I run the command to open a ...
2
votes
0answers
191 views

How do I recursively apply default ACLs of a directory to its descendants?

If I have a directory with default ACL entries assigned to it, but some or all of its descendant files and sub-directories have access or default ACLs that do not agree with those defaults, how do I ...
2
votes
0answers
56 views

Close All Piped Commands if one close

I'm running at least 3 commands (with progs) using pipes. For example program1 bla bla | program2 blabla | program3 bla bla Is possible to close all programX PIDS automatically if at least one ...
2
votes
0answers
80 views

How to make grub Command Line Default?

I'd like to make grub by default load it's command line instead of automatically booting from it's list of options generated by update-grub. How can I do this?
2
votes
0answers
102 views

rlwrap-like tool with command autocompletion

I am often using rlwrap sqlite database.sqlite to browse an SQLite table. It works great but I would like to have a tool that would create an index tables (and possible its columns as well) and let me ...
2
votes
0answers
150 views

Why does the kernel boot faster with less memory allocated?

This is not a important question, I'm just curious. Something strange happened, which isn't quiet clear to me: In the kernel command line, the amount of the memory can be set statically with the mem=...
2
votes
0answers
327 views

Character encoding issue with my linux install?

I just installed Ubuntu 12.04.4 64 bits, all seemed to be ok, when I started to work on console I noticed: that I couldn't get some accented characters typed in to the console, for example, if I ...
2
votes
0answers
2k views

rsync multiple files to multiple directories

I need to move a large number of files that need to go to different directories i.e. file1.mpg to /mnt/s3/directory1/file1.mpg file2.mpg to /mnt/s3/directorya/file2.mpg file3.mpg to /mnt/s3/...
2
votes
0answers
58 views

Multi-file simultaneous downloader with live statistics for all files

(I recently asked the question "Console download accelerator that downloads *multiple* files simultaneously" and learned about lftp, an excellent program which can download multiple files ...
2
votes
0answers
345 views

Can “grub-emu” make any changes to my system?

Can "grub-emu" make any changes to my system? I understand that the command "grub-emu" opens a GRUB emulator. However, since it loads the configuration files used by the "real" GRUB, I am a little ...
2
votes
0answers
122 views

Command-line file reader (like “less”) that can tell the line where the user stopped reading

[Context] I'm developing a little app, as a hobby to learn ncurses, that catalogs and lists and searches within a set of documents (for now, they are the HOWTOs from TLDP). The most tricky part of ...
2
votes
0answers
202 views

How to emulate a KWin effect by command line?

I would like to apply the Toogle Invert Effect when I start my system. So, I need to know how to call this KWin effect using the terminal. OBS.: I'd tried xte "keydown Meta_L" "key i" "keyup Meta_L",...
2
votes
0answers
1k views

Using Image Magick Convert to Change Channel Depth?

I want to change an image depth of bitmap for testing purposes. Right now I am trying to get a 2 bit palette image, and a 4444 Hicolor image. I have a true color bitmap. I used the below command ...
1
vote
0answers
6 views

How can sipsak simulate a call with usrloc?

Building on a stackoverflow question, how can I actually get the device to ring? thufir@mordor:~$ thufir@mordor:~$ sudo sipsak -vv -s sip:6003@localhost No SRV record: _sip._tcp.localhost No SRV ...
1
vote
0answers
26 views

How can I get a translated string from Google Translate with curl etc?

How can I get a translated string, e.g. English to Spanish, from Google Translate with some command line tools like curl? I looked at the page source but Google Translate doesn't seem to include the ...
1
vote
0answers
22 views

open several directories from the terminal as tabs inside a single file manager window

I want to open several directories from the terminal as tabs inside a single Nautilus window. If Nautilus cannot be used then I want to know what GUI based file explorer can open directories in ...
1
vote
0answers
36 views

Converting .odm to .odt or .pdf - command line

I saw this question: Converting .odm to .odt, where someone shows to convert an .odm file into .odt or .pdf. Is there also a way to do this in a command line? I have an Open Document Master file, ...
1
vote
0answers
27 views

Find recursively files that have a percentage of lines in common

Is possible to do this? I want an output where i have only files that are 50% the same of others or have 20+ lines in commons. I'm trying to isolate commons functions in *.java files. Thank you!
1
vote
0answers
33 views

How to read the password of a user and implement it in the subsequent commands?

I am writing an api call that requires the user id and password of the user. I can get the user id but how to get his password and supply it to a variable? Here is the api command curl -u $user:$...
1
vote
0answers
26 views

What happens if I try to use a device driver from the shell and it is already being used by the kernel?

This is the situation. I'm new to embedded linux and I'm trying to test some commands for the LED driver LP5521. The board I have has a RGB LED with this controller IC and it is being initialized with ...
1
vote
0answers
56 views

How to use xpra like xvfb-run?

xvfb-run allows me to open a display and run a graphical app and when the app finishes xvfb closes too. for example xvfb-run --auto-servernum --server-args="-screen 0, 1920x1080x24" nw script.js ...
1
vote
0answers
37 views

How to configure maven plugin from command line?

I'm trying to configure JaCoCo maven plugin from command line insted of using pom.xml. I have managed to execute prepare-agent so far with command: mvn -X -Djacoco.destFile=./coverage/jacoco.exec ...
1
vote
0answers
27 views

What command is gimp using to print?

All programs/commands I attempt to print certain PDFs with (lpr, lp, Okular, Evince, Xpdf) print solid black pages. The one exception is Gimp, which allows me to import PDFs one page at a time and ...
1
vote
0answers
42 views

How do I go about downloading 100,000 torrents?

I want to download a large number of torrents on Ubuntu, while keeping a positive ratio on the torrent tracker. Since various torrent clients won't support that many active torrents (from what I ...
1
vote
0answers
29 views

Is there a common way to render out pdf files in a human-readable format on the command-line and keep the general layout?

I'm imagining something deeper than pdftotext (part of poppler-utils), because what I was imaging would be possible, would be to retain most of the layout on a virtual page, e.g. pipe this through a ...
1
vote
0answers
25 views

How to connect to wifi using nmcli with a static IP address and password?

There is info on how to connect to ethernet(eth0) with nmcli using a static IP, but nothing on how to connect to wifi (wlan0)? This sets up a connection profile but how to add the password and ...
1
vote
0answers
39 views

Get uptime for multiple VM's

Is it possible to get the uptime for other VM's that are on the same cluster without the need to ssh?
1
vote
0answers
33 views

Generating 'ASCII-art' banners with arrows

I recently discovered figlet which generates ASCII-art banners. Joy! ... but, alas, I want a banner with an arrow on it. Now... $ figlet unicode → arrow _ _ //\ ...
1
vote
0answers
32 views

ncurses subversion repository browser

Does anyone have a smooth repository browser they can use on the command line? I'm finding the svn ls command to be a bit tedious. I've considered using a CLI browswer such as elinks to brows the html ...