Ubuntu :: Checking Status Of File In Terminal?
Jun 1, 2011
How do I check if a file is a soft link in the terminal? They're usually color coded, but I gave permissions to a colleague and now every file is green. Is there a simple command for this?
View 3 Replies
ADVERTISEMENT
Jan 31, 2011
I am using an automated bash script to upload some files to a remote ftp server . The script is working fine as it is , however I need to check if it uploaded the file successfully or not , so it can remove them. This is the ftp part of the script which is working fine for uploading files.
[Code]...
View 2 Replies
View Related
Jun 15, 2010
what is the command for checking the network performance and status?
View 3 Replies
View Related
May 9, 2011
Where can I finds Terminal commands for Ubuntu? Such as checking what cpu , load , system...etc
View 9 Replies
View Related
Nov 3, 2009
how to install the drivers Checking through the linux terminal with lspci and lspci -n, I've determined that I have a BCM4312. But when I check the device manager, it says I've got a Dell wireless 1395 WLAN mini-card. Does the lspci search for only the chipset and could that be different than the actual device?
I've run through the alien guy's wiki that's been posted several times and have set up the WPA key in the wireless directory. I've also seen some people using fwcutter on here? I'm not sure what that's for or how to use it.I think I've installed ndiswrapper, but am not sure how to use it. I've also been using this guys wiki [URL] because it's specific to my device, but once I get to the final step of building the LKM with: make -C /lib/modules/`uname -r`/build M=`pwd`, nothing happens, it says it can't find the directory.
View 14 Replies
View Related
May 10, 2011
I searched and found several solution but those are distro specific. I need to find out if distro is running in live mode (from CD, USB) instead it's installed on hdisk. The solution should be independent of distribution.
View 7 Replies
View Related
Feb 19, 2010
command will just execute and exit with a status of "0" -"Every command returns an exit status (sometimes referred to as a return status ). A successful command returns a 0, while an unsuccessful one returns a non-zero value that usually may be interpreted as an error code. Well-behaved UNIX commands, programs, and utilities return a 0 exit code upon successful completion, though there are some exceptions."[URL]With the command . . .
Code:
# dosfsck -v /dev/sdb
it could be very helpful (and decide my next move) to see the exit code as 0, 1, or 2 . the man page suggests the command exit code will specify if the message I get - "Cluster size is zero" (I think it is a "1")is a recoverable or fixable error by the utility. or is non-recoverable - a pretty nifty feature if I understand this right. [URL] is there anything like this script COMMAND_LAST used in the following link. [URL] that can be entered in the terminal window after - or at end of - my dosfsck command or any command. just to see if it has a 0, 1, or 2 status ?
View 2 Replies
View Related
Aug 11, 2011
when I try to apt-get upgrade system or install a new package in synaptic or terminal, I see this:
Code:
dpkg: ../../../lib/dpkg/dump.c:250: w_status: Assertion `pigp->trigpend_head' failed.
E: Sub-process /usr/bin/dpkg exited unexpectedly
So, before I have a problem - Synaptic opened, told that /var/lib/dpkg/status don't exist, in the web I read that sudo cp /var/lib/dpkg/status-old /var/lib/dpkg/
View 4 Replies
View Related
May 10, 2010
Sometimes at startup I get this message "Checking disk 1 of 1". Does that mean it's checking all partitions on the hd? After a bad shutdown there is no prompt for fsck to run and the system just boots up. In fstab I have both options set to "1" for the partition Ubuntu is on, all others set to "0". Any ideas on both?
View 3 Replies
View Related
Feb 24, 2010
recommend any utilities that would check the hard drive and its contents (if they are still good) following a power outage?
View 1 Replies
View Related
Feb 25, 2010
checking for C++ compiler default output file name... configure: error: C++ compiler cannot create executables See `config.log' for more details.
View 4 Replies
View Related
Jun 6, 2010
I want to create a file in the /root directory and then make sure it exists. The following code keeps telling me that the file doesn't exist even though it does.
Code:
#!/bin/bash
echo -e "username=someusername
passwordsomepassword" | sudo tee /root/.credentials
if [ -e /root/.credentials ]; then
echo "File exists!"
[Code]...
[Edit] Added second double quotation mark at the end of "somepassword"
View 5 Replies
View Related
Mar 31, 2011
I need to check the file name e.g. testbla_word.txt
Is theire a command to search for only "bla_"?
So mainly, to check a part of a filename (not the entire filename, only a part of it)
View 5 Replies
View Related
Nov 14, 2010
I am trying to load a driver (xxx.ko) and uncertain if the path given is correct.
I do not have any direct access to my linux device, so I need a small script that will create a text file telling me if the file was found or not.
View 6 Replies
View Related
Mar 5, 2010
I don't think there is a way of doing this with date or clock commands. But maybe they are writing to some file and I can take a look at the file's modification time. dmesg and /var/log/messages show nothing relevant.
View 1 Replies
View Related
Jan 5, 2011
when i reboot my computer, it goes on well and loads Ubuntu but instead of it going to the login it doesn't. instead it begins checking the file system and then completely stops at
[Code]....
i am using ubuntu 8.1, please i love that ubuntu version and it's why i haven't upgraded yet because i have tried the other versions and i didn't really like them. i have a 40GB HD and 512MB RAM, 1.8GHZ processor, i am using pentium 4.
View 3 Replies
View Related
Feb 9, 2010
How to do an easy file integrity checking on fedora 11 ? just to make sure that the necessary core os files are not corrupted using rpm and yum.
View 2 Replies
View Related
Apr 12, 2010
I downloaded the DVD ISO version of OpenSuSe version 11.2 64bit from openSUSE. I checked the iso file checksum after downloading and it was correct. However after burning to DVD i booted from the disc and started the install. After getting passed the initial settings and it starts to extract all of the packages each file fails the checksum and will not install. I tried downloading again on a different computer and burning again using UltraISO using the Disc-At-Once method, again checking the ISO file's checksum before burning.
It still gives the same errors. So i loaded windows and started the windows based install and my anti-virus (Kaspersky) says the disc is infected with a trojan. How can the disc be infected when the ISO file's checksum is correct?. The computer that i am using to burn the disc is virus free according to Kaspersky and Norton Technician Toolkit.
View 7 Replies
View Related
Jan 20, 2011
I have an output file that looks like this:
Quote:
Now if you see the first line:
Status for ACCOUNT_MISSING_FRM_RCIS_LINK- mismatch
Status for ACCOUNT_MISSING_FRM_RCIS_LINK is ACCOUNT_MISSING_FRM_RCIS_LINK- does not exist in DB
This should appear just once as :
Quote:
The same goes for last line.
For further information the ACCOUNT_MISSING_FRM_RCIS_LINK is a table name and it row count is taken from a log and then Database checked for the rowcount to see if it is a match,mismatch,or the table does not exist!
I am getting the desird output just that i need to do something to this output file.
View 13 Replies
View Related
Jan 19, 2010
I have a Rad Hat 7.0 old Linux system that crashed due to power failure. On reboot the system goes to Checking Root File System and does 92.5% check and fails.
Here are the error messages I get.
I don't know what to do at this point so I say yes and it goes in some wierd mode.
SO I ran fsck manually but I get an error PARALLEIZING FSCK.
I can't fix the corrupted stuff for the system to reboot. THIS IS VITAL.
View 11 Replies
View Related
Jul 5, 2010
I have just upgraded to Lucid on Ubuntu. I am a long time Pidgin user. I tried using Empathy with Gwibber, but I can't get Gwibber to update my IM status(es) in Empathy, so I want to go back to using Pidgin. (Additionally, I can't get Skype to work with Empathy.)I installed pidgin-microblog and pidgin-mbpurple, and they allow me to view my Twitter feed in Pidgin and update my Twitter status in Pidgin. However, in Karmic, I was also able to specify certain "status availabilities" (one named "Twitter-Available" and one named "Twitter-Away", for instance) to have the IM status message for these statuses become populated with my Twitter feed. This capability seems missing in pidgin-mbpurple in Lucid (and it seems to be the only thing missing from Karmic).
Is there a way to have pidgin-mbpurple update certain "status availabilities" in Lucid (and I'm just missing something) or is this no longer possible?Equivalently, is it possible to have Gwibber update my status message in Empathy? (I just want to be able to update my status once on one of my three computers - and have it propagate to all my other accounts (IM and social networking) and computers).
View 1 Replies
View Related
Jan 20, 2011
I have a bash script that checks for contents in a folder every 15 seconds and then acts on it's contents. This works great for the average size file however on very large files it starts acting on the file before it's completely written. Is there a facility in bash shell to get a file complete signal or such? here is trigger to launch a larger script.
Code:
#!/bin/sh
while true
do
$HOME/bin/hpgl.sh >/dev/null 2>&1 &
[code].....
View 10 Replies
View Related
Feb 20, 2010
I downloaded Go-OpenOffice from SlackBuilds.org, but I can't build it. make terminates with configure error: checking for C compiler default output file name. configure: error: in `/tmp/SBo/ooo-build-3.1.1.5': configure: error: C compiler cannot create executables See `config.log' for more details.
(I can't find config.log anywhere) I use a quite 'light' installation (no xap, ap), and I suspect that I have some unmet dependencies, but the error message provides no information about what software is needed (I've installed all dependencies listed on SlackBuilds.org). I'm using Slackware64-13 with Xfce
View 3 Replies
View Related
Sep 3, 2011
If you have a contiguous partial piece of an ext4 file system (assuming it's perfectly clean), starting from the beginning of the partition, is there any way to check it, or to mount it to get the files whose parents, inodes and data are all completely contained inside?
Have (or maybe had) a very large 11TB RAID 6 array, filled with a single large ext4 partition. Something strange happened when a single drive failed and the array ended up failing 13 out of the 11 drives. I had trouble getting the array restarted, and got to the point where I exhausted all of the options I considered completely safe. I considered a few things that may have worked, but mdadm doesn't seem to have a definite "do not change anything" option. So I decided the only way to be absolutely safe would be to clone the disks before proceeding - then I realized how much time that would take and sent the drives off to a recovery service so they could image them and check it out.
Before doing so, I copied the first 2GB from each disk. I XORd the images from the working drives to reconstruct the data chunks that were on the failed disk, manually assembled the chunks, and am very confident that I have 22GB of "correct" data in a single file. The parity and Q syndromes all matched (with RAID 6 you can still check with only 1 missing device). I've learned the fine details of ext4 from [URL], and have looked at lots of raw data from the reconstructed partition, and it all looks good. The recovery company says that they're not finding many inodes, but I found a lot of them, exactly where they're supposed to be. I tried to mount and e2fsk, but both processes seem to be extremely unhappy that the device size doesn't match the size implied by the file system geometry.
I considered hacking the superblock to manually reduce the size, but I figure that wouldn't work because there would then be more group descriptor blocks than it would expect after the superblocks. I might try doing that and compensating by incrementing the "reserve block count" to compensate. Alternatively, if there is some way to make the file appear to be the expected size with nothing but zeroes after the end of the actual data, maybe I could mount it and not get any errors until I cause the kernel to read past the true end of the file.
View 3 Replies
View Related
Mar 3, 2010
I have a csv file like, having HDR segment and multiple LIN01 segment in each line:like
Here i want to split file in two, one having LIN01 segment which have LR at end, and one which have LF at end in LIN01 segment.
Is it possible to created awk or shell script for this?
View 3 Replies
View Related
Apr 21, 2011
Fsck is not check any file system which are not root file system at boot time.
Normally it run: /sbin/fsck -A -R -C -a
But this command doesn't do anything.
I've tried to strace it, and looks like this:
Code:
View 2 Replies
View Related
Jun 29, 2011
This is the error I get when I try to update it:
Code:
E: Encountered a section with no Package: header
E: Problem with MergeList /var/lib/apt/lists/au.archive.ubuntu.com_ubuntu_dists_natty_main_binary-i386_Packages
E: The package lists or status file could not be parsed or opened.
View 1 Replies
View Related
Jul 22, 2011
I have not ran into this before. I did a new install of 10,04 and was adding programs. Then software center and Synaptic stopped working. error message said it was most likely due to unmet dependencies. I googled fixs which most all ran some sort of "apt-get" command. I can't run those because as soon as it gets to "Reading package lists", I get this error.Read error - read (5: Input/output error)The package lists or status file could not be parsed or opened
View 2 Replies
View Related
Apr 24, 2011
This is a error with my ubuntu 10.4 when I try to update it.
E: Dynamic MMap ran out of room. Please increase the size of APT::Cache-Limit. Current value: 25165824. (man 5 apt.conf)
E: Error occurred while processing bomberclone (NewFileDesc2)
E: Problem with MergeList /var/lib/apt/lists/archive.offensive-security.com_dists_pwnsauce_universe_binary-i386_Packages
E: The package lists or status file could not be parsed or opened.
E: _cache->open() failed, please report.
W: Duplicate sources.list entry Index of /ubuntu lucid/partner Packages (/var/lib/apt/lists/archive.canonical.com_ubuntu_dists_lucid_partner_b inary-i386_Packages)
W: Unable to munmap
View 2 Replies
View Related
Dec 5, 2010
E: Read error - read (0: Success)
E: Problem closing the gzip file /var/lib/dpkg/status - close (0: Success)
E: The package lists or status file could not be parsed or opened.
View 1 Replies
View Related