General :: Determine If Login Via Ssh?
Apr 13, 2010
Just wondering if there is a way to determine if the user has logged in is via ssh or if they are sitting directly in front of the PC and have logged in that way.I was going to do it via the .bash_profile so once they have logged in the bash_profile is run and it will have a test to see if the user is logged in via ssh or 'direct' log in. but not sure how or if this can be done.
View 2 Replies
ADVERTISEMENT
Jan 20, 2010
I have cloned my linux OS onto a new hdd. Now even tho the system will boot, it directs me to the login screen and asks me to fix the location of the root dir because it is looking for /dev/disk/by-id with a very long serial #. I presume this is the old hdd serial #. How can I determine the serial # of the new hdd and change it in fstab? Is this the correct idea? Is it just......ls /dev/disk/by-id???
View 2 Replies
View Related
Apr 20, 2011
I'm interested in figuring out which programs on my machine are using swap, and how much each is using. I realize this can probably be done with top, but I am having trouble figuring how how.
What I've tried:
Start top
Press f (add column)
Press p (SWAP colum)
This adds a SWAP column, but the data doesn't seem to be correct. Top lists Firefox as using 582m of swap, but the header simultaneously reports that 0k of swap is being used.
Is there a better way to monitor swap usage?
View 2 Replies
View Related
Jul 2, 2011
How do I determine what sound card I have? How do I find out for sure what version of Linux I am running? I think it is 10.04 Lucid.My computer is a Dell desktop, pentium 4.
View 7 Replies
View Related
Apr 20, 2011
Firstly I would like to say that Linux is very cool, especially the CLI. I have been trying to learn how to do some things in Fedora after being told Fedora was a good distro to get my feet wet. I have run into some issues and cant seem to find any answers. What Linux utility can be configured to automatically save the current logs?
How does your Fedora get an IP number? What IP numbers has your Fedora been assigned since it was installed (based on the logs you have)? What command did you run to determine the IP numbers? What command would you run to determine the number of times a user successfully used "su"? What command would you run to determine the number of times a user unsuccessfully used "su"? Having some issues with the file system as your Fedora boots up.
View 5 Replies
View Related
Jun 25, 2010
server has stopped responding 2x the past week. can't authenticate locally, web servers are not responding, etc. reboot seems to resolve the issue temporarily, but it looks like a disk or controller failure.
View 2 Replies
View Related
Nov 13, 2009
We have quota system in home directory and there is binary aquota.user file.
How do i determine how much quota is assigned to a user?
View 1 Replies
View Related
Mar 14, 2010
How do I, in Ubuntu, determine what the formatting (e.g FAT etc.) of an SD card is?
View 2 Replies
View Related
Mar 23, 2010
How would I find out all the files a particular process accesses?
I am using Ubuntu 9.04.
View 1 Replies
View Related
May 18, 2010
Finding the process that is using a certain port in linux
I have an Ubuntu Server setup, where I'm trying to set up a daemon that wants to have access to port 8080. When I run the command, the error message says it's being used by another process. But which one, it doesn't say. How can I go about finding which program uses this port?
View 1 Replies
View Related
Sep 20, 2010
When CentOS boots up, it tries to determine the IP for a network device (eth0) and fails.
'Determining IP information for eth0... failed; no link present.'
I'm curious to know how, after booting up, I could set the IP information for a wireless device, wlan0, manually. Another way of putting this questions is: if CentOS is able to determine IP information for a network device on bootup, what settings is it configuring exactly?
View 2 Replies
View Related
Nov 16, 2010
We have two directories:
$ ls -l
total 8
drwxr-x--- 2 nimmy nimmy 4096 Nov 15 19:42 jeter
drwxr-x--- 2 nimmy nimmy 4096 Nov 15 19:42 mariano
I create one file in the first folder:
$ dd if=/dev/zero of=jeter/zero_file.1 bs=512000 count=1
1+0 records in
1+0 records out
512000 bytes (512 kB) copied, 0.268523 s, 1.9 MB/s
This is the output of du:
$ du -sh *
504K jeter
4.0K mariano
As expected, if I place a hard link of the zero_file. in the other folder du output does not change:
$ ln jeter/zero_file.1 mariano/zero_file.2
$ du -sh *
504K jeter
4.0K mariano
there is nothing in the filesystem that points to zero_file.1 as the original file. So how does du know to count zero_file.1 but not zero_file.2?It cannot be a timestamp comparison because all hard links share one inode; they'll have the same timestamp data correct?
View 3 Replies
View Related
Feb 11, 2011
Let's say I have a bash script called log.sh. In this script, I want to read in input from a pipe, but I also want to know the command used to pipe input into me. Example:
tail -f /var/log/httpd/error | log.sh
In the shell script, I want to know the command tail -f /var/log/httpd/error.
View 2 Replies
View Related
Jan 13, 2010
Is there a simple way to determine the CPU socket from the output of /proc/cpuinfo. Determining the type of processor is simple enough, but the processor I have (Celeron) has two different possible sockets. The output of /proc/cpuinfo is:
processor : 0
vendor_id : GenuineIntel
cpu family : 15
[Code]...
I've looked on the Intel processor finder web site with appropriate filters, but the stepping values do not appear to match anything.
View 1 Replies
View Related
Jan 19, 2010
I'd like to determine what process has ownership of a lock-file. The lock-files are simply a file with a specific name that has been created.So, how can I determine what process has a particular file open in Linux? Preferably a one-liner type or a particular Linux tool solution would be optimal.
View 3 Replies
View Related
Feb 27, 2011
As per these instructions, I got up to the end of the "Acquiring an Ubuntu filesystem" step (where it asks you to mount the newly created Ubuntu partition) and ran into a problem: The partition won't mount, as the file system type cannot be determined because I cannot remember the file system used during installation. Is there any command that prints the file system type of GPT partitions?
View 5 Replies
View Related
Nov 16, 2010
Multiple dirs full of mp3s All strictly encoded with exactly the same parameters (CBR 128kbps, Joint-Stereo, etc) Is it possible to determine the total playing time (to within ~98% accuracy) by some formula based on the total file size? I say ~98% accurate since ID3 tags do consume a small amount of space.
View 3 Replies
View Related
Apr 5, 2011
I m using SUN Server .
How would i determine the number of RAM slots using dmidecode.
I m running following command to get RAM information. code....
View 7 Replies
View Related
Jun 13, 2010
Is there a linux/unix command that will return where a domain is hosted at? Basically, the command that is used for [URL]?
View 1 Replies
View Related
Nov 30, 2010
i have a folder with 10 files and i would like to determine the size of each file. i was trying the command
Code:
du -sh foldername
but i receive the total size .
View 5 Replies
View Related
Feb 8, 2010
I am writing, well actually enhancing, a script to do a daily backup of important data on my PC to a second hard drive.I wish to tar my home directory to a single file - and will probably use gzip as well.So I decided to work out the correct tar syntax in a terminal first - here is what happened.I opened a terminal window.I cd to a directory not part of my home directory.I issued the command..Quote: tar -cvf mytar.tar /home/ken tar processed a bunch of files, the last being .netrc.I examined the tar file and it contains .netrc.The contents of .netrc are correct.I scrolled back through the list of files in the terminal window and do not see any error messages.I guess the question is... how do I determine what file tripped up the tar process?
View 8 Replies
View Related
Nov 8, 2010
i can i determine my distribujtion type, i use a redhat linux 9, i need to knw for download benefits, cause its seems am alwyas downloadin the wrong software for my package.
View 8 Replies
View Related
Jul 1, 2010
Can someone explain how to determine the number of blocks to determine the number of cylinders for a new partition on hard drive.
Why is block size divided by 1024?
I think I understand unit size is the total bytes per cylinder, I get that. I understand the anatomy of the hard drive (i.e. heads, sectors, cylinders.
My problem is, if I need to calculate the number of cylinders needed for let's say a 20G partition on a 120G drive.
View 1 Replies
View Related
May 3, 2010
You would think it would be easy to do this (and essential to maximizing and predicting the usage of tapes), but apparently this isn't so. The program MT(1) actually had some commands that give the block positition (if supported by the drive) from which the remaining space could be deduced (even if you couldn't predict exactly how much space the next archive would take up). However I'm using MT(1L) which no longer has such commands.
View 1 Replies
View Related
Dec 13, 2010
Consider the following scenario: you have two disks that are kept synchronized by some method. Could be RAID, could be LVM snapshots, could be a script. However, something has gone wrong. The disks are out-of-sync and you don't know which disk received which updates. You want to manually re-sync the disks but how do you figure-out which file to copy where?
I'm thinking of saving recursive directory-listings of the entire disks to text-files. Sorting them on last-update and removing all identical entries from the files.
I have a feeling that this is something that can be done with just a few command's but I need some help to get me started.
View 6 Replies
View Related
Mar 8, 2011
I'm trying to install tgrep using the INSTALL file but I'm gettin errors. The following messages speaks for itself.
Code:
denish@ubuntu:~/tgrep$ ./INSTALL
THIS IS THE CONFIGURATION SCRIPT FOR TGREP
answer all questions with full pathnames
I cannot determine the gcc include path on your system. Please enter the gcc include path if it is available: /usr/include
[Code]...
View 2 Replies
View Related
Oct 27, 2010
I read somewhere that you should not be reading config space to determine the irq value to pass as the first argument to request_irq(). What is the proper way to determine the value of the 'irq' argument before calling this function? Hope this is the correct forum. I don't see one for drivers.
View 1 Replies
View Related
Jun 11, 2010
I haven't been able to determine what exactly Python OpenSSL and what it does. Google searching has not yielded me anything I can understand. In a terminal window (using RHEL 4.8 AS) typing
Code: rpm -qi pyOpenSSL yields information pertaining to the version of Python OpenSSL on my server. Can you explain what Python OpenSSL is in simple terms?
View 5 Replies
View Related
Sep 9, 2010
When running cat /proc/cpuinfo under Linux, a variety information is kicked-back. For example:
> cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 15
model name : Intel(R) Xeon(R) CPU 5130 @ 2.00GHz
[Code]...
First, what does all of that actually mean? I see I have a processor 0 and processor 1. Does that mean Linux is reporting both cores of the CPU, or, since it is a VM, the two that I happen to have right now (even if they're on physically different CPUs)?
Second, how can I get a similar information dump form the command line in Windows? Third, is there a way using either platform to determine the number of physical CPUs versus total CPU cores?
View 2 Replies
View Related
Jun 29, 2011
What is the best way to determine in Linux if a multi-processor machine is overloaded? I thought load was a good measure but I run a large number of tasks which don't consume a lot of CPU but which drive up the load. A 4 processor machine has a load of 66 right now according to top for example but mpstat reports that the all CPU idle time is 89%.
View 1 Replies
View Related