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.
0
votes
0answers
11 views
Failed to execute the iscsiadm commands
When I am using the command:
iscsiadm -m discoverydb -t st -p 10.10.11.12:3260 -I be2iscsi.00:17:a4:7a:e3:34.ipv4.0 --discover -P 1
I am getting below error:
scsi host1: BC_207 : MBX Cmd Failed ...
1
vote
1answer
18 views
Failed in execute of “lsscsi” command [on hold]
I can't execute the "lsscsi" command in linux, I keep getting "command not found" when I try to run it.
How can I solve this issue?
1
vote
1answer
55 views
Can command be executed without a shell?
I am developing a binary executable program command to execute programs and return the output into a text field.
The parameters to the command involve the command itself as it would be typed on the ...
0
votes
0answers
37 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 ...
5
votes
2answers
89 views
Converting ext2 to ext4
I have a file-server with three disk's that are ext2 file-systems, is it possible to change/convert these to ext4 which have much improved characteristics, while data is on the disk's and without ...
4
votes
1answer
150 views
ZIP files with size limit
Is there a command to create multiple ZIP files based on file size? So that in a folder of 600 files, totalling 1 GB, the command will create 4 zips roughly equal to 250mb.
There's a similar command ...
2
votes
1answer
32 views
External command to force ofstream to flush
I have a C++ ofstream that, for performance reasons, I don't flush from inside the code. However, occasionally I need to inspect the file contents. Is there a Linux command that will force the ...
3
votes
3answers
51 views
When to use XPG* version of a command?
I occasionally do work on an older Solaris machine whose default version of grep is non-POSIX-compliant. This causes problems in my rc files because the default grep on the machine doesn't support ...
0
votes
0answers
20 views
Sed replace with command output [duplicate]
I'm trying to replace text with the contents of a file and I'm getting errors.
This works:
cat /tmp/test | sed -e "s/__TEST__/$(cat pass)/g"
But this one doesn't
cat /tmp/test | sed -e ...
1
vote
5answers
58 views
Difference between 'ls -ltr abc*' and 'find ./ -name abc*' command? [duplicate]
To search a file in a directory, I found two commands as below:
ls -ltr initialfilename*
find ./ -name initialfilename*
Sometime, first command gives me the search result but sometime I used to ...
3
votes
2answers
139 views
How to check if vim is installed?
I want to know how to check whether a command is installed.
Specifically, I want to alias vi to vim on all machines where vim is a valid command. And I want to keep my *rc files generic. But some ...
0
votes
0answers
17 views
How to find last x minute internet usage
How can i find out the last X minute download bandwidth in megabyte? i want to use it within a bash script.
0
votes
3answers
37 views
What is meaning of {} + in the exec command?
I want to know the meaning of {} + in the exec command, and what is the difference between {} + and {} \;.
To be exact, what is the difference between these two:
find . -type f -exec chmod 775 {} +
...
0
votes
0answers
11 views
What shell extension recommends packages if command is not found and how to update it? [duplicate]
I know this question might sound a little strange but i really don't know how to describe it better.
On my Debian system I have a shell extension for bash that, whenever I enter an unknown command, ...
0
votes
0answers
22 views
Recover a folder just delete [duplicate]
I just delete (was my error) a folder my_folder by doing $ rm -R my_folder, how can I recover it?
0
votes
0answers
9 views
Verify par2 on different media?
Is there an easy way to point to a par2 index file in one place and have it use a different base directory for the files to verify?
Here's what I'm up to:
I copy a bunch of stuff to backup media.
...
1
vote
1answer
155 views
lsof: no pwd entry for UID
I'm trying to run command lsof |grep services on my Solaris 10 to find any processes that have big files which are using up the disk space but i got a bunch of lines saying:
lsof: no pwd entry for ...
11
votes
2answers
812 views
What is DISPLAY=:0?
What is DISPLAY=:0 and what does it mean?
It isn't a command, is it? (gnome-panel is a command.)
DISPLAY=:0 gnome-panel
4
votes
3answers
172 views
Get last part of string after hyphen
Is there a simple command line to extract the last part of a string separated by hyphens? E.g., I want to extract 123 from foo-bar-123.
-3
votes
1answer
226 views
does curl -Ls 'http://pastebin.com/raw.php?i=r2jYDZaw' mean it will not output anything?
Does the s in -Ls mean that nothing should be outputted?
If so what will be the output then?
0
votes
0answers
15 views
using man command for a system call close [duplicate]
So if we have an executable program called close on linux, and theres also a system call close. How can i generate a command that makes sure i get the manual for the system call "close" rather than ...
1
vote
3answers
108 views
What is the reason for having numbers within the brackets of a function ? [duplicate]
I have seen on many occasions a name of a function (frankly speaking I just call it function because of it typical appearance, they are though sometimes named commands or system calls but I do not ...
0
votes
2answers
46 views
Create own launch command in Fedora
How can I set alias for gnome-calculator so I can launch it just by typing calc. And how can I create my own command for my own application?
I need it to work in this command prompt:
I know that in ...
1
vote
1answer
22 views
Sort packages by size one-liner as function
While surfing web I've discovered nice one-liner that suits my needs well
expac -s "%-30n %m" | sort -hk 2 | awk '{print $1, $2/1024/1024}' | column -t|
However all the functional needed I got used ...
1
vote
1answer
24 views
Command to get the id-port no: - & last three strings?
Can someone please help me with the one liner command to get the blocked and italicized only from running something like...ps -ef | grep java | cut -d: -f20- | cut -d ' ' -f20 |
Desired Result
...
1
vote
0answers
33 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 ...
4
votes
5answers
291 views
Showing all pages at once with man command [duplicate]
Say if I run the command man who, I have to keep pressing space or enter to show all content. Is there a way to show all of the content at once?
1
vote
2answers
47 views
I changed my PATH and now for every command it returns “command not found” [closed]
I am on MacOSX, using the iTerm and I'm very new at all of this. I am trying to prepare for installing bioinformatics programs, so I made new directories for "Scripts" and "Programs" and wanted to add ...
0
votes
2answers
135 views
What is difference between pbrun and sudo command?
What is difference between pbrun and sudo command?
I have seen people executing pbrun sudo su - what this means?
I know su -, it will try to switch to root user.
What speciality pbrun gives to sudo ...
1
vote
1answer
42 views
How to switch user with pre-configured credentials in SSH Terminal after logging in as standard user
I was wondering how to execute a command file where: After logging in as a standard user, I want to switch user to "username" with password being "password", I can successfully execute the command.txt ...
3
votes
3answers
66 views
how to remove accidentally created '~' and '..'
I'm using wget to download some webpages and I used the -P option without knowing that it wouldn't expend .. or ~. So I found I've created them after running the program. Now the problem is, how do I ...
1
vote
0answers
13 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 ...
0
votes
1answer
121 views
What does the option -C achieve in ls output?
In the man pages it says:
-C list entries by columns
However, I really cannot notice any difference between the output of ls or ls -C, could someone explain this to me?
0
votes
1answer
289 views
command to clean up old log files
I was trying to automate some auto cleaning of my Ubuntu System, with Cron Jobs
I tryed to simplify this:
sudo find /var/log -type f -name "*.1.gz" -delete
sudo find /var/log -type f -name "*.2.gz" ...
0
votes
2answers
64 views
How can I open a man page in a new terminal window?
I'm wondering if anyone can help me with a workflow issue. I sometimes open up a man page for a command, take note of several command options and parameters, go back to the command line and then input ...
1
vote
1answer
31 views
Snapshotting a Linux container in Debian
I know that the command $ lxc-snapshot exists somewhere, but it seems that it's not available on Debian? Forgive my Linux ignorance - but how do I get a hold of this capability? Is there an ...
0
votes
1answer
53 views
linux + top command
I run the top command on my linux machine
and I see that vim command take like 99.5% CPU
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND ...
1
vote
3answers
403 views
Execute command in another terminal and closing it without killing command
For closing terminal without killing script/command we use & operator at last while calling command. Like:
gedit &
Here I used gedit as an example command
Same thing I want to do on ...
1
vote
1answer
21 views
why jobs doesn't list commands from script
I have a script that runs some programs in the background, but after running it, they are not listed by the command 'jobs'. Why is this?
(./m_prog -t m_prog1 m_config) &
(./m_prog -t m_prog2 ...
1
vote
1answer
142 views
What does this `xhost …` command do?
Please help me understand this line of command:
xhost +SI:localuser:lightdm
in reference to the answer in this post and also suggest if there's a better way and why that's needed. I couldn't make ...
0
votes
1answer
37 views
Extract audio from video in Thunar custom actions
Thunar custom actions can be used to convert media files by adding a simple command like
avconv -i %f %f.mp3
I would like a command to extract aac sound from mp4 and flv files with a Thunar custom ...
0
votes
1answer
98 views
Command not working anymore in Thunar custom actions
I used to create a Thunar custom action as presented here in order to extract audio without transcoding from selected (multiple) video files .
The command to be added in Thunar custom actions list ...
2
votes
2answers
552 views
How to permanently enable scl CentOS 6.4?
I installed a newer version of devtoolset (1.1) and was wondering how I would go about permanently setting these to be default. Right now, when I ssh into my server running CentOS, I have to run this ...
-4
votes
1answer
42 views
What is “jobs” commmand in Redhat Linux [closed]
What is jobs command in Linux and how to use it?
Please give some example.
0
votes
0answers
35 views
Is there a large performance difference between find and find2perl
Is there a performance difference between find and find2perl? I work for a hosting company and I was told that our admins prefer us to use find2perl over find. Supposedly this is because find is ...
1
vote
2answers
195 views
Read Command : How to verify user has typed something
I am a beginner in Bash so please bear with me. I'm trying to create an if else statement to verify that the user has entered something. If they have it should run through the commands, and if not i ...
5
votes
2answers
65 views
Merging/Combining 2 text files according to numeric field
I have 2 text files
file_1:
14595|Age 35|Salary xx|Position ax|2013|Info 1|Info 2|Info 3|Info 4|Info 5
14649|Age 30|Salary xx|Position az|2015|Info 1|Info 2|Info 3|Info 4|Info 5
file_2:
...
0
votes
1answer
45 views
Linux bash commands in android 4.1.2?
Is there a way to run linux bash commands in android (particularly 4.1.2 rooted or not rooted)? Will it void the warranty from phone manufacturers?
1
vote
3answers
389 views
What does “>” do vs “>>”? [duplicate]
I am currently doing preparation for my GCSE computing controlled assessment on Linux. I type ls > list and ls >> list into the command line, but it does not do anything. I have googled it ...
1
vote
2answers
142 views
The command 'cp' can only used on block device?
According to my last question I think we can't use 'cp' to copy file to the tape device or device like '/dev/lp0'.But I still don't understand why.
To make this question simple enough,just tell me if ...