Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [command]

One or a set of directives issued in the *nix environment to get information, change the state of something or to execute something. In other words: To gain an objective.

3
votes
1answer
127 views

Printing short latex snippets

Is there a way to quickly (render and) print short latex snippets like single equations? Something similar to echo "Some text" | lpr like make-latex-image "$\frac{some}{equation}$" | command-to-...
2
votes
1answer
56 views

Get Unix to Tell Me The “x similar ones”

Often if I am doing something in the terminal I will mistype something and enter something unintended. If I type int as a trivial example, it tells me Command 'int' not found, but there are 18 ...
2
votes
1answer
46 views

How can I sort blocks of data of varying length on a field in each block

I have an RDF file with blocks of data of varying number of lines delineated by < and />. Within each block, there is a field identified by name="some name". I need to sort the blocks on the ...
2
votes
1answer
1k views

How to start an application as GNOME would by command line?

How would I start an application (by launcher) the exact same way as GNOME would, in a command line interface? I want to set some environment variables. I know I can check the launcher file for the '...
2
votes
1answer
178 views

Using alot MUA with nottoomuch-addresses

I try to use the MUA alot to work with the nottoomuch-addresses.sh script for auto-completion of addresses within a lot like described in: http://alot.readthedocs.org/en/latest/configuration/...
2
votes
1answer
629 views

How to active tabs on windows by terminal? wmctrl doesn't have option available

I'd like improve a script of mine that uses firefox to perform tasks. I need activate a window and a tab with a specific name. For example, the window name could be Mozilla Firefox and the tab http://...
1
vote
1answer
37 views

Is there any way to open the menu without using panel in Cinnamon?

Main Cinnamon menu is the default menu applet on Linux Mint Cinnamon, and as far as I understand it can't be run without the panel. Is there any command for opening the menu?
1
vote
1answer
22 views

Original Centos 6 version

Is there a command on Centos 6 that tells me which version was originally installed? I have yum updated to 6.9. But is there a way to find what version was originally installed before any yum updates?...
1
vote
1answer
48 views

How to create a new command and how to view the code for commands

I don't exactly know the difference between a script and a few pages mention that there is almost no difference between them but I do wonder why to execute a command all we need to do is type its name ...
1
vote
1answer
1k views

How to use ClamAV to scan the memory

How can I only scan the computer RAM for viruses using the ClamAV command clamscan? I already tried, because I found it on ClamWin forum: clamscan --memory But it seems, that the Linux version does ...
1
vote
1answer
1k views

Use aliases as custom commands in terminator

I am using a terminator layout to start multiple terminals, and would like to call an alias at each terminal start which is defined in my .bash_aliases (called by both .bashrc and .profile). ...
4
votes
0answers
139 views

gnu screen: automatic session on split

Inactive region appears after 'split' command in gnu screen now. You must go to the new region and type :screen. Only after that shell session appears in this region. Is it possible to make new ...
3
votes
0answers
60 views

How little work could `/usr/bin/cd` or `/usr/bin/wait` do and still be conforming?

Can the executables with the same names as shell builtins get away with doing a lot less "work" than the shell builtins do? For instance, could the fg executable just exit abnormally immediately? ...
2
votes
0answers
56 views

Stop a process when another process starts

I was setting up Bumblee with primus to switch between my discrete/integrated GPUs using the Arch Wiki as a guide when I saw this: Note: Since compositing hurts performance, invoking primus when a ...
2
votes
0answers
84 views

iotop. Don't remove exited processes/threads from the list

When run # iotop -ao, a process/thread disappears from the list if the process exits and the data on it is lost from the list. How to make it stay on the list?
2
votes
0answers
121 views

Combine multiple PSCP commands?

I need to transfer multiple folders from my server to my pc. I'm currently using a command like: pscp -r user@ServerIP:/public_html/folderA "C:\folderA" && pscp -r user@ServerIP:/public_html/...
1
vote
0answers
15 views

How do I enable listing of zsh commands as you type

on one of my machines while setting up zsh I seem to have accidentally enabled a pretty useful feature. when I search through command history it actually lists all the matching commands as I type. How ...
1
vote
0answers
107 views

Why does this rsync command running in a cron fail?

Why does this rsync command running in a cron fail and how to debug it and fix? unset SSH_AUTH_SOCK && unset KRB5CCNAME && rsync -hvru -e "ssh -p 34503 -i /root/.ssh/...
1
vote
0answers
42 views

How to modify blended video durations with a -filter_complex command argument in ffmpeg

Building off the solution provided in this thread, I'd like to know how to make simple modifications to a complex command argument which uses ffmpeg to interweave two videos by dissolving them into ...
1
vote
0answers
15 views

Automated logout of present session to refresh group commands?

So, I'm looking at automating a setup of service instances with AWS. AWS allows you to run shell scripts on instance creation. However! I've run into one little snag. I want, on initial ssh into the ...
1
vote
0answers
144 views

Ways to provide arguments to a command executed by `bash -c`

In someone's reply to one of my posts (which I forgot), I remember bash -c "somecommand \$1" bash $somevariable instead of bash -c "somecommand $somevariable" I saw this example again in findutils ...
1
vote
0answers
49 views

Find terminal launch command of an application

I've successfully installed Quartus II 13.0 on my Linux Mint 18 Sara. But I can only launch it through the Desktop shortcut. I'd like to know how to find the command I should use on the Terminal so I ...
1
vote
0answers
67 views

Shell command audit for a single user

What is the easiest way to log all the commands ran in the all different shells (bash, zsh...) by a certain user to a file, syslog or somewhere else?
1
vote
0answers
41 views

What's the difference between starting a service by “/etc/init.d/noip2 start” and Starting it directly from /usr/local/bin?

I'm curious since if you look at an Init.d script, The content just seems to be "start this program located in this directory". Is there any difference between The two commands (I'm not talk ing ...
1
vote
0answers
210 views

How can I create an exfat partition that can be mounted without root?

I am using "mkfs.exfat /dev/sdb1" and it works beautifully, except only a root user can modify the contents. I have looked through all of the options I can find for mkfs and cannot figure this out. ...
1
vote
0answers
161 views

How can I copy/move the same x files from one directory to another?

I have multiple directories with a few thousand files each. Each directory contains files with the same names, but with different extensions. I would like to move x files each from these sets of ...
1
vote
0answers
35 views

run .jar program to read from 2 file and calculat the result to another file

i need to ran this ideacalc.jar to read from file1 first key hex and from file2 second key hex and send result to another file3 than to help about an command linux for this i have java in /root/jre/...
1
vote
0answers
464 views

mapfile and redirection issue

I would like to redirect the output of a command to input of mapfile. I'm doing this and it's working: xls2csv -x $files -W -q | sed '/^$/d' | grep -v '^The' > lista.txt mapfile -t titulos < ...
1
vote
0answers
37 views

Command to print the CPU/RAM usage during the duration of another command/script

I am doing some performance testing on a tool I wrote consisting of an elaborate set of python scripts, yml files, etc. I have been using the time command before running my primary python script so I ...
1
vote
0answers
22 views

Command mapping utitly

I need a way to alias commands depending on their directory. One of the use case is to be able to call different version of ghc-mod from Emacs depending on which project am working on. I can't see set ...
1
vote
0answers
720 views

Email not received with mail command from terminal in CentOS

I am trying to send mail with the following command: echo "Hello" | mail -s "Hello" myaddr@mydomain.com and than checking the exit status as: echo $? which outputs 0 Of course myaddr and ...
1
vote
0answers
92 views

Where does basictex install command line tools

I'm interested in using LaTeX as I prepare my first scientific paper. I've installed basictex and have been using it through texlive. I'd like to start using the basictex command line tools. I don't ...
1
vote
0answers
49 views

How to determine all files that were created by a command

I want to know what files were created during execution of some shell command.
1
vote
0answers
662 views

How can I find out the IP address from which a user logged in?

We have two RHEL 6.4 64-bit boxes in our environment. They are accessed remotely via putty. The password of user ABC on one RHEL box is shared by multiple users. User ABC logged into server from ...
1
vote
0answers
534 views

Automatically Rename File if there's a Duplicate Filename

I have a command that creates montages of images. Sometimes I want to save multiple montages from a series of images in a folder. The montage will be saved as output.jpg. But if I create another ...
1
vote
0answers
179 views

alias Not able to execute source command

I am trying to define a following alias in my .aliases file. alias sett 'cleartool setview viewXYZ_!*; cd /path_dir1/dir2/; source ./env/script-name' I use it as sett myview on commnd prompt when I ...
0
votes
0answers
26 views

Easier way to run remote and monitor remote commands

I'm currently leveraging Ruby in a docker image to run some commands on my local Linux system via SSH and Tmux. However, this isn't feasible since I can't figure out a way to actually monitor the ...
0
votes
0answers
13 views

curl command - any option for site RDW and site SDB

I have an ftp command and i want to change it and use curl instead, but i am not able to find any options for site RDW and site SDB. Is there a solution? My ftp command is similar with: ftp ...
0
votes
0answers
29 views

How can I edit sudoers file if I have lost permissions despite providing root password?

While working on ubuntu, I have edited sudoers file and allowed myself to run only mkdir, cd command. Now I am unable to execute, install any command. Even visudo is not working despite providing root ...
0
votes
0answers
36 views

Which is the command who execute all file manager in Ubuntu or Debian?

I working in a custom bash command for open all files(*.*), the command who i make in bash is named "open". This is the content of my bash command file named "open": #!/bin/bash xmessage -center "...
0
votes
0answers
27 views

What is the purpose of the -t (--truncate) option of ddrescue?

When specifying an output file without specifying a logfile, the output file will be truncated anyway. How exactly is using ddrescue -t /dev/devicename outfile functionally different from ordinarily ...
0
votes
0answers
37 views

Command to change the port of the audio output device

Here is my machine: ,g$$$$$$$$$$$$$$$P. OS: Debian 9.8 stretch ,g$$P"" """Y$$.". Kernel: x86_64 Linux 4.19.0-0.bpo.2-amd64 ,$$P' `$$$. Uptime: 49m ',...
0
votes
0answers
52 views

Print percentage (%) of files used by a command

I'm building docker images to be used in CI/CD pipelines by other developers. After the image build is complete, I run a few commands to do some test coverage. I'm curious if there's a Linux command ...
0
votes
0answers
20 views

How do I know if a device is still responsive?

An internal optical drive sometimes ceases to work on an external SATA adapter, connected via USB. If I connect it, it sometimes freezes forever (until powered off). What is a Linux command that ...
0
votes
0answers
129 views

Disable commands in Alpine Linux

I want to attempt to increase the security of some Alpine Linux Docker containers which run Nginx and other servers. I would like to disable commands like ls, cat, ed or sed, so that they are ...
0
votes
0answers
55 views

gtk-options command not found but the manual is there

I am trying to use the gtk-options command but it says command not found. But when I use the man command on it I get the manual. So it should be installed. I used the find command to find it on my ...
0
votes
0answers
210 views

How do I keep a log of all commands and how long it took

I know I can currently run time ls and get the time it took to run that command. I can also output that to a file easily. How do I automatically do this for every command?
0
votes
0answers
161 views

Differentiate between normal file and a command file and get the version of them

I writing script to list the following details of all the files inside a folder or directory which the user gives as input File Name Absolute Path Created Date Modified Date Accessed Date Size ...
0
votes
0answers
155 views

How to manage any command access privileges on debian linux

I am using Debian 7, and my desktop is xfce. I want to achieve managing any command on Linux. For example, executing /usr/bin/xfce4-taskmanager command would not require sudo privileges so any user ...
0
votes
0answers
93 views

How do I force a command to be run on local login?

I was wondering how do I force a command on login of a linux system? (debian 7). This is for a 2FA authentication command. I am asking for a local login.. not ssh.