Questions about using the command-line interface (CLI).

learn more… | top users | synonyms (5)

0
votes
2answers
171 views

ubuntu terminal & operator

What does the following command do: COMM1 & COMM2 and how is it different from: COMM1 && COMM2
0
votes
2answers
63 views

Wi-Fi browsing history

Is there a way of viewing a Wi-Fi network's browsing history? (probably using the command line) Is there a package which serves this purpose? My OS is Ubuntu 13.10
2
votes
0answers
975 views

Firefox warnings [closed]

I am getting these warnings while launching firefox from a terminal: (process:4049): GLib-CRITICAL **: g_slice_set_config: assertion 'sys_page_size == 0' failed (firefox:4049): GLib-GObject-WARNING ...
1
vote
2answers
73 views

Terminal engaged while using gedit or firefox [duplicate]

When I launch gedit or firefox from a terminal, the terminal is occupied(by occupied I mean no other commands can be run from the same terminal window) untill I press ctrl+c but it kills gedit or ...
1
vote
0answers
1k views

Upload a file to URL from command line [closed]

We can download a file using the following command line in Ubuntu: wget url Can anyone tell me how to upload file to URL?
2
votes
1answer
222 views

fish shell: “shopt -s dotglob” analog

I'm trying to migrate from bash to fish. What is the fish's analog to shopt? I'm trying to imitate this line from my .bashrc: shopt -s dotglob # for mv * see hidden files
2
votes
1answer
329 views

How do I copy top X files from a directory to another using terminal command?

I have a directory more than 1200+ files. How do I copy the top 1000 lines of that directory to another directory?
4
votes
3answers
13k views

Reboot a Server from Command Line?

How do I reboot a Ubuntu Server from the command line? sudo reboot now never seems to work for me. Because its a server, I don't have a window manager installed, so I can't do it from a GUI (which ...
0
votes
1answer
104 views

ubuntu 13.04 terminal wont read my .ini file

i get this every time i attempt to access it CommandLineParser::read_config_file(): couldn't open xboxdrv-mouse.ini the command I was using was sudo xboxdrv --config xboxdrv-mouse.ini it was for this ...
0
votes
3answers
152 views

How can I change my command line (bash) prompt?

i'm new to ubuntu .presently i'm using ubuntu 12.04 version.I want to know how to change terminal's displaying text. currently my terminal displaying the text.. narasimha@narasimha:~$ how can i ...
1
vote
1answer
96 views

why does the cursor freeze in terminals?

it's a pretty dumb question I've noticed that whenever I open any terminal, the cursor blinks about 9 or 10 times and then freezes is there a particular reason for this? What's the idea?
0
votes
1answer
43 views

`history` command failed to store the previously entered command

Any command(which maybe right or wrong) entered in the terminal are stored in the ~/.bash_history file and later these commands are displayed using history command. But history command failed to ...
1
vote
2answers
309 views

How delete files - based on date in filename

I have some folder with files with the names as "example_YY_MM_DD-HH.zip" and I have 3 backups per day. I need this: 1) For backups older than 1 week I need only one per day (at midnight '00' at HH) ...
0
votes
0answers
35 views

Problems in installing packages from terminal [duplicate]

Whenever I try to install any missing packages from my terminal by using the command sudo apt-get install (package name) It shows the following error: E: Could not get lock /var/lib/dpkg/lock - ...
1
vote
1answer
518 views

Sudo does not recognize my password anymore

The problem is happening on a remote server, so everything is done through ssh. I can login with my key, no problem here. I can change my password at will with passwd (which I believe shows that it's ...
0
votes
1answer
6k views

“No such file or directory” BUT the file actually exist! / Executable problems [duplicate]

I've been using Ubuntu (13.10) for a couple of months, and I really liked. But it crashed often and that's something that I didn't liked. I was able to run all my files in my terminal without any ...
2
votes
3answers
144 views

How do I find the starting and end block numbers of a file using terminal in Ubuntu? [closed]

Is there any command that will output the beginning and ending hard disk blocks of a file ? (Solution marked accepted) Update: The answers below solve the initial query. I thank 'em all. But I'm ...
0
votes
2answers
316 views

How to create a desktop shortcut for a command? [duplicate]

I use a dongle for using internet on my kubuntu desktop. But to use the dongle, everytime I have to run MobilePartner from /usr/local/airtel/MobilePartner using terminal. Is there any way I can create ...
0
votes
3answers
549 views

How to view the list of c library functions?

I'm a newbie in Linux programming. I found that the way to view the list of system calls in Linux via command-line is: man syscalls But now I want to view the list of c library functions, how can I ...
3
votes
1answer
192 views

What is the simplest command line instruction in Ubuntu to export a directory file list to a text file?

There is a folder consist of some different file types which most of them are font files. I use this simple command to export file names of Fonts folder to Output text file: ~/Fonts$ ls > ...
3
votes
1answer
534 views

What exactly is Busybox / Ash?

Really, what is busybox and ash? I have never seen a good explaination to what it is. I've used it and i know its a Linux shell, but I would like to get a real understanding of it.
-1
votes
1answer
75 views

Objective: understanding File permissions

I want to write a shell script that takes two arguments: username(usr) and filename(fname), then resolve and show permissions of the given user on the given file.
1
vote
1answer
770 views

How to replace strings in file without regex?

I need to replace some strings in files (from command line) but I don't want to use sed -i because my string contains lots of funny characters which need to be correctly escaped. Is there a way to ...
1
vote
1answer
47 views

Why does the MBR return a different offset than Ubuntu's commands?

~$ sudo /sbin/fdisk -l /dev/sda | grep sda[0-9] /dev/sda1 * 2048 234133503 117065728 83 Linux /dev/sda2 234135550 250068991 7966721 5 Extended /dev/sda5 ...
0
votes
0answers
47 views

Common Access Card remove coolkey

I installed coolkey to gain access to https sites using a common access card. For some reason Firefox wont execute the final step. In reading your help file, it states to use cackey instead of ...
1
vote
1answer
148 views

keyboard behaves differently under bash

When logged to other computer from windows under bash, putty maps keys properly but under other shells like sh or zsh keys like Delete are mapped incorrectly (to ~ character). Setting XTERM to ...
1
vote
2answers
195 views

Python through command terminal, creating functions?

I am new to Ubuntu. I formerly used to use python on windows, and now I am learning Ubuntu. When I open the command terminal, I type python and press Enter,the symbol (>>>) is shown and I am in IDLE. ...
3
votes
2answers
213 views

How to automatically execute a command in a terminal after a period without activity?

I've been looking for an option or script that executes a command after the terminal has been idle (that's no input nor output). The closest thing I've found is setting the TMOUT=seconds variable so ...
0
votes
1answer
98 views

Ubuntu 12.04 administrator how to write commands to run a py file as a startup with no terminal?

I am a administrator user, not root user. Currently I need to take the following steps everytime I enter Ubuntu: 1.enter /home/nan/goagent/local 2.double click proxy.py, then a dialog shows: ...
0
votes
1answer
314 views

Why environment variable disappears after terminal reopen? [duplicate]

I've tryed to add environment variable in terminal: loom@loom:~$ export DOOM=/home/loom/doom/ loom@loom:~$ echo $DOOM bash: /home/loom/doom/: Is a directory Then I've closed terminal and reopened ...
1
vote
2answers
436 views

How can I pipe out output to file from terminal without linefeeds?

I have below command which output the result as newlines in every key press. I don't want it to output to file as new lines instead I want it to send it to file without linefeeds. stdbuf -o0 xinput ...
1
vote
2answers
199 views

Setting a hotkey for connecting and disconnecting a network connection in KDE environment

Is there a way to set a hotkey for toggling connection through a network cable: Also if I have a command in command-line that can do this or a piece of C++ code that does this I can set a hotkey ...
1
vote
2answers
1k views

force format an encrypted/read only memory card

I had 1 GB memory card which I was using with my blackberry mobile. I suppose it was encrypted and read only. When is insert the memory card it shows the following file in it 9棥z.C6 pretty weird ...
0
votes
1answer
4k views

Double-click on .sh file to open terminal and execute series of commands in it?

I'm trying to double click on a file that does this: #!/bin/bash #Mount USB Jump, Copy files to it, Unmount it. [open terminal (so that I can see what 's going on)] pmount /dev/sdc JUMP sleep 2s cp ...
0
votes
2answers
63 views

replace multiple files with 1 new file

How do I replace a file called config.dat on multiple files across multiple directories? example: /var/www/site1/configs/config.dat /var/www/site2/configs/config.dat ...
1
vote
3answers
112 views

could not copy the folder with .txt file in it to another folder

I'm just trying to copy the folder present in /home/black/Desktop/linux to another folder present in /home/black/Desktop/ubuntu now what i did.cd /home/black/Desktop/linux now am there in linux ...
1
vote
1answer
114 views

Terminal word navigation/deletion

I'm a bit puzzled by the following keyboard shortcuts in Ubunutu terminal: CTRL + Left, CTRL + Right to navigate words ALT + Backspace to delete entire word at the left of the cursor I'm mainly a ...
1
vote
1answer
678 views

how to show GUI of ns2?

I have installed NS2 (network simulator 2.34) on my ubuntu 12.4. But when I execute the ns ns-simple.tcl in the terminal only the following messages have been shown without any GUI or schematic of my ...
0
votes
3answers
468 views

I can not pipe terminal output to file

While gnome terminal shows output of below command, it doesn't pipe it out to text file xinput test 5 shows output in terminal but xinput test 5 >> text.txt doesn't pipe out to file ...
0
votes
0answers
35 views

REMUSER by root

my server load stays constantly at 1.0 and above, there are a bunch of 9000's processes owed by root that take over the server with priority 20 and all of them have on the COMMAND column "remuser". ...
3
votes
2answers
129 views

how to block a process for certain time in ubuntu 13.04

I am running a automatic incremental backup in network, at that time if thunderbird is running on client computer then backup is not completed that's why i need to know if there is any command to ...
0
votes
0answers
44 views

How to fix Ubuntu booting to a command line after an update?

I have been running Ubuntu 12.04 off of a HP pavilion dv2000 for a while now, probably about a year or so. I've not had many issues other than not being able to properly install a graphics driver on ...
0
votes
0answers
37 views

create shortcut for enable second display

Is way to create shortcut (keyboard or desktop or best put to top menu) for enable/disable secondary display and change sound output? I have tv as second display connected via HDMI. When Is tv off I ...
2
votes
3answers
397 views

Can't install .sh file

OK, I know there are over 100 questions on this forum just like this one, I know because I've read every one of them, with no luck. I have downloaded a .bin file, extracted the contents into a folder. ...
0
votes
0answers
45 views

Wifi not getting activated after logging via terminal [duplicate]

I have an Intel HD GPU. After getting into recovery mode, when I do nomodeset I get a blinking cursor and then i press ctrl-alt-f1 to get terminal.The problem is that my wifi does not get activated ...
0
votes
2answers
359 views

how do I use upstart, instead of cron, to start a single instance of a job which should always respawn?

How do I script the following bitcoin/dogecoin/etc cpuminer command: /home/digger/cpuminer/minerd -o stratum+tcp://doge.pool.webxass.de:3333 -O <user>.<worker>:<worker_password> ...
0
votes
2answers
2k views

cron error: bad username

I've basically re-written the terminal output instead of appending a series of edits to this question: root@doge:/etc/cron.d# root@doge:/etc/cron.d# tail /var/log/syslog Dec 21 11:35:01 doge ...
0
votes
2answers
37 views

Problem adding shell to new user

After adding a new user. It's shell is not added to /bin/bash itstead it is added to /bin/sh i have to change the shell for every new user I add. If there is any way a new user added should be given ...
1
vote
1answer
272 views

How do I reset all GSettings key to their default values?

I want to reset all keys in the GSettings to their default values; preferably using a single command, or a simple bash script. How can I get that done?
0
votes
0answers
858 views

how to install mdk3 in ubuntu 13.04

Hi there I am currently new to Ubuntu and I have found out that someone else is using my wireless network I have seen a lot of videos in you-tube about how to kick off such nodes from a network but ...