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

learn more… | top users | synonyms (6)

6
votes
7answers
913 views

Problem with spaces in file names

I want to do something repeatedly on a list of files. The files in questions have spaces in their names: david@david: ls -l total 32 -rw-rw-r-- 1 david david 13 Mai 8 11:55 haha -rw-rw-r-- 1 david ...
0
votes
2answers
34 views

Disable and Enable Internet without disconnecting wifi

I need a way to disable and then enable internet access via command line while still remaining connected to wifi.
-1
votes
0answers
15 views

Modify Value Tags in xml file by command shell script [on hold]

mapred.tasktracker.map.tasks.maximum 2 The maximum number of map tasks that will be run simultaneously by a task tracker. mapred.tasktracker.reduce.tasks.maximum 2 The maximum ...
2
votes
1answer
1k views

Disable all Unity keyboard shortcuts using the command line

I would like to know how I can disable ALL keyboard shortcuts via the terminal. I know you can disable them by going to: system settings>keyboard>shortcuts but I want to disable them via terminal. ...
0
votes
1answer
15 views

Unable to locate package libssl-dev

I got this error while try to implement the aes c program in openssl please help me to solve this problem : fatal error: openssl/aes.h: No such file or directory #include <openssl/aes.h>
103
votes
5answers
88k views

How can I get octal file permissions from command line?

There is a chmod command to set file permissions, but can I get file permissions in octal mode (such as 755) from the command line?
0
votes
1answer
28 views

How do i install less css compiler?

I just installed less css compiler using npm. Now thelesscfile directory is /usr/local/bin/lessc . i'm not clear what i need to change in lessc file and how to understand that compiler has been ...
11
votes
3answers
4k views

What is the command to open the shutdown dialog?

I would like to use a gesture to shutdown/restart my computer and I need to know the command that launches the shutdown dialog:
0
votes
1answer
22 views

sudo nautilus results in “cannot open display” error

$ gksudo nautilus Failed to connect to Mir: Failed to connect to server socket: No such file or directory Unable to init server: Could not connect: Connection refused (nautilus:6072): Gtk-WARNING **: ...
0
votes
4answers
51 views

Using grep in /etc/passwd to fetch list of users and system users, discriminating both

I want my grep to print a user list from /etc/passwd, and I've studied /etc/login.defs' minmax values for the ones I want my grep to fetch: # Min/max values for automatic uid selection in useradd # ...
6
votes
3answers
4k views

How to completely restart script from inside the script itself

I'm setting up a shell script with menues and sub menues, options, etc. But on each menu/submenu/etc, i need a "Go back to main menu" choice. I've already got the menu set up and it works fine, but i ...
12
votes
3answers
3k views

How to do: underline, bold, italic, strikethrough, color, background, and size in Gnome Terminal?

How to do: underline, bold, italic, strikethrough, and color in Gnome Terminal? Bold Italic u̲n̲d̲e̲r̲l̲i̲n̲e̲ s̶t̶r̶i̶k̶e̶ ̶i̶t̶ ̶l̶i̶k̶̶e̶ ̶i̶t̶s̶ ̶h̶o̶t Color background font < (its mono ...
1
vote
1answer
26 views

FIND command to find files and exclude one subdirectory

I want to find the *.mxf and *.MOV files with One Directory which are older than 14 daysbut i want to exclude one sub directory named as Secure within this search. here is my command , which i am ...
0
votes
2answers
36 views

Command to copy only folder with files

I have this types of folders folder A | -folder A | - 3files folder B | -folder B | - no files child folders A and B have same name of parent folder A or B. Parent ...
4
votes
1answer
217 views

Is it possible to view Google Chrome bookmarks and history from the terminal

Is it possible to view Google Chrome bookmarks and history by using command line?
15
votes
7answers
48k views

How to get GPU info?

I'm looking for a command that would give me the same info as cat /proc/cpuinfo Except for the GPU (type of the chip and memory, frequency)
3
votes
1answer
51 views

Replacing string in a file

I wrote the following command: rpl -x'.txt' '0 ' '-1 ' /home/administrator/temp/myText.txt However I get an error message: Usage: rpl [options] old_string new_string target_file(s) rpl: error: no ...
0
votes
1answer
42 views

How can i change a file permision to “execute like a program”?

I want to install aptana studio, with the terminal, but, to install it, I need to execute the .zip, so, how can I change the permissions ? ( if it is possible with the terminal please )
2
votes
4answers
263 views

Parse lines with specific pattern out of file

I have a file that looks roughly like this : [25]:0.00843832,469:0.0109533):0.00657864,((((872:0.00120503,((980:0.0001 [29]:((962:0.000580339,930:0.000580339):0.00543993 ...
0
votes
0answers
16 views

Trying to compile/install gnuradio

john@john-Latitude-E6420:~$ sudo apt-get install gnuradio [sudo] password for john: Total Linux newbie. What is wanted for [sudo] password for john?
0
votes
1answer
66 views

Installing YADR on Ubuntu 14.04 error - prezto: old shell detected

I have a fresh install of Ubuntu 14.04 on VirtualBox, and I am trying to install YADR (https://github.com/skwp/dotfiles), which works really well on Mac OS X. However, after I finished installing and ...
0
votes
1answer
28 views

Use tty without login every time

In the Ubuntu-based systems, from the desktop environment, it is possible to open several tabs from the terminal emulator without making a login every time: the user is already logged in for every tab ...
1
vote
2answers
135 views

Why redirection to a while loop doesn't print the messages?

Here is a shell code used to track changes in a file and output the content to the terminal: while read LINE do echo $LINE done < `tail -f /var/log/messages` It doesn't work, why?
0
votes
0answers
20 views

Cron Convert FFMPEG Problem [on hold]

FILE NAME - cron_convert.php chdir('/var/sentora/hostdata/zadmin/public_html/ctkdonline_com/cron/'); set_time_limit(0); include_once 'System.php'; include_once 'vendor/autoload.php'; $sys = ...
140
votes
4answers
584k views

How do I rename a directory via the command line?

I have got the directory /home/user/foo and I want to rename it to /home/user/bar. How can I do this in a terminal?
13
votes
1answer
596 views

How to build a simple chat using netcat?

I am currently working on a project and I have implemented a simple chat application using the netcat libraries. The client is prompted to enter port number and the command nc -l -p xxxx where ...
-3
votes
1answer
29 views

How to open a .py in terminal? [duplicate]

I'm trying to learn how to use Python (IDLE using Python 3.4) on my Ubuntu computer, but i dont know how to open/run a .py file from the terminal from the desktop.
1
vote
2answers
50 views

Only delete files but not folders with rm

I have a directory like this: <folder1> <folder2> <folder3> file1 file2 file3 What is the rm command like that removes only file1, file2, file3 but leaves folder1, folder2 and ...
0
votes
3answers
51 views

How to search through a man page?

I often want to search through a man page, however I am forced to either do: man <package> | grep <search> Or: man <package> > file.txt But there must be an easier way than ...
3
votes
3answers
87 views

Broadcast message from terminal to locally logged in user

Here is what I am trying to do. Kids are on Ubuntu box watching movies, youtube, etc. I am on my windows box doing whatever. Since kids have headphones implanted into their ears, I want to log into ...
3
votes
1answer
4k views

Ubuntu 12.04 - how can i have eth0 and wlan0 both active where eth0 is primary and wlan0 is just for internet browse

I have a box running Ubuntu 12.04. There i have eth0 which is used as local network no internet. But i have also in that same box wlan0, and WiFi availability. Now how can i have both interface ...
59
votes
7answers
5k views

What does `!!` mean in `sudo !!`?

I am a user of Ubuntu with not much experience and I have been using sudo. What does sudo !! do and how?
1
vote
1answer
4k views

No such command 'sip show peers' when using asterisk

i want to connect two soft phone using asterisk after configuration the sip.conf and iax.conf and extension.conf can't enter any order from cli example of the error: Connected to Asterisk 11.6-cert1 ...
2
votes
0answers
28 views

Execute prelogin scripts for SSH

I would like to know how I can execute a local server script, for instance send a mail using mailx, when a ssh session is opened, pre-login stage. When a ssh connection comes into the server, I ...
-2
votes
0answers
21 views

Running .command file without the request for a password [closed]

So I'm actually running OS X Yosemite, but I figure, it's a unix-like OS, so... I stumbled upon this answer here But it's complete, and utter bollocks, in no way helps. First off, where the heck is ...
0
votes
1answer
48 views

shell script executing on remote host

I want to run testcmd.sh on remote host (Testhost) using the following command: ssh test@Testhost 'bash -s' < /test/testcmd But I get the below error : !!!!!Running MASTERCMD!!!!! bash: line ...
0
votes
0answers
14 views

How to view progress of cp command in Terminal? [duplicate]

I prefer the CLI environment to the GUI environment, so I often use the cp command to copy instead of doing it through the Nautilus UI, however there is a slight downside to this as when copying large ...
0
votes
1answer
32 views

Replace /1/ with newline charecter [on hold]

I have a record like: "evSchema"\1\"UAT" "evSN"\1\"uadb" "evDirsep"\1\"/" "evRootPath"\1\"/work_area/APP_UAT/" "evSchema"\1\"RMS13" "evUser"\1\"STAGE" stored in a variable $record. I want to ...
1
vote
0answers
17 views

Remove/Hide Terminal window from custom Application List entry [duplicate]

First off, apologies if this is not the right place for this specific question, but new to both the site and the OS in question. -System Details- OS: Xubuntu 14.04 (xfce) Question: I have manually ...
2
votes
2answers
116 views

How can I copy the path to the currently opened file in gedit to the clipboard?

I am trying to write a custom command in Gedit which copies the currently open and active document's path(both upto parent dir & upto file) to clipboard, as I couldn't find any gedit-plugins or ...
0
votes
0answers
9 views

how to root Freebox server HDD?

I would like to rootmy freebox server (Freebox Revolution v6), in order to enter /and inspect /etc/and more. A matter of pure curiosity. So 2 questions actually : Launching terminal, browsing FS, ...
0
votes
2answers
34 views

How to install PgAdmin3 version 1.20.0 in Ubuntu 14.04

I try to install using PPA First, I add a link to a file repository source.list directory the /etc/apt/sources.list $ Sudo nano /etc/apt/sources.list deb ...
1
vote
2answers
71 views

How to paste the text selected from gui mode after switching into cli mode?

I have set up ubuntu-14.10 to boot up in text mode (cli) and I start gui with the command sudo service lightdm start then toggle between gui and cli mode with Alt+ctrl+F1 (to get into cli) and Alt Gr ...
0
votes
1answer
20 views

Upgrade from development branch to alpha release [closed]

I am currently on Xubuntu 15.10. The kernel details are: Linux goelpc 3.19.0-22-generic x86_64 GNU/Linux I want to upgrade to the latest alpha build. How can I do it from the command line? Running ...
3
votes
3answers
235 views

Is there any difference between run command in terminal & ALT+F2

For running direct commands, there are two ways. Either run in Terminal Or run from the "Run Command" dialogue (screen shown below) obtained from Alt+F2 Then, Is there any difference between ...
0
votes
2answers
70 views

why ls command shows the deleted files?

When I type ls in terminal of ubuntu, it shows the file that are present as well as the files that i have deleted? How to see the current files only? Why ls keeps record of deleted files? The ls ...
2
votes
5answers
854 views

Is there any command in Linux which does not make a system call? [on hold]

I was reading about system calls and I got a doubt whether any command runs without making even a single system call. If not then what is the command with minimum number of system calls? I used strace ...
21
votes
5answers
21k views

How do I download the command-line emacs instead of the GUI one?

I used sudo apt-get install emacs to download emacs. I expected the command-line emacs to start when I ran emacs but instead the GUI emacs started. How can I download the command-line emacs?
54
votes
15answers
41k views

Running a .desktop file in the terminal

From what I can gather, .desktop files are shortcuts that allow application's settings to be customized. For instance, I have lots of them in my /usr/share/applications/ folder. If I open that ...
0
votes
1answer
24 views

renaming files script error

I wrote code to change the name of bulk of file it should replace spaces with underscores and lowercase all the file name .. this is the code for file in *; do mv "$file" `echo $file | sed -e 's/ ...