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

learn more… | top users | synonyms (6)

0
votes
0answers
8 views

Move folders modified a day prior 6.30 p.m

I need to move folders which are modified a day prior 6.30 p.m. For example. The folders which are modified in Day 1 before 6.30 p.m should be moved to another folder. Please help me. Regards, Syed
0
votes
0answers
16 views

awk add certain colum if two columns are similar

First at all I apologize, but I am a newbie in scripting, and I try to learn something. I have a file which looks like this: 1 A 84.54 47355 1281 1 A 80.16 47355 761 1 A 81.63 ...
0
votes
1answer
88 views

Why does 'sudo java' change the user home directory to /root?

I have a program that needs to access a file in my home directory. Ubuntu will not allow this to happen due to the program not having root privileges. At first I ran this java command (which ...
0
votes
0answers
23 views

Problem with ssh connection

I can't connect to my vps via ssh-client on ubuntu and Putty(wine), but I still can connect to any other servers via ssh! Here is server-site tcp dump 18:58:39.886915 IP 192.168.255.253.45623 > ...
2
votes
2answers
11k views

How to install Netbeans 8.0.2 on ubuntu 14.x

I have netbeans downloaded from the netbeans.org site. This is the file name → netbeans-8.0.2-linux.sh I dont know how to install it on ubuntu 14.10 Is there any one can help me install netbeans on ...
0
votes
1answer
13 views

keep track of multiple terminals from shell script

I am writing a quick start shell script to automatically set up my development environment for a current project. However, none of the commands in the shell script can be executed after my server ...
0
votes
3answers
643 views

Which command should I use to open an MP3 file?

Which command should I use to open an MP3 file? For example, "abcd.mp3" hamza@ubuntu:/media/hamza/Elements/mmc$ cd abcd.mp3 bash: cd: abcd.mp3: Not a directory
21
votes
4answers
14k views

How to show ascii art at the top of the terminal when it's opened?

As you can see on this screeshot of Mik's Guake he have a statup message of ascii art when he opens it, and that's what I'd like to do, can someone help me?
1
vote
2answers
30 views

Unable to match a specific number with “grep -E”

Here I'm trying to search numbers ranging from 0 to 255, but some random numbers get matched instead. Examples are: 1335.0.1.234 or 241.92.88.103 Bolded are the numbers which are matched. ...
0
votes
0answers
20 views

Can't open Terminal

I have Ubuntu 15.04 and I've changed my device's name from Settings > Details while the Terminal was running. I closed the terminal to see if the changes occurred (to see if the [usr]@[devicename] was ...
1
vote
5answers
57 views

Terminal asks for password but does not let me enter anything (15.04)

Whenever I try to open steam or some other programs, it opens the terminal and asks for my password, but when I try to enter it, it does not type anything and pressing enter just says sorry, try ...
1
vote
1answer
99 views
+250

Subsetting a font from the command line and turning it into a webfont

I have a few web projects that link into various icon fonts (like FontAwesome and Glyphicons). These are great fonts but they include a lot of glyphs that I never use. ~65KB is a relatively big ...
0
votes
0answers
21 views

Start bash script from another script

I have two scripts /etc/init.d/script_1 and /opt/script_2. I need to call script_2 from script_1. In script_1 i write: /opt/script_2 And it works. But there is small option with script_2 - it must ...
3
votes
5answers
5k views

How to set CLI flags for Google Chrome?

Where can I set CLI flags for Google Chrome on Unity?
0
votes
1answer
33 views

read file names from files for command line

I want to run a program requiring comma-separated arrays of files as follows: program -input1 A.txt,B.txt,C.txt -input2 D.txt,E.txt,F.txt -out out.txt My bash attempt: I'm running command from a ...
2
votes
1answer
105 views

How to hide command line output

I understand that computers work faster if they don't have to output data to the user, so I'm wondering if there is a way to hide the printed lines in the Terminal, and eventually just print any ...
0
votes
0answers
14 views

Blueman terminal commands

I'm having trouble with blueman conflicting with my wifi drivers and want to create a bash script that turns blueman off, restarts network-manager and then turns blueman on. The problem I'm running ...
2
votes
1answer
36 views

Start new gnome-terminal with several tabs and wait after command is run

I want to start a new gnome-terminal window with some command in multiple tabs. Based to this question: gnome-terminal --tab -t "FOO" -e "/bin/zsh -i -c 'cd $(pwd); zsh -i'" \ --tab -t ...
1
vote
0answers
13 views

Split found files to run find -exec commands in parallel [duplicate]

I have a multi-level directory of jpegs that I want to optimise on a semi-regular basis (as things are added). The command I'm using jpegoptim is single-threaded so when I run the following, only one ...
1
vote
3answers
2k views

Vim cannot find syntax.vim

Recently, I needed to build Vim from source to use a plugin that required Lua interpreting. This worked fine on my laptop, but my tower computer is having some issues. Any time I run Vim, I recieve ...
2
votes
3answers
40 views

Netbeans desktop shortcut file not working in Unity launcher, Exec command works in term

I've been having trouble with the Netbeans desktop file generated by the netbeans install script. The file in question, as found in the /usr/share/applications folder, is very simple: [Desktop Entry] ...
0
votes
0answers
27 views

Uninstall software in linux [on hold]

I am new to linux and using it run CentOS. I want to know how to uninstall a software using make clean command.
0
votes
2answers
459 views

How can I get Subliminal to work and then integrate it with a file manager?

I have downloaded Subliminal which is a program that downloads movie subtitles.But there are several problems: (1) when I test it at the console with a movie that I know has an English subtitle, I ...
23
votes
4answers
22k views

How to know my GTK version?

I want to know my GTK version (i am working on Ubuntu 11.10) using a command line or any thing
42
votes
14answers
127k views

How can I create a select menu in a shell script?

I'm creating a simple bash script and I want to create a select menu in it, like this: ./script echo "Choose your option:" 1) Option 1 2) Option 2 3) Option 3 4) Quit And according to ...
6
votes
7answers
908 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
29 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
13 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
14 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
87k 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
26 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
18 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
50 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
35 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
209 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
49 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
262 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
61 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
134 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
17 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
582k 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?