Fedora :: Ls Output Formatting
Feb 25, 2011
I'm trying to format the output of ls -l, any help is appreciated
Quote:
[david@barca boot]$ ls
efi
grub
david@barca boot]$ cd efi/
[david@barca efi]# ls
EFI
[david@barca efi]# cd ../grub
[david@barca grub]# ls
device.map
now to long list files in each directory using one line:
Quote:
[david@barca boot]$ ls -l *
efi:
total 2
drwxr-xr-x. 3 root root 1024 May 13 2010 EFI
grub:
total 319
-rw-r--r--. 1 root root 70 Oct 26 17:12 device.map
How can I format the output of ls to get it all in single lines:
Quote:
drwxr-xr-x. 3 root root 1024 May 13 2010 efi/EFI
-rw-r--r--. 1 root root 70 Oct 26 17:12 grub/device.map
Any thoughts?
View 4 Replies
ADVERTISEMENT
Jun 19, 2011
I'm using Busybox's Hush shell on an appliance running uClinux, and would like to make sure I'm not packing shared libraries that aren't actually used by any application. I couldn't figure out how to compile "ldd" for that environment, but I could compile "readelf" which does the job:
Quote:
find /bin -type f -print0 | xargs -0 ./readelf -d
File: /bin/myapp
Dynamic section at offset 0x7f4c contains 20 entries:
Tag Type Name/Value
0x00000001 (NEEDED) Shared library: [libgcc_s.so.1]
0x00000001 (NEEDED) Shared library: [libc.so.0]
I was wondering if it possible to format the output so that I would get something like this instead:Quote:
/bin/myapp requires: libgcc_s.so.1, libc.so.0
View 2 Replies
View Related
Sep 27, 2010
I'm writing a script that gives me some pertinent info about my servers, and the last little piece I need to figure out is the process list. There are going to be non-technical people looking at the output of the script and I'm trying to make it as simple as possible.
Right now, if I do ps -ef | grep <process> | grep -v grep
It obviously shows me the process, but the problem is that there is 4 lines of info in front of the process. ie
root PID date time java -1024 -cp oh,my,god,there,is,so,much,data,it,carries,on,for,4,lines,I,want,to,shoot,myself,trying,to,read,it,f inally,in,the,end,there,is,a,space /here/is/the/process
I'd like the output to be something like this:
PID: #### Process: /here/is/the/process
I've thought about how I could take the output and use awk or sed but I know there is probably an easier way to do it with perl.
View 12 Replies
View Related
Feb 12, 2011
I have new external usb drive which I'm trying to format to NTFS so I can also use in in windows. I've set it up using fdisk
Disk /dev/sdd: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x604a2a7d
Device Boot Start End Blocks Id System
/dev/sdd1 1 60801 488384001 7 HPFS/NTFS
And tried formatting using
mkfs -t ntfs /dev/sdd1
However I get the following error
Cluster size has been automatically set to 4096 bytes.
Initializing device with zeroes: 100% - Done.
Creating NTFS volume structures.
Error writing to /dev/sdd1: Input/output error.
Error writing non-resident attribute value.
add_attr_sd failed: Input/output error
Couldn't create root directory: Input/output error
View 5 Replies
View Related
Mar 9, 2010
What's the easiest way of formatting SD cards to FAT32 in Fedora linux?
Also, I'm having trouble when I try to unmount the volume of a SD card, there's 0.8 GB being used that I expect to be cleared when I choose to 'empty trash', everytime I select 'unmount volume' the SD card window just shuts down instead of clearing that space.
View 2 Replies
View Related
Oct 12, 2009
I have been trying to figure out how to format my hard drive when I'm installing Fedora 11. When I boot from the live disk, all installation were done automatically, so I didn't see how I can do it. I tried googling it, but didn't find anything on how to do it either.
View 3 Replies
View Related
Oct 22, 2009
May I have a step-by-step guide on mounting and formatting a DVD+R disc on my laptop?
View 1 Replies
View Related
Oct 25, 2009
How would I format my partition into a ext3 file system?
View 1 Replies
View Related
Nov 12, 2010
I booted fedora from an live cd not i have a problem when i want to install fedora formatting is taking vey long its already busy for 1 hour and this is te second time im trying to install fedora does it need to take this long ? I've got an unexpected fault for the second time and pressed debug but nothing is happening keeps formatting.
View 3 Replies
View Related
Mar 24, 2011
I have installed fedora 14 xfce.
However, I want to totally format the hard disk so I have no operating systems left on there.
I have created a usb boot disk for installing windows.
So I want to re-format the whole hard disk. Then boot up with the usb and install windows. Once I have done that. Then use the rest of the hard disk to install Fedora 14 from my other usb.
However, I am not sure how to completely format the hard disk. I want to start from a clean disk.
View 4 Replies
View Related
Jul 18, 2011
Sometimes it does this and other times it does not. It has happened with 2 hard drives. When it formats the partition the bar stops and the mouse pointer graphics stops.
View 3 Replies
View Related
May 24, 2011
I'm trying to install SL6 to a pair of 2TB harddisks in a RAID 1 array. The problem is that when the "Formatting" progress window that says "Creating ext4 filesystem on /dev/mapper/pdc_eahgdeafbgp1" comes up it appears to eventually freeze. It's been like that for 6 hours without the progress bar moving at least. I have another identical system that I booted up using the gparted live cd to see if I could get any more information using that. I first created a 500MB ext4 partition and mkfs.ext4 ran almost instantly. I then tried 5GB and it seemed to take maybe about a second or two and worked fine. I then jumped up to 500GB and it's been running for about 5 hours now. I'm pretty sure that I remember the creation of an ext4 filesystem occuring extremely fast even for very large partitions, but this is the first time I've played with RAID.
View 3 Replies
View Related
Aug 29, 2010
I want to install Fedora KDE spin on an existing XFS partition without formatting it. (Since said partition is full of my data that I have nowhere else to put). But the installer doesn't allow me to set the partition as / without formatting. XFS is not one of the filesystems listed as options for formatting. How can I make Fedora do what I want?
View 7 Replies
View Related
Nov 13, 2010
I've a flash drive that it's partitions formatted as fat32, ex4 and encrypted ext4. It works fine on the system that I've formatted it on, but when I try to use it on my other Linux distributions I get these problems:
* ext4 partition accessible by root only.
* after entering my pass-phrase I get
Code: /dev/mapper/udisks-luks-uuid-***** uid1000 is mounted What I'm asking for is a way to create the ext4 file system without being attached to some UID and to be accessible by any user.
View 1 Replies
View Related
Dec 13, 2009
Is there something weird about the FLOPPY DRIVE on F12? Nothing associated with it works & I can't get an icon for it. Also the FLOPPY FORMATTER no longer works. (mine is an internal drive)- I had some really miner quirks with it in 10 but it worked. I had some workaround launchers that I used until an upgrade semi-fixed it. (It would give a false error that it couldn't run but did. I just ignored it.)
I tried to edit FSTAB to cure a problem of my BACKUP drive showing up twice*** so while I was in there I added the stuff for the floppy & it still doesn't work. If I try to mount it manually, I get the error that /dev/fd0 doesn't exist.I tried to find some info on it & it SEEMS that there MAY be a bug but I'm not sure as the info is a bit confusing as to just what version & such they are talking about. And there was also the problem that all the stuff seemed to be OLD or not related to my problem.I why I quite hacking at my system, is that all my workaround launchers & the formatter say that there are GNOME things missing & they can't run. So I figure that there is something missing or screwy already & that I'd better ask BEFORE I make things worse or actually break something.With the fact that floppies are about gone, it's getting to be not that big of a deal but I still find myself having to use them for repair purposes (albeit, not as much) & it gets to be a bit of a pain to fire up M$ just to do something like this.
*** It appears that the one in FSTAB was the one I needed, so where would the OTHER one be so I can get rid of it? Or at least make it auto mount.
View 12 Replies
View Related
Apr 29, 2010
I cant seem to get the sound working and when I click on perference then sounds and go to the output selection it has only dummy output as a option.
View 3 Replies
View Related
Mar 7, 2010
I installed KMplayer but I cant play video files...No video output but can get only the audio output...So how to make this work for videos?
View 2 Replies
View Related
Jan 25, 2011
Running 10.10 and win 7 on my HP dv6-2150us laptop and I'm having a few issues.
First how do I get HDMI audio output to my TV? I think I have just a integrated Intel graphics card. It works fine in windows but I can't seem to get it to work in Ubuntu. I tried searching but couldn't find anything pertaining to this issue.
View 3 Replies
View Related
Feb 19, 2009
How to make internet sharing in Fedora with two inputs & one output.
View 14 Replies
View Related
Dec 21, 2010
I booted my Fedora 13 live CD on my Dell server, and configured networking and SSHd. On my desktop I logged into the live cd and started copying over a big file (1.5 GB) (i.e. copying from the desktop computer to the server). After copying about half the fil, the download fails with an error message about the filesystem being read-only.I've seen this exact same behavior on both i386 and x86_64 of the same live CD, but don't know why it's happening. I've also had the same issue when copying small files. In /var/log/messages these messages are repeated many times:
Code:
Dec 20 12:32:23 localhost kernel: Buffer I/O error on device dm-0, logical block 684075
Dec 20 12:32:23 localhost kernel: lost page write due to I/O error on dm-0
[code]....
View 6 Replies
View Related
Jan 6, 2011
I am sure that this is very simple but I have installed sound juicer and the gstreamer plug ins. The problem is i still cannot select MP3 as an output output option
View 3 Replies
View Related
Jul 19, 2011
I don't know anything about ubuntu. Could you guys help me out. I'm pretty knowledgeable with windows if you guys need a printout of something let me know. My friends getting really frustrated about this. Help!!i
So here's the situation. He plugs his audio jack into his computer and then into the speakers but it still plays from the computer speakers.
View 7 Replies
View Related
Mar 27, 2010
I finally got audio working on my ubuntu 9.10 desktop... now I am having sound issues watching movies from a network share.The sound device continually randomly changes to "dummy output device" and then there is no sound output. The sound icon dissapears on the toolbar. To get it back and audio to start working I have to $sudo alsa force-reloadIt seems to happen everytime there is a network delay, the movie will stop for a second and then when it plays the sound is gone
View 1 Replies
View Related
Mar 4, 2011
Is possible to have two identical sound card outputs? For example, is I want to use two headphones at the same time.
View 6 Replies
View Related
Sep 5, 2011
I get the following output from df.
Code:
Which confuses me. I do not know what is going on.
There seems to be a lot of duplication and I am confused about this.
The contents of /etc/fstab is:
Code:
View 9 Replies
View Related
Feb 25, 2011
I'm trying to format the output of ls -l code...
View 2 Replies
View Related
May 19, 2011
when I run netstat -s I get a whole listing of different statistics on udp/tcp. what I would like is to be able to understand those terms e.g. TCPLossFailures and link them with the appropriate TCP/IP terminology. There must be some refernce guide somewhere that shows what these fields mean or what they are tracking.
View 2 Replies
View Related
Nov 22, 2010
Is there any way to partition off say 40GB of a 250GB drive (only 5GB used) into an NTFS partition to install windows Vista SP1?? I have tried the System -> administration -> disk utility, but I can not figure out how to partition in it.
View 7 Replies
View Related
Apr 5, 2011
I'd like to know if it's possible in my program (C/C++) to create a filesystem on a partition, maybe with advanced options too. I don't want to call the shell and execute the usual commands to do that, so I wonder if there are some native Linux syscalls or external libraries to do that.
View 6 Replies
View Related
Mar 7, 2011
I have an command to read inputs from file2 and replace the content in file1. Issue is that the op is coming in a single line as gsub and split functions don't recognize new line characters.
Code:
awk 'NR==FNR{gsub(/input./,""); split($0,a," = ");b[a[1]]=a[2];next} {gsub(/@/,"");for (i in b) gsub(i,b[i])}1' $t2 $t3
This gives belwo op:
[Code]....
View 14 Replies
View Related