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

learn more… | top users | synonyms (6)

0
votes
1answer
38 views

Is it possible to have a unique theme for Vim in Ubuntu Server

I recently started managing my own Ubuntu Server and I'm constantly using Vim to edit my files and I was wondering if it was possible to install a them to use overtime I login to my server? The ...
1
vote
2answers
25 views

Unable to exit TUIs due to F10 opening the File pull-down menu instead of quitting the program as meant to

I use applications such as Midnight Commander, and htop, however I have a problem when quitting, I am forced to either terminate the process, or to click on the quit button myself, if there is one, ...
0
votes
0answers
15 views

Command to move something to the wastebasket but not delete immediately [duplicate]

I know I can use the rm command in Terminal to delete something, but is there a more mild command which would move a file properly to the wastebasket as right-clicking on the file in a File Manager ...
1
vote
2answers
75 views

The foreground color changes after `ls` command

I change shell's foreground color with echo -ne '\e[1;31m' command but when I execute ls command the foreground color reverts back to the original previous color. This weird behavior doesn't occur ...
0
votes
3answers
37 views

Issue with folder permission [closed]

I created a bunch of files using the terminal. The file was assigned to the root and I am not able to edit them. Help! What am I missing? New to Ubuntu.
1
vote
1answer
22 views

Unity / gnome-terminal passing control keys

I'm trying to get a setup with GNU screen in gnome terminal that I'm happy with (emacs user). I really like having Ctrl+^ as my GNU screen command key (as it doesn't interfere with any emacs key ...
0
votes
1answer
34 views

Problems with unzipping openfire_3_10_2.tar.gz

While installing openfire got an error with unzipping the downloaded file that gzip: stdin: not in gzip format tar: Child returned status 1 tar: Error is not recoverable: exiting now When checking ...
0
votes
1answer
52 views

how to configure terminal in a text boot?

I use tmux in xterm and gnome-terminal.Configuring gnome-terminal's background and foreground is not an issue as it can be easily done through gui itself.Few things to mention: I can configure ...
0
votes
1answer
30 views

Cannot open gnome-terminal preferences window

After upgrading to Ubuntu 15.04, I can no longer access gnome-terminal preferences from edit > profile preferences. Things I have tried to no avail: Switching to another profile using terminal ...
3
votes
2answers
40 views

Why is my default shell from /etc/passwd not started by terminals in a Unity session?

I'm trying to set fish as my default shell. It's installed on the system through apt-get and is listed in /etc/shells: > which fish /usr/bin/fish > grep fish /etc/shells /usr/bin/fish I used ...
1
vote
0answers
49 views

Why is my shell slow after a while when I use git aware prompt and run git commands?

I am using git-aware-prompt in my .bash_profile on Ubuntu 15.4 like this: export GITAWAREPROMPT=~/.bash/git-aware-prompt source $GITAWAREPROMPT/main.sh When I am in one of my main repository ...
1
vote
1answer
43 views

Schedule shell script to display output in terminal

I have added a shell backup script to crontab, and it seems to run every night, but I currently need to check the target to see that it's worked. What would be much more helpful would be for the task ...
1
vote
0answers
19 views

Testing post-install scripts

I love to experiment with my Ubuntu GNOME 14.04, so there are many mistakes to be made and things to learn. Often I want a clean install, so I made post-install script. Question is: what is the best ...
8
votes
2answers
712 views

Why can I see the output of background processes?

For example, when I type ping 8.8.8.8 &, why can we see ping process working? And when I type find / -name '*test*' & , it's also seen on monitor. Why is that? Is it not really in background? ...
0
votes
0answers
30 views

How to fix Nautilus-Extension\Nautilus?

I've installed Nautilus-Extension. But It seems some problem with Nautilus and Nautilus-Extension. So,I've troubleshooted as per this but still I can't. I'm getting like this ! I have opened ...
2
votes
2answers
27 views

How to run yasm in ubuntu?

I recently have installed YASM but I cannot find any yasm in PC. Also, it was written that it would through terminal. However, I have no idea what it was about.
2
votes
1answer
39 views

Automatic Account lock/logoff script

I have 2 scripts created. The first one called "lock_logoff" and it does just that. It locks the account in the script and then logs them off. The second script unlocks the account. I got tire of ...
0
votes
1answer
34 views

Why does the Software Updater allow me to update the package list without authentication unlike in Terminal? [duplicate]

I have found recently that when running the Software Updater GUI it automatically, without asking for authentication, updates the local package list, but when running the equivalent in Terminal ...
0
votes
0answers
38 views

How to add samtools in the PATH permanently [duplicate]

I installed samtools executables within my bin directory under home directory. Installation works perfectly well. I am using Ubuntu 14.04 version and it has .profile and .bashrc in my home directory ...
0
votes
1answer
30 views

Replace text in file with variable using sed [duplicate]

I need to replace a string in a file by another string which is stored in a variable. Now I know that sed -i 's|sourceString|destinationString|g' myTextFile.txt replaces a string but what if ...
1
vote
0answers
22 views

How can I disable all command line access? [duplicate]

I make computers for a not-for-profit organisation. I don't want anyone to plug a keyboard / mouse / screen into it and be able to do anything on it. So there is a locked screen at launch, but you ...
-3
votes
0answers
25 views

How to check wether remote client is running firefox using ssh?

I want to login to client who is using firefox, i am using arp-scan to fing ip address and ssh to connect to respective client but i want to connect to client who is using firefox so how will i know ...
1
vote
1answer
34 views

Uninstall terminal [closed]

I ask here, because googling about is quite chaotic (you fall to 'how to uninstall via terminal). I wonder how to uninstall terminal ? Cause I want to add some hardness in playing with a delivered ...
-2
votes
2answers
107 views

how to search a word or text with in command prompt

For example i have printed a mysql big table from database on cmd which has 500 fields in it .How do i search for a particular word with in command prompt. I know grep is used to search strings or ...
0
votes
1answer
84 views

bin/bash: ruby command not found. Ruby not in sudo path

I can't seem to run any code on ruby with any text editor. This error is returned when code is run /bin/bash: ruby: command not found [Finished in 0.0s with exit code 127] [shell_cmd: ruby ...
0
votes
1answer
11 views

Process pasued but connection not terminated to files in locasystem

I am not sure whether this is the right place or not but as this is a question which needed a solution I am posting here. I have used kill -SIGSTOP 1234 command to pasue a process named as 1234 and ...
0
votes
0answers
25 views

Why bracketed paste mode is enabled sporadically in my terminal screen?

I use Ubuntu 14.04 and I have a weird issue with my terminal screen which is bugging me a lot. Could someone help me with it or explain me if I'm doing something wrong or non linux-way? I have some ...
3
votes
3answers
127 views

Write the output of multiple sequential commands to a text file

I try to Check the latest Firefox and want to get all hashes in one TXT file. What I try to do is: sha1sum firefox.tar.gz > sha.txt and I try also: md5sum firefox.tar.gz > sha.txt | sha1sum ...
2
votes
2answers
194 views

Is typescript for `script` command the same as TypeScript maintained by Microsoft? How to print using `ldr`?

Is typescript for script command the same as TypeScript maintained by Microsoft? How to print using ldr ? What exactly is typescript in relation to Linux/Ubuntu ? Searching Google, I find that ...
0
votes
0answers
14 views

Add current folder as one default path to look for executable [duplicate]

After building a project via make, there is normally an output/executable file in the current folder, for example a.out To execute that file we normally need to type: ./a.out or with some program ...
5
votes
1answer
133 views

What is UUID in virtual box?

When I create a Virtual Machine in command line using the following command: VBoxManage createvm -name <VM's Name> -register It returns: Virtual machine <VM's Name> is created and ...
3
votes
1answer
53 views

I want the date and time to be added in a text file whenever I open it

I was using windows 7,8.1, and 10 previously and there was an option in the Notepad that if I type .LOG at the beginning of the file (which is done only once), every time I open the notepad the date ...
0
votes
1answer
29 views

How do I access encrypted folders from the terminal?

I encrypted the whole hard disk (via encfs) on installation of 14.04, and I want to install an HP driver only installable from the terminal. But "cd" does not recognize any encrypted file directories, ...
-2
votes
2answers
63 views

Terminal command cd (change directory) directly

The directory Pictures is located at /home/mj/Pictures/ The Terminal window displays (meaning /home/mj/): ~$ In the "Ubuntu Documentation: Using The Terminal" it says: … use, "cd /var/www" to ...
2
votes
1answer
57 views

Code to send the contents of a text file into a terminal window [closed]

I'm looking for some code to be able to send the contents of a text file to the terminal window at the press of a button or through by typing an alias into the terminal. If I explain what I'm trying ...
1
vote
2answers
42 views

Terminal command cd (change directory)

In Terminal (Xubuntu) I enter: pwd Terminal reply: /home/mj In the "Ubuntu Documentation: Using The Terminal" it says: To navigate to the previous directory (or back), use "cd -" I enter: ...
2
votes
0answers
22 views

how to launch apps hidden from the launcher or panel

How do I launch an app in such a way that it does not show up in / is hidden from / skips the panel or unity launcher or xfce panel or kde panel etc? Apps like "stormcloud " weather app are a good ...
1
vote
2answers
28 views

Possible to add a command to be run when a currently running command completes?

When running time consuming processes in terminal, I like to add something like say "done" as an additional command so that I can get alerted when the current process ends. For example: $ ...
1
vote
1answer
27 views

Colored boxes on around the folder name in terminal

I gave local user to read and write permission to a particular folder using command chmod 777 /data/folder/ Now I am seeing a colored box hovering the folder's name which I really bugging ...
1
vote
1answer
22 views

Compressing ended up compressing home directory

So i was trying to compress lolok folder using 7z command : 7z a Documents/lolok/ But i forgot to create a name for compressed folder, which should be like this : 7z a cobas.7z Documents/lolok/ ...
1
vote
1answer
27 views

How can I use ZSH when I use sudo commands but not as default root shell?

So, I would like to keep bash as the default shell for root. But, I would prefer to use zsh, my shell, when I run sudo commands, and that sudo executes also the .zshrc in /root. For testing ...
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
1answer
30 views

Joining MP3's via commandline with background track

I'm already taking advatage of two command line utilities. I'm using ffmpeg to convert m4a to mp3, and then I'm combining a few mp3's into one large one using mp3wrap. The resulting file is something ...
1
vote
1answer
71 views

Are there any options of bash with which it is invoked?

I find that the default shell that I use when I start Terminal (with Ctrl+Alt+T) is /bin/bash. And running the built-in command type on bash as: type -p bash returns the result as: /bin/bash ...
0
votes
1answer
42 views

Couldn't Excute command line PostGIS pgsql2shp

I am using postgres 9.3 with postgis 2.1 on Ubuntu 14. When I tried to dump pgsql table using pgsql2shp, I get the following error. Error: pg_wrapper: pgsql2shp was not found in ...
1
vote
3answers
58 views

How to Zip and Unzip a directory and its files in Linux [duplicate]

I am a newbie in Linux.Whats is the complete process to zip and unzip a directory and its files.Please mention if any installation has to be done.
1
vote
1answer
29 views

Edit find command to exclude a file

So I made this script Convert videos recursively with handbrake. And it uses this command as an option find . -name '*.mkv' -exec rm -r {} \; But i made this new script, for removing audio streams ...
0
votes
1answer
25 views

error installing vlc through terminal [duplicate]

E: Could not get lock /var/lib/apt/lists/lock - open (11: Resource temporarily unavailable) E: Unable to lock directory /var/lib/apt/lists/ E: Could not get lock /var/lib/dpkg/lock - open (11: ...
0
votes
1answer
32 views

grunt-cli dont work

I have wasted 2 days on this already and i do not get it... so i have latest stable node.js, it works, npm works, nvc works. but when i try to install grunt i install grunt-cli, i instal grunt in ...
0
votes
1answer
15 views

Change framerate of mp4 video without reencoding using mp4box and piping

I'd basically like to do what this guy asked for. Using the lines of Mitch I get a perfect result. I'd now love to use the output of mp4box directly as input of mp4box again (to make one command out ...