Skip to main content

D C's Library tagged linux   View Popular, Search in Google

May
25
2012

Directory permissions
Permissions for directories aren't exactly the same as they are for files. Here are some typical permissions required on directories:

Execute permission is required for a user to cd into a directory.
Read permission is required for a user to use a command such as ls to view the files contained in a directory.
Execute-only permission allows a user to access the files in a directory as long as the user knows the names of the files in the directory, and the user is allowed to read the files.
Write permission allows the user to create, delete, or modify any files or subdirectories, even if the file or subdirectory is owned by another user.

linux permissions directory otimo amazing

in list: Linux

    • Directory permissions
      Permissions for directories aren't exactly the same as they are for files. Here are some typical permissions required on directories:
      • Execute permission is required for a user to cd into a directory.
      • Read permission is required for a user to use a command such as ls to view the files contained in a directory.
      • Execute-only permission allows a user to access the files in a directory as long as the user knows the names of the files in the directory, and the user is allowed to read the files.
      • Write permission allows the user to create, delete, or modify any files or subdirectories, even if the file or subdirectory is owned by another user.
May
22
2012

If you've used the Linux LVM to create your partitions, you'll need to make those accessible before you run fsck:

"lvm pvscan"
"lvm vgscan"
"lvm lvchange -ay 'NameOfYourVolumeGroup' "
"lvm lvscan"
Then you can run fsck:

"fsck -f NameOfYourVolumeGroup"

linux repair fix filesystem hd fsck lvm otimo amazing

in list: Linux

  • If you've used the Linux LVM to create your partitions, you'll need to make those accessible before you run fsck:

    "lvm pvscan"
    "lvm vgscan"
    "lvm lvchange -ay 'NameOfYourVolumeGroup' "
    "lvm lvscan"

    Then you can run fsck:

    "fsck -f NameOfYourVolumeGroup"

you can either a) umount the mounted LVs under /mnt/sysimage
or b) bring up the LVM after saying 'no' to finding and mounting filesystems

if b), then
Code:

lvm pvscan
lvm vgscan
lvm lvchange -ay
lvm lvscan

the lvscan should show the expected LVs and then you should be able to safely fsck the ones you need to run it on since they will not be mounted.

fsck /dev/VolGroup00/LogVol00 (or whatever the device name )

Hope this helps.

linux repair filesystem hd fsck lvm otimo amazing

in list: Linux

  • you can either a) umount the mounted LVs under /mnt/sysimage
     or b) bring up the LVM after saying 'no' to finding and mounting filesystems
     
     if b), then
     
     
    Code:
     
    lvm pvscan lvm vgscan lvm lvchange -ay lvm lvscan
     
    the lvscan should show the expected LVs and then you should be able to safely fsck the ones you need to run it on since they will not be mounted.
     
     fsck /dev/VolGroup00/LogVol00 (or whatever the device name )
     
     Hope this helps.
  • As a simple workaround for those weary of picking the right PVs:
     As root (or user allowed to shut down the box) type at a console "shutdown -r -F now". That'll perform an immediate reboot with a forced file system check (-F option) for all partitions and you can watch the results during boot...

  • MUTT

     

    One of major drawbacks of using the mail command is that it does not support the sending of attachments. mutt, on the other hand, does support it. I’ve found this feature particularly useful for scripts that generate non-textual reports or backups which are relatively small in size which I’d like to backup elsewhere. Of course, mutt allows you to do a lot more than just send attachments. It is a much more complete command line mail client than the “mail” command. Right now we’ll just explore the basic stuff we might need often. Here’s how you would attach a file to a mail:

     

    # echo “Sending an attachment.” | mutt -a backup.zip -s “attachment” calvin@cnh.com

     

    This command will send a mail to calvin@cnh.com with the subject (-s) “attachment”, the body text “Sending an attachment.”, containing the attachment (-a) backup.zip. Like with the mail command you can use the “-c” option to mark a copy to another mail id.

Nov
8
2010

$ find / -name 'program.c' 2>/dev/null
$ find / -name 'program.c' 2>errors.txt
/
Start searching from the root directory (i.e / directory)
-name
Given search text is the filename rather than any other attribute of a file
'program.c'
Search tex

linux commands commandline search file tutorial shell find otimo amazing pipe

in list: Linux


  •   $ find / - name 'Metallica*' -exec ls -l {\}\ \;
     
      This command would find all the files on your system that begin   with the letters 'Metallica' and would then execute the 'ls   -l' command on these files. So basically you would be able to   see the details of the files that were returned according to   your search criteria.
     
      The words following the -exec option is the command that you   want to execute i.e. ls -l in this case.
      {\}\ is basically an indicator that the filenames returned by   the search should be substituted here.
      \; is the terminating string, and is required at the end of   the command
May
4
2012

In the console type the following, and leave the console minimized while you are using the computer.
LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so skype

webcam skype video linux otimo amazing works

in list: Linux

May
1
2012

  • An alternativ for base64 coding:  ... | openssl base64   This makes the cut-offs with sed obsolet

    • $ ssh -L 5901:localhost:5901 -N -f -l rocky sshserver.mydomain.com
      OR
      $ ssh -L 5901:127.0.0.1:5901 -N -f -l rocky 192.168.1.100

      Where,

      • -L 5901:localhost:5901 : Specifies that the given port on the local (client) host is to be forwarded to the given host and port on the remote side. Here you are using port 5901 on the localhost to be forward to sshserver.mydomain.com on the 5901 port.
      • -N : Do not execute a remote command i.e. just forward ports.
      • -f : Requests ssh to go to background just before command execution. Requests ssh to go to background just before command execution. Once password supplied it will go to background and you can use prompt for type commands on local system.
      • -l rocky : rocky is the user to log in as on the remote machine (sshserver.mydomain.com).
      • sshserver.mydomain.com (192.168.1.100): Remote system with VNC server

Hi,
use
Code:

ps -ax

to determine process id. And then use
Code:

kill process_id

process linux list command kill

in list: Linux

  • Hi,
     use
     
    Code:
     
    ps -ax
     
    to determine process id. And then use
     
    Code:
     
    kill process_id
Oct
14
2010

  • It seems impossible but even the Google search has been blocked. So, to solve this unfortunate situation, we sit down and log onto our REMOTE_HOST like that:

     
    worker@LOCAL_HOST:~$ ssh user@IP_NUMBER \\ -L 10080:www.google.com:80
     

    Just a few clicks in Firefox: Edit -> Preferences -> Connection Settings -> Manual proxy configuration. Here we can put in the HTTP proxy server field: localhost and 10080 for port. If there has been some other values in those fields, we shall write them down. We may need to use them later on. I’ll call those extra settings PROXY_SVR and PROXY_PORT.

Apr
27
2012

"ds, the addition of boundary firewalls, and tightening of the number of allowed network ports, users need a method that is simple to configure, easy to operate and, above all, secure to a"

ssh tunnel ibm developer_works otimo linux

in list: Linux

1 - 20 of 901 Next › Last »
Showing 20 items per page

Highlighter, Sticky notes, Tagging, Groups and Network: integrated suite dramatically boosting research productivity. Learn more »

Join Diigo
Move to top